May 3, 2011

Naouali Naouali
Lab Rat
54 posts

Connect to GPS bluetooth

 

I m trying to connect to a bluetooth gps device and get location but i couldn’t find how to do that ?
can someone help me please ?

6 replies

May 3, 2011

leon.anavi leon.anavi
Area 51 Engineer
1217 posts

Could you please reveal more details? What is your OS?

 Signature 

http://anavi.org/

May 3, 2011

Naouali Naouali
Lab Rat
54 posts

it’s ubuntu 10.04
i was able to connect to the gps device using rfcomm and get the coordinations after reading a file (it’s something like /dev/? ) what i want is to manage everything programatically using Qt.

May 3, 2011

leon.anavi leon.anavi
Area 51 Engineer
1217 posts

Check the Connectivity API which is part of Qt Mobility [doc.qt.nokia.com] and class QRfcommServer [doc.qt.nokia.com]

Best regards,
Leon

 Signature 

http://anavi.org/

May 3, 2011

Naouali Naouali
Lab Rat
54 posts

thanks for that.
Is there a possibility to use bothe QNmeaPositionInfoSource [doc.qt.nokia.com] and QRfcommServer [doc.qt.nokia.com] to read data directly from the device and output the result ?
i checked QNmeaPositionInfoSource but i should set the device to be able to read the data . how can i get the dvice from QRfcommServer [doc.qt.nokia.com] ?

May 3, 2011

leon.anavi leon.anavi
Area 51 Engineer
1217 posts
Naouali wrote:
how can i get the dvice from QRfcommServer [doc.qt.nokia.com] ?

Have a look at Bluetooth Chat Example [doc.qt.nokia.com] to see how to use the Qt Connectivity Bluetooth API and QRfcommServer.

 Signature 

http://anavi.org/

May 3, 2011

Naouali Naouali
Lab Rat
54 posts

OK , thanks .
i ll take a lot at them and come back to you if i get any problem (if you don’t mind).

 
  ‹‹ Runtime QWidget explorer? (Like Firebug)      words to completion ››

You must log in to post a reply. Not a member yet? Register here!