[Merkaartor] Refactoring GPS/ directory

bvh bvh-osm at irule.be
Sun Sep 7 20:04:53 BST 2008


On Sun, Sep 07, 2008 at 07:02:02PM +0200, Chris Browet wrote:
> Ok. I get you now. You can use signals if you want, but at the bottom of the
> chain, there will always be a thread waiting for bytes coming in on the
> serial line, it's just the way it is, so I'm not convinced this will save
> CPU cycles or battery.

It will, as of now, the thread is doing busy looping and thus will be
scheduled. If it can be put to sleep, the thread will not be scheduled.
It is quite easy to check with task manager on windows or top on linux. 
I am quite convinced you will see merkaartor using up all available
cpu time (or 50% on a dual core) when serial gps is running.

> But, as I said, if you think it's better, go on.

OK. I will.

> So, unless you use a usb GPS (an even usb is a serial protocol), there is
> simply no added value that I can think of to use gpsd (besides the fact that
> it is a Linux standard and that it is network enabled).

Well, on the N810 gpsd is started by default and is the documented way
to access the GPS. Not sure why Maemo choose to work with gpsd though.
Maybe because it allows easy sharing of that single device?

> Sending you a NMEA file directly to your adress.

Thnx.

cu bart





More information about the Merkaartor mailing list