Welcome to Radarspotting. Please login or sign up.

March 29, 2024, 11:39:44 AM

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.

Countries.dat file for Basestation

Started by Roadrunner, May 16, 2017, 07:35:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jules


David Finch

Hi All

From the information that I have I've updated my P4 listing for Basestation 10_04_2020 - See attached zip file.
P4-GIV, SUN removed.
P4-BFV, BSA, FJA, KBL, KGB, LNZ and PLG added.

Any additions or corrections welcome.

Hope of some use.
DF

[attachment deleted reduce file load]

Pipo

Can someone help me how i can ad all MIL in to the Countries.dat file?

When i see now a dutch mill plane it only shows the Dutch flag, not the roundle of the RNAF, I want to do this with all the MILL *bmp files that are located in BMPFlags folder.
SBS-1e & SBS-3 Raspberry Pi 3 & Pi 4
Uniden UBC125XLT


David Finch

Hi Pipo

You need 2 things.  Firstly, a set of flags that have both the civil flag and the military roundel.  I got mine from:  http://woodair.net/SBS/Utilities/Kinetic_Utilities4_Bitmaps.htm  There are a few sets to choose from and you can pick the one you like best.  Alternatively I can send you the ones I have zipped up.

Secondly you will need an updated 'Countries.dat' file.  There is one on the web site above but that's way out of date.  This file is pretty much being continuously updated as information becomes available.  Again if it helps I'll gladly send you the one I'm currently using.

Hope that helps.
DF (29tiffie@gmail.com)

David Finch

Hi All

From the information that I have I've updated my P4 listing for Basestation 05_08_2020 - See attached zip file.
P4-AEG, BFF, GEM (Now RRR), KCF, PDE removed.
P4-CCC, HBK, RRR (Ex GEM), IKH and MCO added.

Any additions or corrections welcome.

Hope of some use.
DF

[attachment deleted reduce file load]

Triple7

Hi All,

Looking for some advice on modifying my countries.dat file.

I have recently seen a few Aeroflot aircraft showing the UK flag not the Bermuda one. Using Kelvin's (egnx) excellent spreadsheet confirms the hex codes will show the UK flag.

https://radarspotting.com/forum/index.php/topic,9361.msg40176.html#msg40176

Looking at my PlanePlotter list of hex to flag associations, it shows 424200 to 424AFF are allocated to Bermuda (may or may not be correct). The question is, how do I show a range (from / to) in my Conntiries.dat file? Or is it set up to find a match with a binary starting at one value and then it assumes all the following ones are in the same flag range until a change in binary code is reached?

My current Bermuda entries are as follows:

Bermuda_1=01000000000000001xxxxxxx,17,Bermuda.bmp
Bermuda_2=01000000000000010xxxxxxx,17,Bermuda.bmp
Bermuda_3=010000000000000110xxxxxx,18,Bermuda.bmp
Bermuda_4=0100001001000000xxxxxxxx,16,Bermuda.bmp
Bermuda_5=0100001001000001000xxxxx,19,Bermuda.bmp
Bermuda_6=01000010010000010010xxxx,20,Bermuda.bmp
Bermuda_7=0100001001000001001100xx,22,Bermuda.bmp
Bermuda_8=01000010010000100011xxxx,20,Bermuda.bmp
Bermuda_9=010000100100001001xxxxxx,18,Bermuda.bmp
Bermuda_10=010000100100001010xxxxxx,18,Bermuda.bmp
Bermuda_11=0100001001000101xxxxxxxx,16,Bermuda.bmp
Bermuda_12=0100001001000110000xxxxx,19,Bermuda.bmp
Bermuda_13=010000100100100011011xxx,21,Bermuda.bmp
Bermuda_14=0100001001001000111xxxxx,19,Bermuda.bmp
Bermuda_15=0100001001001001xxxxxxxx,16,Bermuda.bmp
Bermuda_16=01000010010010100000xxxx,20,Bermuda.bmp
Bermuda_17=0100001110111110100xxxxx,19,Bermuda.bmp

Any help / pointers gratefully received.

Thanks,

Tim
SBS-1eR, FA ProStick + 1090 filter

David Finch

Hi
The x in a line means anything, 0 to F

If you take a look at the first line in blocks of 4

Bermuda_1=0100 0000 0000 0000 1xxx xxxx,17,Bermuda.bmp
                      4       0      0      0    the first hex that starts with 1 is 8 and the x's mean anything.

So that's 400080 to 40008F

Hope that helps.
DF

Anmer

#38
Hi Tim

My understanding is Countries.dat doesn't work on a range of codes, rather "batches" beginning "with" a defined number of characters:

https://radarspotting.com/forum/index.php/topic,7159.msg33736.html#msg33736

If PlanePlotter assigns hex 424200 to 424AFF to Bermuda, one could add this to the Countries.dat file:

Bermuda_18=010000100100xxxxxxxxxxxx,12,Bermuda.bmp

BUT, this assumes there are no other hex codes beginning 424 allocated to another country.

Looking at my BaseStation Reporter, there appear to be Isle of Man registrations beginning 424 as well as some for the Cayman Islands.

From what I can find, the UK was allocated a range of hex codes by ICAO and has sub-allocated some of them.  But I can't find a definitive list!

Maybe trial and error?

Here to Help.

Triple7

Thanks for those replies. I need to try and get my head around the format. I'll try and complie a list based on DF's post.

Mike, I think there might need to be a zero at the front of your binary code?

Tim
SBS-1eR, FA ProStick + 1090 filter

David Finch

Hi Tim

I should have added that given the info re the blocks of 4, you should be able to work out the range of Hex codes that each line in your file covers.
Once you have that you should be able to see where the blocks need to be changed or added to accommodate the Aeroflot codes that are currently picking up the UK flag.

FYI I have 23 lines for Bermuda in my file, I'm not saying that's correct but it works for me.

Be aware that Bermuda / Cayman / Aruba are pretty much in a permanent state of change.


Hope that helps
DF

Anmer

Quote from: Triple7 on October 26, 2020, 04:05:14 PM
Mike, I think there might need to be a zero at the front of your binary code?

Correct.  Using "bad" converters!

I've corrected my post.  Thanks for spotting it Tim.
Here to Help.

Triple7

Quote from: David Finch on October 26, 2020, 04:07:25 PM
FYI I have 23 lines for Bermuda in my file, I'm not saying that's correct but it works for me.
Hope that helps
DF

You could save me a lot of work and head scratching if you could kindly share your Bermuda list.

Thanks,

Tim
SBS-1eR, FA ProStick + 1090 filter

David Finch

Hi Tim
And there was me thinking you were up for a challenge!!!
OK
Here's what I have for Bermuda.  Any corrections, updates or changes welcome.

Bermuda_1=01000000000000001xxxxxxx,17,Bermuda.bmp
Bermuda_2=01000000000000010xxxxxxx,17,Bermuda.bmp
Bermuda_3=010000000000000110xxxxxx,18,Bermuda.bmp
Bermuda_4=0100001001000000xxxxxxxx,16,Bermuda.bmp
Bermuda_5=0100001001000001000xxxxx,19,Bermuda.bmp
Bermuda_6=01000010010000010010xxxx,20,Bermuda.bmp
Bermuda_7=0100001001000001001100xx,22,Bermuda.bmp
Bermuda_8=01000010010000100011xxxx,20,Bermuda.bmp
Bermuda_9=010000100100001001xxxxxx,18,Bermuda.bmp
Bermuda_10=01000010010000101xxxxxxx,17,Bermuda.bmp
Bermuda_11=0100001001000011xxxxxxxx,16,Bermuda.bmp
Bermuda_12=01000010010001000xxxxxxx,17,Bermuda.bmp
Bermuda_15=0100001001000100100xxxxx,19,Bermuda.bmp
Bermuda_16=0100001001000101xxxxxxxx,16,Bermuda.bmp
Bermuda_17=0100001001000110000xxxxx,19,Bermuda.bmp
Bermuda_18=01000010010001100010xxxx,20,Bermuda.bmp
Bermuda_19=010000100100100011011xxx,21,Bermuda.bmp
Bermuda_20=0100001001001000111xxxxx,19,Bermuda.bmp
Bermuda_21=0100001001001001xxxxxxxx,16,Bermuda.bmp
Bermuda_22=01000010010010100000xxxx,20,Bermuda.bmp
Bermuda_23=010000111011111010xxxxxx,18,Bermuda.bmp

DF


Anmer

I think, historically, the Countries.dat file has been adapted to handle the "exceptions", hence Tim's seventeen variations for Bermuda!

Originally the UK allocation was:

United Kingdom=010000xxxxxxxxxxxxxxxxxx,6,United_Kingdom.bmp

This "batch" would have included the Bermuda and IoM sub-allocations.

Then, as these came to light, we have had variations, such as:

Cayman Islands_1=010000000000000001xxxxxx,18,Cayman_Islands.bmp
Cayman Islands_2=010000000000000010000xxx,21,Cayman_Islands.bmp
Cayman Islands_3=0100000000000000100010xx,22,Cayman_Islands.bmp
Cayman Islands_4=01000000000000001100xxxx,20,Cayman_Islands.bmp
Cayman Islands_5=010000000000000011010xxx,21,Cayman_Islands.bmp
Cayman Islands_6=010000000000000111xxxxxx,18,Cayman_Islands.bmp
Cayman Islands_7=0100001001000001001101xx,22,Cayman_Islands.bmp
Cayman Islands_8=010000100100000100111xxx,21,Cayman_Islands.bmp
Cayman Islands_9=010000100100000101xxxxxx,18,Cayman_Islands.bmp
Cayman Islands_10=0100001001000001100xxxxx,19,Cayman_Islands.bmp
Cayman Islands_11=0100001001000001101xxxxx,19,Cayman_Islands.bmp
Cayman Islands_12=0100001001000001110xxxxx,19,Cayman_Islands.bmp
Cayman Islands_13=01000010010000011110xxxx,20,Cayman_Islands.bmp

Isle of Man=01000011111001110001011x,23,Isle_of_Man.bmp
Isle of Man=010000111110011100011xxx,21,Isle_of_Man.bmp
Isle of Man=0100001111100111001xxxxx,19,Isle_of_Man.bmp
Isle of Man=010000111110011101xxxxxx,18,Isle_of_Man.bmp
Isle of Man=01000011111001111xxxxxxx,17,Isle_of_Man.bmp
Isle of Man=010000111110100xxxxxxxxx,15,Isle_of_Man.bmp
Isle of Man=0100001111101010xxxxxxxx,16,Isle_of_Man.bmp
Isle of Man=010000111011111101111011,24,Isle_of_Man.bmp

All using the same first 6 characters as the "generic" UK allocation:

010000

It can get quite messy.
Here to Help.