The Java Feeder

This forum is for users who are developing applications (or resources) to work alongside BaseStation (i.e. add-ons) and who wish to discuss development techniques.

Moderators: KineticChris, KineticDavid, Moderators

edgy31

Re: The Java Feeder

Postby edgy31 » May 24th, 2010, 8:32 am

Well poop. Looks like another major bug has reared its ugly head...

When you share data, the ADSViewer seems to go berserk. I tried playing with the hashtable sizes, but nothing yet.

Basically it looks like a pin-ball machine - hee.

Back to plan B. It might be something simple, or maybe a new table design.

edgy31

Re: The Java Feeder

Postby edgy31 » May 30th, 2010, 12:22 pm

One of the neat things about Java, is you can easily create multiple threads easily. One of the bad things about Java is you can create multiple threads easily and therein lies a tale of synchronization problems. The other thing about Object Oriented Programming, is that more Objects is not necessarily a sign of anything significant.

Ah well, keeps me out of the bars...

Anyway, I uploaded the latest ADSNet and ADSViewer for those brave enough to give 'er a wack. Thanks to Bones, who has beaucoup targets to play with.
Last edited by edgy31 on December 13th, 2010, 5:47 pm, edited 1 time in total.

laxlou
Posts: 23
Joined: October 29th, 2005, 2:48 pm
Location: Finland
Contact:

Re: The Java Feeder

Postby laxlou » June 13th, 2010, 10:36 am

Hi,

I noticed that with latest ADSViewer version maps are drawn differently when changing zoom levels.
For example some ATC boundary lines are cut off near screen borders, when zooming out, lines are displayed again.
With v1.70 lines are displayed correctly.

----------------
Regards,
Otso / OH2GAX

edgy31

Re: The Java Feeder

Postby edgy31 » June 13th, 2010, 2:26 pm

You can see the same thing in Basestation. As you zoom down things start disappearing.

In earlier versions I just drew all the maps and didn't check to see if they were even on the viewable screen. Of course if you had a big map it would take a while to draw all that stuff you couldn't even see. In later versions I look to see if the points are on the viewable screen. If not, I skip over the points to save time.

The problem with that, is if the lines starting point is on the screen, but the ending point is not, then it doesn't draw the line either. So the lower the resolution of data, the faster lines start disappearing as you zoom down.

I guess I need to maybe double the screen values, and draw the points if they are within this virtual window, rather than the more restrictive actual screen size.

edgy31

Re: The Java Feeder

Postby edgy31 » June 13th, 2010, 3:18 pm

I uploaded a version 1.77 that doesn't check to see if the map data is on the screen first.
Last edited by edgy31 on December 13th, 2010, 5:48 pm, edited 1 time in total.

laxlou
Posts: 23
Joined: October 29th, 2005, 2:48 pm
Location: Finland
Contact:

Re: The Java Feeder

Postby laxlou » June 14th, 2010, 5:38 pm

Works great, many thanks again :D

-----------
Otso


edgy31 wrote:I uploaded a version 1.77 that doesn't check to see if the map data is on the screen first.

ADSTools-jar-1-02.zip

edgy31

Re: The Java Feeder

Postby edgy31 » March 20th, 2011, 11:55 am

I've had a few inquiries, so I uploaded the latest incarnation to:

http://cid-ece2f9f4aa7c6e49.skydrive.live.com/redir.aspx?resid=ECE2F9F4AA7C6E49!607

This is a Java Feeder that listens on the SBS-1 Socket (30003) and converts that poop to tracks that are broadcast on your LAN, and to selected WAN partners.

The difference between this and Planeplotter, is that Planeplotter is more sophisticated (harumph), but this program allows you to plot tracks in real-time. None of that waiting a minute stuff for more data.

Sadly, more and more ISP's seem to want to block UDP. The cheaper your Internet, the more likely you can't UDP broadcast.

Drop this into a working directory on your Linux or Windows box (maybe MAC too, dunno). It requires Java 1.6 JRE installed.

Then move copies of the .pdf, .jar, and .conf files to your login directory. Make some desktop links, and you should be good to go.
Then open the map.zip file. The maps are not as good as Basestation and Planeplotter. I have not finished the rewrite of the map code yet.
The NE, SE etc, refer to the areas of the globe in relation to 0/0 lat/lon I believe. I don't really use the maps, just the VOR and airport points mostly.
(I'm a minimalist, but I do drink a lot of Ale and Vin Rouge). Pick a map and rename it map.dat to your login directory also.

Alas, you will need to make some firewall and router adjustments, as explained in the PDF doc file. Just UDP paths and a port forwarding add. If in doubt, or
you run into hair pulling, just shut your firewall off to make sure it is working, and then play with the "damned" firewall :-)

Read the docs, and let me know where it sucks, but most important have fun. I don't know how much the new Basestation changes things with the TIS stuff,
but it should work OK. I also changed the conflict alerts to blinking 4th line text, rather than the whole track block.

If all else fails, read the source code provided :-)

Steve/edgy/max/...

nzradar
Posts: 66
Joined: May 16th, 2011, 7:14 pm

Re: The Java Feeder

Postby nzradar » June 24th, 2011, 11:48 am

Is the ADSViewer still available for the USB connected SBS?
Michael
New Zealand
Home Website: http://www.nzradar.com
ADS-B Traffic: http://www.nzradar.com/?page_id=16
SBS-1er/microadsb
BaseStation/PlanePlotter
Windows 8 Consumer Preview

edgy31

Re: The Java Feeder

Postby edgy31 » June 25th, 2011, 3:17 pm

nzradar wrote:Is the ADSViewer still available for the USB connected SBS?


Hmm, I noticed hotmail changed my skydrive directory permissions when they upgraded their software, so I opened it back up.
Last edited by edgy31 on June 26th, 2011, 12:42 pm, edited 2 times in total.

nzradar
Posts: 66
Joined: May 16th, 2011, 7:14 pm

Re: The Java Feeder

Postby nzradar » June 25th, 2011, 10:21 pm

Cool, but when I download the zip it's structure is full of .java files and nothing to run. Have I downloaded the right archive?
Michael
New Zealand
Home Website: http://www.nzradar.com
ADS-B Traffic: http://www.nzradar.com/?page_id=16
SBS-1er/microadsb
BaseStation/PlanePlotter
Windows 8 Consumer Preview

edgy31

Re: The Java Feeder

Postby edgy31 » June 25th, 2011, 11:41 pm

nzradar wrote:Cool, but when I download the zip it's structure is full of .java files and nothing to run. Have I downloaded the right archive?


I'm not sure what you downloaded. If you don't have MySQL or Java installed you probably won't be interested in that archive.

nzradar
Posts: 66
Joined: May 16th, 2011, 7:14 pm

Re: The Java Feeder

Postby nzradar » June 26th, 2011, 12:28 am

Well Edgy, I have MySQL with ADSNetwork 124L and Java, but as with ADSNetwork there is a ADSNetwor.jar file that I run but I don't see anything similar in the adsb-processor-1-24.zip.
Michael
New Zealand
Home Website: http://www.nzradar.com
ADS-B Traffic: http://www.nzradar.com/?page_id=16
SBS-1er/microadsb
BaseStation/PlanePlotter
Windows 8 Consumer Preview

nzradar
Posts: 66
Joined: May 16th, 2011, 7:14 pm

Re: The Java Feeder

Postby nzradar » June 26th, 2011, 4:22 am

OK got it now, I downloaded the zip instead of going to your SkyDrive link in a previous post. I've got it going but no map or data yet so I'll read through the thread and see what's what. Thanks.
Michael
New Zealand
Home Website: http://www.nzradar.com
ADS-B Traffic: http://www.nzradar.com/?page_id=16
SBS-1er/microadsb
BaseStation/PlanePlotter
Windows 8 Consumer Preview

edgy31

Re: The Java Feeder

Postby edgy31 » June 26th, 2011, 12:38 pm

Make sure you say "use folder names" when you burst the zips. In the adsb-processor zip there is a folder called "home" and this contains the executable .jar files and a lib directory that contains a couple jar files that are needed. You can move the files to your login directory (c:\users\<login> on vista). The rest of the files is pretty much .java source code which is what open source hobbyists like, so they can modify and recompile on their own.

In the maps.zip file, which should be in the adstools archive is a few simple maps, and you pick one and rename it map.dat and put that in your home directory. The maps are boring enough that if you leave them out it won't hurt (smile) and you can use VOR's and Airport markers to orient yourself.

The networking part is the hardest on adstools, as it is so manual. Basically, you have to specify the nicaddress your computer is using in adsnet.conf and adsviewer.conf. It was complicated in that some people have two network interfaces, and it is hard to program an automatic feature to select the right one, so I just let the user put in that data. The nicaddress is the IP address of your computer that goes to your LAN router. (it can't be the loopback 127 address, as that is only local to the machine).

Once you specify the IP address, then adsnet knows which NIC (network interface card) to send multicasts on. These are broadcasts to all computers on your LAN. One packet is all that is needed, and 100 computers on your LAN can be listening (or even just one, smile).

nzradar
Posts: 66
Joined: May 16th, 2011, 7:14 pm

Re: The Java Feeder

Postby nzradar » June 27th, 2011, 6:31 am

I'm just working through the basics, and have the files sorted and ADSViewer running and aircraft showing and tracking, brilliant so far!

I have no reference points on the display so could someone please provide the syntax for either a map outline, I've got the map coordinates from NOAA and renamed the file map.dat and plonked it in my User directory but I note elsewhere about converting to BS format......I'm a bit lost here? Do I just need to convert the Lat/Long from x000.00.00.000 to -00.00000 format or is it a bit more complicated? Does this also apply to the Sector Tools tool when creating VOR roses etc?
Michael
New Zealand
Home Website: http://www.nzradar.com
ADS-B Traffic: http://www.nzradar.com/?page_id=16
SBS-1er/microadsb
BaseStation/PlanePlotter
Windows 8 Consumer Preview


Return to “Development”

Who is online

Users browsing this forum: No registered users and 4 guests