Open 1e1 opened 6 years ago
I have not seen any documentation on how VW uses the database(s). Both MIB2HIGH and MIB2TSD use sqlite3 databases which you can read about at https://www.sqlite.org
MIB2HIGH uses virtual tables to speed up searching. The poicoord* and poiname* tables are used internal to sqlite to handle these virtual tables. We can only use the poidata and poicoord tables.
Ok, it's very light :/
pPoiSystemTable.personalComment is used for each category, not for each POI.
But pPoiId
is the primary key and catId
is a foreign key.
I dumped the database:
sqlite3 ./SD_CARD/PersonalPOI/MIB2TSD/personalpoi/ppoidb/1/default/poidata.db3 .dump > dump.sql
grep -n pPoiSystemTable ./dump.sql | head -10
58151:CREATE TABLE pPoiSystemTable( pPoiId INTEGER UNIQUE PRIMARY KEY,catId INTEGER NOT NULL,priority INTEGER,sortIndex INTEGER ,personalComment TEXT ,str1 TEXT ,str2 TEXT ,int1 INTEGER ,int2 INTEGER ,version TEXT,isDirty INTEGER , FOREIGN KEY(catId) REFERENCES pPoiCategoryTable(catId) ON UPDATE CASCADE);
58152:INSERT INTO pPoiSystemTable VALUES(1,2001,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
58153:INSERT INTO pPoiSystemTable VALUES(2,2001,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
58154:INSERT INTO pPoiSystemTable VALUES(3,2001,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
58155:INSERT INTO pPoiSystemTable VALUES(4,2001,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
58156:INSERT INTO pPoiSystemTable VALUES(5,2001,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
58157:INSERT INTO pPoiSystemTable VALUES(6,2001,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
58158:INSERT INTO pPoiSystemTable VALUES(7,2001,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
58159:INSERT INTO pPoiSystemTable VALUES(8,2001,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
58160:INSERT INTO pPoiSystemTable VALUES(9,2001,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
I think we can add a personalComment :)
You are right, I was just getting confused :)
The only question is whether the MIB2TSD displays the personalComment...
I tested on VW Sharan (revision 2015), I don't know if i'm using MIB2TSD or MIB2HIGH.
I stuff personalComment
on MIB2TSD but I cann't see its content on my GPS.
I can confirm my Sharan (revision 2015) is using MIB2TSD
(not MIB2HIGH
).
Values in personalComment
are not displayed on my screen.
Hi,
Do you have some links where read how the database works?
I see the schema of MIB2HIGH:
I would know more about
poiname_segments
. I would add POI on a road section.Thanks