Radarspotting

Mode-S Software => ModeSMixer & ModeSDeco => Topic started by: Triple7 on June 13, 2014, 11:37:52 AM

Title: ModeSMixer and PP
Post by: Triple7 on June 13, 2014, 11:37:52 AM
As regular readers will know, I've recently started using ModeSMixer with BaseStation to allow me to share my received data across my LAN. I also use the feed into PP but I have noticed a small anomaly. The Radar IID's and BeamFinder beams do not show up on PP when ModeSMixer is in the mix (pun intended). Here's my ModeSMixer bat file:

@echo off
E:\ModeSMixer\modesmixer2.exe --inConnect 192.168.1.170:10001 --outServer sbs10001:10001 --filter-nocountry
PAUSE
exit

I am seeing the additional info. in PP i.e. when 'W' (shift w) is pressed (wind strength, direction and outside temp), it's just that there are no IID's or beams displaying.

If I stop ModeSMixer and reset my SBS to 192.168.1.170 port 10001 in the BaseStation Hardware settings and restart PP both the IID's and subsequently if I select a target aircraft, the beams appear.

In PP under  Options>>Mode-S Receiver>>Kinetic SBS Family>>SBS-1 BS IP Address I have 127.0.0.1:30006, I have tried with other IP addresses 192.168.1.10, the address of the PC running ModeSMixer and also 192.168.1.170 the SBS IP address but that doesn't make any difference.

It seems as though ModeSMixer is preventing some information from being passed from BaseStation to PP.

sergsero or anyone - any thoughts?

Thanks,

Tim
Title: Re: ModeSMixer and PP
Post by: sergsero on June 14, 2014, 01:57:57 PM
Hello Triple7,

I will try to find out what could be the problem.

/sergsero
Title: Re: ModeSMixer and PP
Post by: sergsero on June 16, 2014, 11:06:33 AM
Hello Tim,

Please test this new version of the program - ModeSMixer2 v.20140616: modesmixer2_windows_20140616.zip https://drive.google.com/file/d/0B7NYXizl0U6iYUVpZGRqbUhEN28/edit?usp=sharing (https://drive.google.com/file/d/0B7NYXizl0U6iYUVpZGRqbUhEN28/edit?usp=sharing)

+ changed the algorithm for 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.
+ changed the algorithm for processing of Interrogator Codes II (Interrogator Identifier) and SI (Surveillance Identifier) for data transcoding in RAW SBS formats.
  Due to incomplete support by PlanePlotter bidirectional data communication for starting procedure of connection should be used sbs30006 output mode: "... --outServer sbs30006:30006 ..."

In other words if you want to connect PlanePlotter directly to ModesMixer2 and to get the RAW data, use mode --outServer sbs30006:30006. This number of tcp-port (:30006) may be set to other.
The program itself Basestation.exe will connect, as before, through --outServer sbs10001:10001 mode.

modesmixer2.exe  --inConnect IP:Port --outServer sbs10001:10001 --outServer sbs30006:30006 --filter-nocountry  (first for BS and second - for PP)

In my tests the data was obtained via the Internet in AVR format from the region, where there are appropriate interrogators with IID. Then they were given to Basestation.exe in its RAW sbs10001 format. And finally data outputting from Basestation.exe through a network to PlanePlotter in sbs30006 mode.

modesmixer2.exe  --inConnect IP:Port --outServer sbs10001:10001 --filter-nocountry

(https://dl.dropboxusercontent.com/u/79709204/Pictures/20140616/II_SI_PP_code_MM2.png)

Thanks,
sergsero
Title: Re: ModeSMixer and PP
Post by: Triple7 on June 16, 2014, 11:48:44 AM
Hi Sergsero,

I have tested this new version and it has fixed the issue - great job thanks very much.

One tiny point - in your batch file script you wrote "----outServer....." i.e. 4 x '-' and not 2 x '-' so the line should be:

modesmixer2.exe  --inConnect IP:Port --outServer sbs10001:10001 --outServer sbs30006:30006 --filter-nocountry

Exactly as you wrote it in the main part of your post.

Thanks,

Tim
Title: Re: ModeSMixer and PP
Post by: sergsero on June 16, 2014, 03:31:12 PM
Hi Tim,

Thank you for the detected problem in the program. And well, that it was quickly resolved.

About The "----" is my misprint, rightly, as before, only two hyphens "--", thanks.

Tim, it is possible that you will find some other problems in the program, please, report them to me. I will be very grateful and will try to fix them quickly.

Thanks,
sergsero
Title: Re: ModeSMixer and PP
Post by: mt007 on October 08, 2015, 02:30:25 PM
Hy guys,
sorry if my question has been answer in past but i dont find nothing about that.

Is possible use ModeSMixer2 with planeplotter or Beast?

I have Beast, sending data to PP.

If possible, how i can do it?

Thanks very much.
Kind regards.
Title: Re: ModeSMixer and PP
Post by: IanH on October 08, 2015, 06:43:31 PM
Why would you want to?

If the Beast is sending data to PP ok, you don't need ModeSMixer.

But if you want to combine and rebroadcast ads-b feeds it is very useful.

See here: http://sonicgoose.com/combining-and-rebroadcasting-ads-b-feeds-with-modesmixer2/
Title: Re: ModeSMixer and PP
Post by: mt007 on October 09, 2015, 12:25:08 AM
Hi Ian,
i use VRS too, to see my planes, but i have another users with others maps, like dump1090 and i was think with modesmixer we can see another maps system too, supose.
I go see website you have give me.

No more easy explain?

Thanks Ian.
Regards
Title: Re: ModeSMixer and PP
Post by: IanH on October 09, 2015, 11:10:50 AM
Ok an example - you need to run this in a command prompt in Windows or set up a batch file. There might be mistakes here - let us know of errors.

Suggest you try one thing at a time to check it's working. I don't have a Beast so cannot be sure all this will work - make sure you note your current settings!!

path_to\modesmixer2 --inSerial /COMx:3000000:hardware --outServer beast:30005 --outServer sbs10001:10001 --web 8080 --location yy.yyyy:xx.xxxx

path_to\modesmixer2 "path_to" is C:\Radar\ or wherever you have modesmixer2 installed

--inSerial /COMx:3000000:hardware I think this is correct - I don't have a Beast. Substitute the serial port number it is connected to for x in COMx. You might have to stop the existing connectionto PlanePlotter to get this to work.

--web 8080 This will plot the input from the Beast on a map (if it is working ok). Open a browser and type 127.0.0.1:8080 into the address box. You will also get other data to view  ;D

--location yy.yyyy:xx.xxxx add your latitude and longitude so modesmixer2 can centre the map on your location.

--outServer beast:30005 This provides Beast output that you can use to connect PP to. In PP, Options, ModeS receiver, Setup TCP client add 127.0.0.1:30005. I think that this still allow MLAT to work ok - anyone confirm?

--outServer sbs10001:10001 this would allow you to connect the Basestation software if you want. Another option is to connect GlobeSRTL - see instructions for RTL1090 as well
Title: Re: ModeSMixer and PP
Post by: mt007 on October 09, 2015, 03:32:02 PM
Hi Ian,
thanks very much for your help.

Web works fine, but with no data.

I have put this in CMD:

C:\modeSmixer2>modesmixer2_xp.exe --inSerial /COM11:3000000:hardware --outServer beast:30005 --web 8080 --location 38.693276:-9.312758

or in beast:30003

and i have received this info in CMD:

2015-10-09 15:17:17.691  INFO     ModeSMixer2 v.20150825
2015-10-09 15:17:17.701  INFO     outServer(beast:30005) started
2015-10-09 15:17:17.820  INFO     inSerial(/COM11:3000000) connected
2015-10-09 15:17:17.835  INFO     inSerial(/COM11:3000000) BEAST data stream det
ected
2015-10-09 15:17:40.239  INFO     Coverage area was determined


Only ON modesmixer2 and web nothing else. I try work at same time with PP but nothing happen.

Any idea?
Regards.
Title: Re: ModeSMixer and PP
Post by: IanH on October 09, 2015, 03:43:54 PM
My mistake. Should be

--inSerial COM11:3000000:hardware

not

--inSerial /COM11:3000000:hardware
Title: Re: ModeSMixer and PP
Post by: mt007 on October 09, 2015, 04:03:31 PM
Hi Ian,

i have put this:

C:\modeSmixer2>modesmixer2_xp.exe --inSerial COM11:3000000:hardware --outServer beast:30003 --web 8080 --location 38.693276:-9.312758

And now: WORKsssssss. ;D

thanks very much Ian.
Im very happy.

Tell me: i can at same time have PP o VRS work with modesmixer2?

Regards


Title: Re: ModeSMixer and PP
Post by: IanH on October 09, 2015, 04:27:14 PM
Yes the "--outServer beast:30005" instruction is sending information which you can use to run PP.  In PP, Options, ModeS receiver, Setup TCP client add 127.0.0.1:30005

I think that you can also get VRS to connect to this output. In Tools/Options/Receivers, enter the IP address of the Pi and 30005 for the port
Title: Re: ModeSMixer and PP
Post by: mt007 on October 09, 2015, 04:36:41 PM
Hi Ian,
I will check that.

Is not possible modesmixer2 make backup of data?
Every time i have shutdown to add new line for example: silhouettes, modesmixer erase all data from web.

Note: i cant make download of IanK's silhouettes. Error in webpage.

Thanks very much for your help.
Regards,
Title: Re: ModeSMixer and PP
Post by: IanH on October 09, 2015, 04:57:22 PM
Just use the up arrow key or down arrow key to show previous commands. The you can add to it.

There are other ways but start with that  ;D
Title: Re: ModeSMixer and PP
Post by: mt007 on October 09, 2015, 04:59:44 PM
Ok Ian.
Thanks  ;)
Regards,
Title: Re: ModeSMixer and PP
Post by: IanH on October 09, 2015, 06:30:33 PM
Ok, I've had a bad day. I've been busy working with a Raspberry Pi but you are using Windows. So my comment about VRS made no sense  ::)

QuoteI think that you can also get VRS to connect to this output. In Tools/Options/Receivers, enter the IP address of the Pi and 30005 for the port

That should say:

I think that you can also get VRS to connect to this output. In Tools/Options/Receivers, enter the IP address of 127.0.0.1 and 30005 for the port

And to repeat commands create a batch file. Use Notepad to create a file with the required commands, save it and change the filename from yourfile.txt to yourfile.bat

This is a typical batch file that is use:

@echo off
cmd /c  c:\radar\modesmixer2_xp.exe --inConnect 192.168.0.171:30006 --outServer sbs10001:10001 --outServer sbs30006:30006
PAUSE
exit


Note the cmd/c, the pause and the exit additions.

If you double-click on a batch file in File Manager, the commands will run. If you get an error that it can't find modesmiser2.exe, you need to make sure that the batch file is saved in the same folder as modesmixer2.exe or add the location of modesmixer2.exe in the batch file, e.g. c:\radar\modesmixer2.exe.

To edit right click on the batch file, select edit, make changes, save and run.
Title: Re: ModeSMixer and PP
Post by: mt007 on October 10, 2015, 02:05:14 AM
Ok.
Thanks Ian.
Regards