PP uses two SQLite databases: flightroute.sqb and BaseStation.sqb
The first one is unique to PP and stores only the relationship between flight numbers and routes, along with a time tag showing the time at which the route data was updated. flightroute.sqb is stored in the PP log file directory (Options..Directories..Log files) and if it does not exist when PP is first run, it is automatically created with its correct formatting information. The database is checked when flight numbers are received and the route is displayed on the chart of that is enabled in Options..Chart..Options.
Since PP of itself receives no route information, this database is only ever populated by one of the add-on scripts calling the "SetRouteByHex" method.
While on the subject, it is possible to get into a muddle whereby the flightroute.sqb file exists but has zero length and does not contain the required formatting information. This can happen if the log file directory is changed while PP is processing and when it consults the non-existent file, SQLite, not PP, creates an empty file but with no formatting. In this condition, PP sees that the file exists, so it does not create it, but it cannot be written to because it does not have the formatting information. The fix is easy. Close PP, delete the zero-length flightroute.sqb file from the current log file directory and run PP again. A new flightroute.sqb file will be created with the correct formatting.
Unlike the first one, this file is not of PP's making. It originates in the Kinetic SBS-1 BaseStation software and contains a large number of tables and fields, most of which PP ignores. If you have an SBS-1, this file will reside in the application directory used by the Kinetic software (typically C:\Program Files\Kinetic\BaseStation\) and in order for PP to be able to find it, you must point Options..Directories..SBS1 to the correct place. If you don't have an SBS1, you can put a BaseStation.sqb file that you obtain from elsewhere, into any directory that you like, but you must be sure to point PP to it using Options..Directories..SBS1.
PP consults the BaseStation.sqb database (read only) pretty much any time a position report is received from a Mode-S receiver (not necessarily an SBS1) or from sharing. It looks in the database for the registration and the aircraft type, neither of which arrive in the Mode-S/ADS-B messages off air, but which may have been populated into the SBS1 database. If it finds them, it displays them on the chart (if such labelling is enabled in Options..Chart..Options). If the information is not found in the database, then PP will display any such information that it receives by sharing (which may or may not be right, depending on how the person uploading the data has populated their own database).
PP will only ever write to the BaseStation.sqb database of you have specifically enabled (checked) the option under Options..Mode-S..Kinetic..Update registrations. If you disable (uncheck) that option, the BaseStation.sqb database will never be changed by PP.
If you do enable the option, then there are three situations in which PP will write data to it.
This information was taken directly from a post by Bev in the Plane Plotter Yahoo group.
Page Information
|
Wiki Information |
Recent PBwiki Blog Posts |