Difference between revisions of "OpenPandora"

From Navit's Wiki
Jump to: navigation, search
(removed other OSses)
(fix)
Line 1: Line 1:
* [http://repo.openpandora.org/?page=detail&app=navit get the .PND file]
 
 
==(Super)Zaxxon==
 
==(Super)Zaxxon==
*get the .PND and place it on your SD card e.g. /mnt/mmc2/pandora/menu/
+
*get [http://repo.openpandora.org/?page=detail&app=navit the .PND] and place it on your SD card e.g. /mnt/mmc2/pandora/menu/
 
*get [http://navit.svn.sourceforge.net/viewvc/navit/trunk/navit/navit/navit_shipped.xml?view=log a default navit.xml] and place it at /mnt/mmc2/pandora/appdata/navit/navit.xml
 
*get [http://navit.svn.sourceforge.net/viewvc/navit/trunk/navit/navit/navit_shipped.xml?view=log a default navit.xml] and place it at /mnt/mmc2/pandora/appdata/navit/navit.xml
 
*download [[Maps]] and put the .bin file at /mnt/mmc2/pandora/appdata/navit/maps/test.bin
 
*download [[Maps]] and put the .bin file at /mnt/mmc2/pandora/appdata/navit/maps/test.bin
Line 8: Line 7:
 
sudo opkg install http://www.angstrom-distribution.org/feeds/unstable/ipk/glibc/armv7a/base/libportaudio2_v19+svnr1387-r0.6_armv7a.ipk
 
sudo opkg install http://www.angstrom-distribution.org/feeds/unstable/ipk/glibc/armv7a/base/libportaudio2_v19+svnr1387-r0.6_armv7a.ipk
 
sudo opkg install http://www.angstrom-distribution.org/feeds/unstable/ipk/glibc/armv7a/base/espeak_1.37-r0.5_armv7a.ipk
 
sudo opkg install http://www.angstrom-distribution.org/feeds/unstable/ipk/glibc/armv7a/base/espeak_1.37-r0.5_armv7a.ipk
 +
</source>
 +
and test it:
 +
<source lang="bash">
 +
espeak 'This is just a short test.'
 
</source>
 
</source>
  
 
===Connect GPS===
 
===Connect GPS===
 
 
  
 
{|
 
{|
Line 33: Line 34:
 
<source lang="bash">dmesg</source>
 
<source lang="bash">dmesg</source>
 
This should contain a line announcing a new USB device and that it is attached to a virtual serial port as /dev/ttyUSB0 or /dev/ttyACM0<br>
 
This should contain a line announcing a new USB device and that it is attached to a virtual serial port as /dev/ttyUSB0 or /dev/ttyACM0<br>
Now test your virtual connection:
+
Now test your virtual connection in a new terminal:
 
<source lang="bash">cat /dev/ttyUSB0</source>
 
<source lang="bash">cat /dev/ttyUSB0</source>
 
This should show up scrolling lines with GP* prefix
 
This should show up scrolling lines with GP* prefix
Line 41: Line 42:
 
*Open the navit.xml file
 
*Open the navit.xml file
 
*search for <config ...> and add within language="de_DE" with your appropriated language Code (e.g. en_GB)
 
*search for <config ...> and add within language="de_DE" with your appropriated language Code (e.g. en_GB)
*search for "binfile" and replace:
+
<source lang="xml">
 +
<config xmlns:xi="http://www.w3.org/2001/XInclude" language="de_DE">
 +
</source>
 +
*search for "binfile" and replace
 +
<source lang="xml">
 +
<mapset enabled="yes">
 +
<map type="binfile" enabled="yes" data="$NAVIT_SHAREDIR/maps/*.bin"/>
 +
</mapset>
 +
</source>
 
*search for "gpsd" and replace:
 
*search for "gpsd" and replace:
 
**rfcomm0 for attached Bluetooth GPS
 
**rfcomm0 for attached Bluetooth GPS
 
**ttyS0 for attached USB GPS
 
**ttyS0 for attached USB GPS
*search for "speech" and adapt <speech type="cmdline" data="espeak -v german '%s'" cps="15" />
+
<source lang="xml">
 +
<vehicle name="Local GPS" profilename="car" enabled="yes" active="1" source="file://dev/rfcomm0">
 +
</source>
 +
*search for "speech" and adapt  
 +
<source lang="xml">
 +
<speech type="cmdline" data="espeak -v german '%s'" cps="15" />
 +
</source>
  
 
==Todo==
 
==Todo==

Revision as of 22:22, 2 March 2013

(Super)Zaxxon

  • get the .PND and place it on your SD card e.g. /mnt/mmc2/pandora/menu/
  • get a default navit.xml and place it at /mnt/mmc2/pandora/appdata/navit/navit.xml
  • download Maps and put the .bin file at /mnt/mmc2/pandora/appdata/navit/maps/test.bin
  • get espeak:
sudo opkg install http://www.angstrom-distribution.org/feeds/unstable/ipk/glibc/armv7a/base/libportaudio2_v19+svnr1387-r0.6_armv7a.ipk
sudo opkg install http://www.angstrom-distribution.org/feeds/unstable/ipk/glibc/armv7a/base/espeak_1.37-r0.5_armv7a.ipk

and test it:

espeak 'This is just a short test.'

Connect GPS

Bluetooth:

Power up your GPS device, enable bluetooth at the Pandora Manager and open a terminal and execute:

hcitool scan

Mark and copy your BTaddr and paste it in the following lines

sudo hcitool cc AA:BB:CC:DD:EE:FF
sudo rfcomm connect rfcomm0 cc AA:BB:CC:DD:EE:FF

This should work fine and the GPS should show an established BT link.
Now test your virtual connection:

cat /dev/rfcomm0

This should show up scrolling lines with GP* prefix

USB:

Connect you USB GPS and open a terminal and execute:

dmesg

This should contain a line announcing a new USB device and that it is attached to a virtual serial port as /dev/ttyUSB0 or /dev/ttyACM0
Now test your virtual connection in a new terminal:

cat /dev/ttyUSB0

This should show up scrolling lines with GP* prefix

Adapt configuration

  • Open the navit.xml file
  • search for <config ...> and add within language="de_DE" with your appropriated language Code (e.g. en_GB)
<config xmlns:xi="http://www.w3.org/2001/XInclude" language="de_DE">
  • search for "binfile" and replace
<mapset enabled="yes">
	<map type="binfile" enabled="yes" data="$NAVIT_SHAREDIR/maps/*.bin"/>
</mapset>
  • search for "gpsd" and replace:
    • rfcomm0 for attached Bluetooth GPS
    • ttyS0 for attached USB GPS
<vehicle name="Local GPS" profilename="car" enabled="yes" active="1" source="file://dev/rfcomm0">
  • search for "speech" and adapt
<speech type="cmdline" data="espeak -v german '%s'" cps="15" />

Todo

  • OSD for cassual users (#1 routing, #2 map browsing, ...)
  • Make use of pandora buttons
  • Skin like minimenu

See also