Difference between revisions of "OpenPandora"

From Navit's Wiki
Jump to: navigation, search
(raw skeleton)
 
m (Connect GPS: fix rfcomm line)
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Zaxxon==
+
[[Image:Navit on OpenPandora.JPG|thumb|OpenPandora with external GPS]]
==SuperZaxxon==
+
==(Super)Zaxxon==
==Pandebian==
+
*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
 +
*download [[Maps]] and put the .bin file at /mnt/mmc2/pandora/appdata/navit/maps/test.bin
 +
*get espeak:
 +
<source lang="bash">
 +
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
 +
</source>
 +
and test it:
 +
<source lang="bash">
 +
espeak 'This is just a short test.'
 +
</source>
 +
 
 +
===Connect GPS===
 +
 
 +
{|
 +
|valign="top"|'''Bluetooth:'''<br>
 +
{{note|Sadly the Bluetooth manager has problems with paring a GPS. Please follow this manual instructions!}}
 +
Power up your GPS device, enable bluetooth at the Pandora Manager and open a terminal and execute:
 +
<source lang="bash">hcitool scan</source>
 +
Mark and copy your BTaddr and paste it in the following lines
 +
<source lang="bash">
 +
sudo hcitool cc AA:BB:CC:DD:EE:FF
 +
sudo rfcomm connect rfcomm0 AA:BB:CC:DD:EE:FF
 +
</source>
 +
This should work fine and the GPS should show an established BT link.<br>
 +
Now test your virtual connection:
 +
<source lang="bash">cat /dev/rfcomm0</source>
 +
This should show up scrolling lines with GP* prefix
 +
 
 +
|valign="top"|'''USB:'''<br>
 +
Connect you USB GPS and open a terminal and execute:
 +
<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>
 +
Now test your virtual connection in a new terminal:
 +
<source lang="bash">cat /dev/ttyUSB0</source>
 +
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)
 +
<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:
 +
**rfcomm0 for attached Bluetooth GPS
 +
**ttyS0 for attached USB GPS
 +
<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==
 +
*OSD for cassual users (#1 routing, #2 map browsing, ...)
 +
*Make use of pandora buttons
 +
*Skin like minimenu
  
 
==See also==
 
==See also==
 
*[[OpenPandora development]]
 
*[[OpenPandora development]]
 +
*[http://boards.openpandora.org/index.php/topic/11559-navit/ Discussion on board.openpandora.org]
 +
*[http://pandorawiki.org/GPS GPS on the pandorawiki.org]
  
 
[[Category:Ports]]
 
[[Category:Ports]]

Latest revision as of 17:47, 21 April 2014

OpenPandora with external GPS

(Super)Zaxxon[edit]

  • 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[edit]

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 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[edit]

  • 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[edit]

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

See also[edit]