navit-project.org

forum for navit navigation tool
It is currently 18 Aug 2017, 16:28
View unanswered posts | View active topics


All times are UTC


Forum rules


Feel free to ask anything here related to the installation and configuration of Navit.

Some notes before your first post:

Please provide as much informations as possible:



Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Navit on Raspberry Pi
PostPosted: 23 Mar 2014, 23:40 
Offline
User avatar

Joined: 07 Jun 2013, 17:13
Posts: 146
Location: Tartu, Estonia
Now I have it running on the real RPi with Raspbian and it looks quite nice :) I also got myself a small 480*272 pixel screen for in-car use and I have some USB GPS lying around, so I will see whether I can get this working. I also want to try Navit with ArchLinux and Pidora, just to see what are the differences and difficulties.


 Profile  
 
 Post subject: Re: Navit on Raspberry Pi
PostPosted: 25 Mar 2014, 11:57 
Offline
User avatar

Joined: 07 Jun 2013, 09:32
Posts: 200
Location: Rostock, North Germany
Would be cool if you would share some photos on the wiki, so we can add it to the gallery :D
http://wiki.navit-project.org/index.php ... ts_gallery

I guess we can call this Port K.I.T.T. ;)


 Profile  
 
 Post subject: Re: Navit on Raspberry Pi
PostPosted: 25 Mar 2014, 17:39 
Offline
User avatar

Joined: 07 Jun 2013, 17:13
Posts: 146
Location: Tartu, Estonia
Sure, I will take some pictures as soon as I have some time ;) Here is a screenshot, Navit is running on the RPi via SSH / X11 tunnel with demo vehicle right now, but I also have a screen attached and will try it with a real GPS in my car tomorrow.


Attachments:
rpixt.png
rpixt.png [ 43.6 KiB | Viewed 5917 times ]
 Profile  
 
 Post subject: Re: Navit on Raspberry Pi
PostPosted: 26 Mar 2014, 20:22 
Offline
User avatar

Joined: 07 Jun 2013, 17:13
Posts: 146
Location: Tartu, Estonia
Today I had the first test in my car and it worked quite well, but not perfectly yet. I could not make it work with GPSD so far, but it works nicely when I directly use a USB GPS receiver with Navit (using the "file" type vehicle and the /dev/ttyUSB0 device). Another problem is that the alpha channel in the OSD background is ignored, so instead of semi-transparent OSDs (see the screenshot from my last post) I get solid blue background on the actual monitor connected to the RPi (via composite - it's a small 480*272 video monitor). However, the zoom buttons (which are semi-transparent png files) indeed appear semi-transparent. I will keep trying with this and see what happens if I use a different graphics driver. I'll post some more structured summary of test results when I have more data.

Edit: With SDL graphics also the semi-transparent OSD works like a charm :D Now I only need some better car mounting and some audio output...


 Profile  
 
 Post subject: Re: Navit on Raspberry Pi
PostPosted: 29 Mar 2014, 08:23 
Offline

Joined: 14 Jun 2013, 11:02
Posts: 24
i think your problem with gpsd could be solved by reconfiguring gpsd (dpkg-reconfigure gpsd).
For me this step helped me twice (on my CarPC and my "take-away-navigation-netbook").


 Profile  
 
 Post subject: Re: Navit on Raspberry Pi
PostPosted: 29 Mar 2014, 12:24 
Offline
User avatar

Joined: 07 Jun 2013, 17:13
Posts: 146
Location: Tartu, Estonia
I already tried this and set it so that gpsd does not start initially, but only when a GPS receiver is plugged in (with device /dev/ttyUSB0). Indeed it starts GPSD in this case, but does not show a position fix in Navit. I will keep playing with this and see if I can get it working, but if not, that's no problem either as long as Navit works with direct connection to /dev/ttyUSB0.

Right now I'm running Noobs installer on another SD card to install Raspbian, Pidora, Arch and RISC OS in parallel, just to see whether I can get Navit to work with those as well.


 Profile  
 
 Post subject: Re: Navit on Raspberry Pi
PostPosted: 29 Mar 2014, 12:46 
Offline

Joined: 14 Jun 2013, 11:02
Posts: 24
would be interesting - my systems run on debian wheezy.
one gps receiver is a USB the other one BT. At the moment i start navit, gpsd (already running) initiates the bt-connection and stops it when navit is closed.
For debugging you can try xgps (in gps-utils iirc) - it's a nice gui where you can check your receiver for detected signals and if there's a fix or not.
btw: iirc my usb-receiver is on ttyACM0 not ttyUSBx
a hint from my carpc project: use udev rules to define /dev/gpsreceiver instead of ttyUSBx because if you connect other devices that use ttyUSB you can't be sure your devices always get the same number!


 Profile  
 
 Post subject: Re: Navit on Raspberry Pi
PostPosted: 30 Mar 2014, 06:08 
Offline
User avatar

Joined: 07 Jun 2013, 17:13
Posts: 146
Location: Tartu, Estonia
Indeed, using udev rules is a good suggestion. Unfortunately my GPS receiver just identifies itself as a PL2303 USB to serial converter, so I don't see how to distinguish it from another device which also identifies itself that way (I have a few of those, but I wouldn't use them in the car anyway).

Yes, I used xgps before and while I was indoors and had my GPS connected, it showed me that the GPS unit is present, but there is no signal. I also tried it outdoors, but the screen I use in my car is too small and so it just goes off the screen and one cannot really use it. I also used gpsmon for the same purpose, which also works quite well.

In the meantime I tried out the other operating systems I installed. So far I managed to boot all of them, play around a bit, install some software... So the next point will be getting all Navit dependencies and finally compiling and running Navit. I also need to figure out how to adjust the screen size, since in the car I use a small 480*272 pixel screen connected to composite out, and the picture is a bit off. In Raspbian this was easy to correct with a few settings in /boot/config.txt. In general it seems so far that working with Raspbian is easiest, maybe also because there are some similarities with Ubuntu, which I use already a few years.


 Profile  
 
 Post subject: Re: Navit on Raspberry Pi
PostPosted: 30 Mar 2014, 14:24 
Offline

Joined: 14 Jun 2013, 11:02
Posts: 24
inđeed, multiple devices, that identify the same way (vendor and device id) are difficult to handle - I've read about a solution by reading out the serial number from devices but I can't remember it.
I used it for idenitfing 3G Modem and GPS receiver. Since Wheezy my GPS is the only ttyACM0 - so atm I don't need udev rules.
I guess you know that you can move windows that are bigger than your screen by pressing and holding the alternative key...


 Profile  
 
 Post subject: Re: Navit on Raspberry Pi
PostPosted: 30 Mar 2014, 14:32 
Offline
User avatar

Joined: 07 Jun 2013, 17:13
Posts: 146
Location: Tartu, Estonia
In my car I had no keyboard attached, but only a mouse ;)

Anyway, I fixed it, and it was indeed a very simple problem. In Navit I had configured both gpsd and USB vehicles as "enabled", but only one of them "active". However, Navit nevertheless opens both connections, and once it has opened the USB device, gpsd cannot open it anymore when it gets the request from Navit, so it does not provide any data. This also explains why I got it to work at home with only gpsd and xgps running, without starting Navit, and then starting Navit while xgps was already running and gpsd has the USB device open.

Now I have only the gpsd vehicle enabled and it works like a charm :)


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Silver Orange 2.0.6 for IPB Designed by Skins and Hosting
Converted for phpBB3, based on Royal Blue template by BigB © 2007 2008 AEON KINGS