maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   How can I use my N900, as an external gps over bluetooth for my N95? (https://talk.maemo.org/showthread.php?t=49969)

eitama 2010-04-14 06:57

How can I use my N900, as an external gps over bluetooth for my N95?
 
Hello,

Iv'e been looking for a way to do just what the title says,
I found some script for the N800, but it's not for the N900,
I found another thread about minigpsd, but it will not install
cause it's missing some package, (even if it would install I don't know for sure it will do what I need).

All of my "power searches" have gotten me nowhere, so I am at the point where I need your help.
Has anyone managed to do this? I don't care if I need to download and stuff manually, just need this working!

Edit : The reason I need this lies here + my N95's internal gps does not work for more then 1 year now, before I bought the N900 I used an external gps over bluetooth, I want to stop using it as I basically have the needed hardware inside the N900, and sell it.

Any ideas?
Thanks,
Eitam.

ossipena 2010-04-14 06:59

Re: How can I use my N900, as an external gps over bluetooth for my N95?
 
N800 doesn't have built in gps.

I quess you would have to write a piece of software that acts like bluetooth gps module. I quess you get the functionality faster by buying bt gps module.

in finland those seems to cost from 30eur upwards...

eitama 2010-04-14 07:03

Re: How can I use my N900, as an external gps over bluetooth for my N95?
 
Quote:

Originally Posted by ossipena (Post 609781)
N800 doesn't have built in gps.

I quess you would have to write a piece of software that acts like bluetooth gps module. I quess you get the functionality faster by buying bt gps module.

in finland those seems to cost from 30eur upwards...

I was just editing my post to reflect why I don't want an external gps module (;

In a nutshell, I'll need to hookup 3 devices just to use WAZE on my N95 if I don't get this piece of software.
BTW, if it is possible to write this with Python, I'll need some guidance and I'll be happy to write it.
Just need to know where to start and how to access the GPS data on the N900 + how to create a "listener" with python code.

ossipena 2010-04-14 07:15

Re: How can I use my N900, as an external gps over bluetooth for my N95?
 
Quote:

Originally Posted by eitama (Post 609787)
I was just editing my post to reflect why I don't want an external gps module (;

In a nutshell, I'll need to hookup 3 devices just to use WAZE on my N95 if I don't get this piece of software.
BTW, if it is possible to write this with Python, I'll need some guidance and I'll be happy to write it.
Just need to know where to start and how to access the GPS data on the N900 + how to create a "listener" with python code.

here are some links if you decide to start coding:

front page:
http://wiki.maemo.org/PyMaemo

GPS
http://wiki.maemo.org/PyMaemo/Using_Location_API

And with listener, what does it listen?

rambo 2010-04-14 07:16

Re: How can I use my N900, as an external gps over bluetooth for my N95?
 
Quote:

Originally Posted by eitama (Post 609787)
I was just editing my post to reflect why I don't want an external gps module (;

In a nutshell, I'll need to hookup 3 devices just to use WAZE on my N95 if I don't get this piece of software.
BTW, if it is possible to write this with Python, I'll need some guidance and I'll be happy to write it.
Just need to know where to start and how to access the GPS data on the N900 + how to create a "listener" with python code.

http://wiki.maemo.org/PyMaemo/Using_...on_from_Python tells how to use the location API, I'm not sure if there is a good way to access the raw NMEA feed.

Then you need to figure out how to open the BT serial connection and output NMEA sentences over it whenever you get a signal from the location service.

eitama 2010-04-14 07:25

Re: How can I use my N900, as an external gps over bluetooth for my N95?
 
Quote:

Originally Posted by ossipena (Post 609796)
here are some links if you decide to start coding:

front page:
http://wiki.maemo.org/PyMaemo

GPS
http://wiki.maemo.org/PyMaemo/Using_Location_API

And with listener, what does it listen?

Thanks for the info!
When I say listener I mean a Blueooth server socket with the right protocol that will trigger some function when the GPS is needed, and will start streaming the data.
Iike a TCP server listener.

Quote:

http://wiki.maemo.org/PyMaemo/Using_...on_from_Python tells how to use the location API, I'm not sure if there is a good way to access the raw NMEA feed.

Then you need to figure out how to open the BT serial connection and output NMEA sentences over it whenever you get a signal from the location service.
Thx as well for the info, i'll give it a shot!
When you say, BT serial connection, I can choose any "port" I want? like COM3.4.5...?
How does the other device (in my case N95) know which com port to access?
Should I be looking at a way to convert the signal information to NMEA? Is that what the N95 would expect to receive?

pekkis 2010-04-14 15:39

Re: How can I use my N900, as an external gps over bluetooth for my N95?
 
It been done with earlier NITs: http://www.xmission.com/~bmidgley/gumstix/

I use to run this successfully long time ago on my 770.

eitama 2010-04-14 15:46

Re: How can I use my N900, as an external gps over bluetooth for my N95?
 
Quote:

Originally Posted by pekkis (Post 610404)
It been done with earlier NITs: http://www.xmission.com/~bmidgley/gumstix/

I use to run this successfully long time ago on my 770.

The 770 was the GPS supplier? or consumer?

pekkis 2010-04-14 16:58

Re: How can I use my N900, as an external gps over bluetooth for my N95?
 
770 was connected to real external gps and shared it over bluetooth to my cellular phone. Same time I could use Maemo Mapper on tablet.

eitama 2010-04-15 07:29

Re: How can I use my N900, as an external gps over bluetooth for my N95?
 
1 Attachment(s)
Hello guys,

I have made some progress, but it's not working yet.
I'd appreciate any help.

Achievements :
1. Python file listening on bluetooth
2. Same file also activates location service and gets gps data.
3. The python file send that over bluetooth everytime there is a fix change.
4. Manage to see the bluetooth server from my N95, choose it as external gps, but it halts after 3 seconds, asking again for an external gps - hence it doesn't like what it's getting.

Thing I need help with :
1. Something with my check sums is wrong, wrong python syntax or something, don't know.
2. If I remove the checksums, as they are supposed to be optional this still doesn't work.
3. Need a way to detect that N95 disconnected and stop everything, and not with an exception, i want the script to keep running.
4. Does anyone know if the N95 must receive all types of GTXXX messages, or will it do with just some?

If there is a python guru which knows his gps who can help me,
Please do. I'll be grateful.

P.s. The file is mostly copy pastes from stuff I found on the net,
90% not my work, I am just putting it all together for N900.
It's attached here.


All times are GMT. The time now is 21:35.

vBulletin® Version 3.8.8