Logging overflights

User-created resources that can help you get more out of your BaseStation software.

Moderators: admin, chrisg0wtz, KineticDavid, Moderators

Logging overflights

Postby DrAlan » July 1st, 2007, 8:59 am

For some reason recently I wanted to build a log of all flights passing close to my house. You can't get this info from the database because that only logs the start and finish lat/long, so I decided I had to monitor the socket output.

I've built a little bit of VB in Excel to listen to the socket and track the range of aircraft, and log them if they come within a certain distance.

If anyone is interested I'll upload the file (it is clunky but works - only wish I know "proper" pc programming to make a real third party app!).

Cheers

Alan

PS this could also be adapted to monitor the lowest altitude achieved, greatest range at given altitudes, lowest elevation angle, range as a percentage of radar horizon (i.e. degree of blocking against azimuth) etc.
DrAlan
 
Posts: 144
Joined: April 21st, 2007, 1:17 pm

Postby Roadrunner » July 1st, 2007, 9:27 am

Sounds very interesting, if it doesn't need a degree in PC knowledge then I would be interested, I also like to know those within a couple of mile radius of my house for when I am out walking the dog. I have been recording the sessions but that takes forever to play back.

Mike
Beep-Beep
User avatar
Roadrunner
 
Posts: 1302
Joined: May 16th, 2007, 12:26 pm
Location: Stevenage, Hertfordshire, England

Postby DrAlan » July 1st, 2007, 11:30 am

Thanks for the interest Roadrunner. I've uploaded the excel file to

http://homepage.ntlworld.com/robinsonfizz/misc/

Filename is Overflight logger v1 for forum.xls

You also need a bit of software to allow Excel to receive data from the socket, which is here

http://www.ostrosoft.com/oswinsck.asp#inst

(download and run oswinsck.exe once)

Then put the excel file anywhere convenient, open it up and put in your lat & long, then press "start".

It runs a bit awkwardly (you can't easily minimise and maximise the window for example) - I need tips on how to improve the VB to allow spreadsheet browsing at the same time. However it does do what it says on the tin.

Cheers

Alan
DrAlan
 
Posts: 144
Joined: April 21st, 2007, 1:17 pm

Postby Roadrunner » July 1st, 2007, 1:14 pm

Alan,

Thanks for that - I will give it a try during the next few days and will let you know how I get on.

Mike
Beep-Beep
User avatar
Roadrunner
 
Posts: 1302
Joined: May 16th, 2007, 12:26 pm
Location: Stevenage, Hertfordshire, England

Postby DrAlan » July 1st, 2007, 7:43 pm

I've just uploaded "Overflight logger v1.1 for forum.xls"

- Units now nautical miles
- Contains extra worksheet that accumulates the following by bearing
- Best range
- Best % of radar horizon
- Lowest altitude
- Lowest elevation

% Radar horizon is done for each message and should give a good indication of antenna / antenna location performance that is relatively independant of traffic patterns. The point being that an aircraft at a given altitude *should* be visible a certain distance away, and recording how close to this ideal we get is a good measure irrespective of how far away or how high the individual data point is.

Cheers

Alan
DrAlan
 
Posts: 144
Joined: April 21st, 2007, 1:17 pm

Postby DrAlan » July 3rd, 2007, 6:46 pm

This has been evolving a bit quickly over the last few days.

I've taken to keeping only the latest version in the folder to avoid confusion.

The later versions are hopefully more user friendly and easier to live with. They at least now allow you to browse around the workbook & maximise/minimise the windows while the macro is running. You can also sit on the "Performance" worksheet and watch the graphs evolve.......

Filename: Overflt Logger vx.y for forum.xls

Cheers

Alan
DrAlan
 
Posts: 144
Joined: April 21st, 2007, 1:17 pm

Postby Mark Coles » July 3rd, 2007, 9:49 pm

Hi Alan,

nice feature, have been trying to get it to work, but no luck. Ran oswinsck.exe, all OK, opened up spread sheet, changed lat/long and hit Start, left it for a while until 5 min socket delay kicks in, but nothing shows, and can't really tell from selecting Start if in fact it has. Also tried saving sheet but then when re-opening, it generates a Microsoft error box. Any help appreciated

Mark
User avatar
Mark Coles
 
Posts: 488
Joined: November 21st, 2005, 3:19 pm
Location: Hexham, Northumberland

Postby nic » July 3rd, 2007, 10:37 pm

Hi Alan

all works fine :D apart from when the first aircraft hits the log list i get a debug error?? :cry:

Mark did you enable macro's :?:

Regards

Nic
nic
 
Posts: 18
Joined: April 1st, 2007, 2:18 pm
Location: shrewsbury

Postby Roadrunner » July 4th, 2007, 4:38 pm

Hi there,

I have also been having problems - with me it wont let me enable macros

Also can you confirm is there a specific order to download and run each of the files.

Does Basestation need to be shut while downloading and then open before the Excel sheet is opened?

Told you I don't know much about computors !

Mike :oops:
Beep-Beep
User avatar
Roadrunner
 
Posts: 1302
Joined: May 16th, 2007, 12:26 pm
Location: Stevenage, Hertfordshire, England

Postby DrAlan » July 4th, 2007, 4:49 pm

Nic & Mark - Thankyou for your interest and comments.

Nic: Ooops! This should be fixed now in version 1.5.

Mark:

First of all please check you have the latest version. You will need macros switched on (i.e. macro security off) as Nic says.

I have sometimes found that data doesn't seem to arrive and have had to close and re-open the spreadsheet. You don't need to wait for 5 mins unless you have only just started basestation - data should flow straight away. What should happen when you press "start" is that the statusbar at bottom left changes from "Ready" to "Connecting" then "Connected" and then "Received xxxxx characters" where xxxxx gets updated every couple of seconds and should be in the range of thousands.

Let me know how you get on.

Alan
DrAlan
 
Posts: 144
Joined: April 21st, 2007, 1:17 pm

Postby DrAlan » July 4th, 2007, 4:54 pm

Mike -


with me it wont let me enable macros


Stumped here - what version of excel are you using? Normally Tools -> Macros -> Security and tick "low" and OK. (Medium would probably work too).

Also can you confirm is there a specific order to download and run each of the files.

Provided you have run the Oswinsk.exe once, then you are all set up. Then open up my Excel file and it should work.

Does Basestation need to be shut while downloading and then open before the Excel sheet is opened?

No - you can leave Basestation running.

Told you I don't know much about computors !

Hopefully I've helped a bit :D

Cheers

Alan
DrAlan
 
Posts: 144
Joined: April 21st, 2007, 1:17 pm

Postby Mark Coles » July 4th, 2007, 5:20 pm

Hi Alan,

nope, still no luck, got v1.5, macros on low, already data on graphs in Performance, and reset doesn't work, and what Status bar?

sorry to be a pain, really like the idea of this and want to get it to work

Mark
User avatar
Mark Coles
 
Posts: 488
Joined: November 21st, 2005, 3:19 pm
Location: Hexham, Northumberland

Postby nic » July 4th, 2007, 6:10 pm

Hi Chaps

Alan its better now with 1.5 :lol:

Mike which version of office are you running ?
when you click to open alans file do you get a prompt to enable macros?

if you do then click enable

if not then click tools/macros/security make sure its set to medium (works fine for me)

post how you get on

have you any anti spyware/malware software running as this may be stopping the macros also

regards
nic
nic
 
Posts: 18
Joined: April 1st, 2007, 2:18 pm
Location: shrewsbury

Postby DrAlan » July 4th, 2007, 6:42 pm

nic wrote:Alan its better now with 1.5 :lol:
nic


:D :D :D

Excellent.
DrAlan
 
Posts: 144
Joined: April 21st, 2007, 1:17 pm

Postby Roadrunner » July 4th, 2007, 7:54 pm

Alan,

Will give it a go in the morning

Mike
Beep-Beep
User avatar
Roadrunner
 
Posts: 1302
Joined: May 16th, 2007, 12:26 pm
Location: Stevenage, Hertfordshire, England

Next

Return to Resources

Who is online

Users browsing this forum: Ileach and 2 guests