Welcome to Radarspotting. Please login or sign up.

May 16, 2026, 12:00:28 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.

David Finch

Hi

For Caymans I have 17 lines and for IOM I have 15.  And even Ireland is changing with the addition of the PC12 codes to the Mil side of things.

Cayman Islands_1=010000000000000001xxxxxx,18,Cayman_Islands.bmp
Cayman Islands_2=01000000000000001000xxxx,20,Cayman_Islands.bmp
Cayman Islands_3=01000000000000001100xxxx,20,Cayman_Islands.bmp
Cayman Islands_4=010000000000000011010xxx,21,Cayman_Islands.bmp
Cayman Islands_5=010000000000000111xxxxxx,18,Cayman_Islands.bmp
Cayman Islands_6=0100001001000001001101xx,22,Cayman_Islands.bmp
Cayman Islands_7=010000100100000100111xxx,21,Cayman_Islands.bmp
Cayman Islands_8=010000100100000101xxxxxx,18,Cayman_Islands.bmp
Cayman Islands_9=010000100100000110xxxxxx,18,Cayman_Islands.bmp
Cayman Islands_10=0100001001000001110xxxxx,19,Cayman_Islands.bmp
Cayman Islands_11=0100001001000001111xxxxx,19,Cayman_Islands.bmp
Cayman Islands_12=010000100100011101001xxx,21,Cayman_Islands.bmp
Cayman Islands_13=01000010010001110101xxxx,20,Cayman_Islands.bmp
Cayman Islands_14=0100001001000111011xxxxx,19,Cayman_Islands.bmp
Cayman Islands_15=01000010010001111xxxxxxx,17,Cayman_Islands.bmp
Cayman Islands_16=0100001001001000000xxxxx,19,Cayman_Islands.bmp
Cayman Islands_17=01000010010010000010xxxx,20,Cayman_Islands.bmp

Isle of Man_1=010000100100101100000011,24,Isle_of_Man.bmp
Isle of Man_10=010000111110011100011xxx,21,Isle_of_Man.bmp
Isle of Man_11=0100001111100111001xxxxx,19,Isle_of_Man.bmp
Isle of Man_12=010000111110011101xxxxxx,18,Isle_of_Man.bmp
Isle of Man_13=01000011111001111xxxxxxx,17,Isle_of_Man.bmp
Isle of Man_14=010000111110100xxxxxxxxx,15,Isle_of_Man.bmp
Isle of Man_15=0100001111101010xxxxxxxx,16,Isle_of_Man.bmp
Isle of Man_2=0100001001001011000001xx,22,Isle_of_Man.bmp
Isle of Man_3=010000100100101100001xxx,21,Isle_of_Man.bmp
Isle of Man_4=010000100100101100xxxxxx,18,Isle_of_Man.bmp
Isle of Man_5=010000100100101101xxxxxx,18,Isle_of_Man.bmp
Isle of Man_6=01000010010010111xxxxxxx,17,Isle_of_Man.bmp
Isle of Man_7=01000010010011000xxxxxxx,17,Isle_of_Man.bmp
Isle of Man_8=01000010010011001xxxxxxx,17,Isle_of_Man.bmp
Isle of Man_9=01000011111001110001011x,23,Isle_of_Man.bmp

Again, any corrections / additions / combinations etc. welcome.
DF




Triple7

Quote from: David Finch on October 26, 2020, 04:22:17 PM
And there was me thinking you were up for a challenge!!!

I am - but ....... no need to re-invent the wheel so to speak.

Thanks for that list - a spot check using egnx's Excel sheet shows that the ones I was interested in are now correctly being decoded with the Bermuda flag.

I will do some more cross-checking and see if I can work it out for future reference.

Tim
SBS-1eR, FA ProStick + 1090 filter

Anmer

Quote from: David Finch on October 26, 2020, 04:22:17 PM
Here's what I have for Bermuda.  Any corrections, updates or changes welcome.

Those Bermuda entries are adding "exceptions" to the UK generic allocation.  Some are narrowing it down to just a few hex codes.

If we knew the specific sub-allocations we could clean up our dat file.
Here to Help.

Anmer

Quote from: Triple7 on October 26, 2020, 04:39:37 PM
Thanks for that list - a spot check using egnx's Excel sheet shows that the ones I was interested in are now correctly being decoded with the Bermuda flag.

Is that after some dat file editing?
Here to Help.

Triple7

I just copied and pasted DF's list into my .dat file and overwrote what was there.

Tim
SBS-1eR, FA ProStick + 1090 filter

David Finch

Hi All

From the information that I have, I've updated my P4 listing for Basestation 03_11_2020 - See attached zip file.
P4-LNZ, MAS, RRR, SRN removed.
P4-136, ACE, KGC and RCA added.

Any additions or corrections welcome.

Hope of some use.
DF

[attachment deleted reduce file load]

David Finch

Hi All

From the information that I have, I've updated my P4 listing for Basestation 29_12_2020 - See attached zip file.
P4-ASL, GAS removed.
P4-BAR, IFF, KBK, KBM, KGD, LTI and VIP added.

Note: The line P4_1 contains the Block codes for P4-AAF, FSH, MES, MGU, RCA, SAM, SDL and WWS .

Any additions or corrections welcome.

Hope of some use.
Wishing you all a Happy New Year.  Hope you have a good 202one.
STAY SAFE
DF

[attachment deleted reduce file load]

Oblivian

#52
Glad it's not just me!

But being away from where any of the appropriate registrations/hex fly I ended up throwing my arms up and largely gave up keeping on top of where they slide in among the UK ranges for the countries.dat

This is going offtrack for a moment, but bear with me - could be handy

Converting from the .dat binary allocations like you provide here in an excel  I did helped to work ranges out for me to use elsewhere

I've hobbled together a basic PHP website that uses functions to do conversions to help people trying to make sure the HEX they have, matches the registration block expected.
(And shows numeric/binary results too to help triple sanity check)

- For the most part I just have a disclaimer that British rule locations are all over the place so may be incomplete

But using what you guys have put together should help me clean it up.

Something I did find as part of this process based on how ICAO allocate to countries - which may be handy and you probably already knew, is often the known HEX's for these smaller regions fall within the smaller binary block sizes.
Chunks of 8, 16, 32, 64, 128, 256, 512
The big country ranges covered by the thousands. 1024, 2048, 4096, 16,383 (UK Mil has 16383 for instance) and so on

43C000 = 4440064
43FFFF = 4456447
= 16,383

So when you take some of the known Regos, convert to numeric and order them, sometimes you can see they're part of a small range rather than totally here and there. Which you can convert back to a wider Hex range for countries.dat rather than lots of singles

Part of my hex to reg table.. which is likely wrong :P

400040,40007F,4194368,4194431,Cayman Islands,VP-Cxx
400080,400087,4194432,4194439,Cayman Islands,VP-Cxx

40007F is 1 off 400080 - a total of 63 in each range (the way it works the inclusive number is always 1 less of true binary 64 for some reason)

David Finch

Hi All

From the information that I have, I've updated my P4 listing for Basestation  18_02_2021 - See attached zip file.
P4-KCH, VIP (old code) removed.
P4-EBO and VIP (new code) added.

Note: Combination of codes allows a P4_1 and a P4_2 block.

Any additions or corrections welcome.

Hope of some use.

STAY SAFE
DF

[attachment deleted reduce file load]

Oblivian

Uh. More awkward ones inside the UK range
Turks and Caicos - VQ-T. Someone reported a new one under 400397

Found an ICAO page with a bunch of the UK colonials listed..
VP-A .................................... Anguilla (United Kingdom)
VP-B, VQ-B ........................ Bermuda (United Kingdom)
VP-C ........................ Cayman Islands (United Kingdom)
VP-F ...... Falkland Islands (Malvinas) (United Kingdom)
VP-G ................................... Gibraltar (United Kingdom)
VP-L............................ Virgin Islands (United Kingdom)
VP-M ............................... Montserrat (United Kingdom)
VQ-B, VP-B ........................ Bermuda (United Kingdom)
VQ-H ................ St.Helena/Ascension (United Kingdom)
VQ-T ...................... Turks and Caicos (United Kingdom)

Rainfp1

The latest VistaJet Malta aircraft are showing on my basestation as Unallocated Hex.
This applies to 9H-VCR (4D243B) and 9H-VCS (4D243C)
My current countries.dat for Malta
Malta=01001101001000xxxxxxxxxx,14,Malta.bmp

I realise the countries.dat needs changing but not confident of where to go with this, despite some of the excellent advice earlier in this section. ANyone point me in the right direction??

Paul

Triple7

Hi Paul,

Malta=010011010010xxxxxxxxxxxx,12,Malta.bmp

Should see you right!

Tim
SBS-1eR, FA ProStick + 1090 filter

Oldfella

I haven't been happy with the intermingling of the Hong Kong hexcodes within the China 78xxxx band in the original BaseStation countries.dat file.  >:( So did a little bit of experimenting with the hexcodes logged in my BaseStation Reporter using the B-xxx regos and came up with 17 lines needed to separate them from the China 78xxxx band. So far so good.  :)

First off, needed to delete any reference in the China 78xxxx band and then created a new entry under Hong Kong and add the 17 lines as listed below. I hope this covers all the possibilities for the Hong Kong range and would appreciate notification of errors that may pop up in your neck of the woods. Don't forget to make sure you have a copy of the Hong Kong flag in your flag BMP folder.

Hong Kong_1=01111000000000100000xxxx,20,Hong_Kong.bmp
Hong Kong_2=01111000000000100001xxxx,20,Hong_Kong.bmp
Hong Kong_3=01111000000000100010xxxx,20,Hong_Kong.bmp
Hong Kong_4=01111000000000100011xxxx,20,Hong_Kong.bmp
Hong Kong_5=01111000000010100001xxxx,20,Hong_Kong.bmp
Hong Kong_6=01111000000010100010xxxx,20,Hong_Kong.bmp
Hong Kong_7=01111000000010100011xxxx,20,Hong_Kong.bmp
Hong Kong_8=01111000000010100100xxxx,20,Hong_Kong.bmp
Hong Kong_9=01111000000010100101xxxx,20,Hong_Kong.bmp
Hong Kong_10=01111000000010100110xxxx,20,Hong_Kong.bmp
Hong Kong_11=01111000000010100111xxxx,20,Hong_Kong.bmp
Hong Kong_12=01111000000010101000xxxx,20,Hong_Kong.bmp
Hong Kong_13=01111000000010101001xxxx,20,Hong_Kong.bmp
Hong Kong_14=01111000000010101010xxxx,20,Hong_Kong.bmp
Hong Kong_15=01111000000010101011xxxx,20,Hong_Kong.bmp
Hong Kong_16=01111000000010101100xxxx,20,Hong_Kong.bmp
Hong Kong_17=0111100010010010xxxxxxxx,16,Hong_Kong.bmp
Oldfella

DaveReid

I think you need at least one more line for Cathay's B773s and A333s (albeit not many of them currently flying) and Air Hong Kong's A306s which have 7801xx hex codes.

HTH
Dave

Oldfella

Thanks Dave for your information. Air Hong Kong haven't darken our skies over Sydney as of yet, so wasn't able to categorise their hexcodes.

Besides Cathay Pacific, we also had Hong Kong Airlines A333s which happen to fit nicely into the 780Axx band but haven't seen any of their aircraft since September and suspect their operations to Sydney have been suspended.  The only CPA B773s that I have logged have been in either the 7802xx or 780Axx bands. No CPA's A333 have operated into Sydney for a couple of years now.

I haven't logged any China/Hong Kong registered aircraft in the 7801xx band so didn't include them in my post

If you want to add a line for the 7801xx band, see below, but just be aware that there maybe a mixture of the two types of regos.

Hong Kong_18=0111100000000001xxxxxxxx,16,Hong_Kong.bmp
Oldfella