-

hey viewer, we're moving!

We are currently transitioning to a new web system, so we are not updating this wikisite anymore.

The public part of the new web system is available at http://www.ira.disco.unimib.it


Gps

From Irawiki

Jump to: navigation, search

BT-Q818XP GPS 10Hz, 66 Channels, Bluetooth A-GPS Receiver.

Software download link http://www.qstarz.com/download.php?t=4&m=BT-Q818%20eXtreme

Procedure on Linux:

  1. find the mac-address of the GPS receiver
  2. change the configuration file of rfcomm module on /etc/rfcomm.conf
  3. setup minicom
$ hcitool scan
Scanning ...
	00:24:7D:C1:87:77	Nokia 5800 XpressMusic
	00:1C:88:31:1E:AF	Qstarz 818XT

cat rfcomm.conf 
#
# RFCOMM configuration file.
#

rfcomm0 {
	# Automatically bind the device at startup
	bind no;

	# Bluetooth address of the device
	device 00:1C:88:31:1E:AF;  <<<CHANGE THIS MAC!>>>

	# RFCOMM channel for the connection
	channel	1;

	# Description of the connection
	comment "Example Bluetooth device";
}

$ sudo minicom -s
[sudo] password for _user_: 
            +-----[configuration]------+
            | Filenames and paths      |
            | File transfer protocols  |
            | Serial port setup        |   <<<< SELECT THIS MENU
            | Modem and dialing        |
            | Screen and keyboard      |
            | Save setup as dfl        |
            | Save setup as..          |
            | Exit                     |
            | Exit from Minicom        |
            +--------------------------+

then press A and change the serial device

    +-----------------------------------------------------------------------+
    | A -    Serial Device      : /dev/rfcomm0                              |  <<< copy this line 
    | B - Lockfile Location     : /var/lock                                 |
    | C -   Callin Program      :                                           |
    | D -  Callout Program      :                                           |
    | E -    Bps/Par/Bits       : 115200 8N1                                |
    | F - Hardware Flow Control : Yes                                       |
    | G - Software Flow Control : No                                        |
    |                                                                       |
    |    Change which setting?                                              |
    +-----------------------------------------------------------------------+

then exit from the menu...

==============================================================================

Welcome to minicom 2.4

OPTIONS: I18n 
Compiled on Jun  3 2010, 13:46:31.
Port /dev/rfcomm0

Press CTRL-A Z for help on special keys

$GPGGA,154416.000,,,,,0,0,,,M,,M,,*4B
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,3,1,10,06,69,308,,16,68,265,,03,53,299,,21,51,058,*7D
$GPGSV,3,2,10,22,33,160,,19,23,287,,07,09,325,,29,06,100,*7C
$GPGSV,3,3,10,15,04,063,,26,01,031,*7A
$GPRMC,154416.000,V,,,,,0.01,0.00,090911,,,N*4F
$GPGGA,154416.100,,,,,0,0,,,M,,M,,*4A
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,3,1,10,06,69,308,,16,68,265,,03,53,299,,21,51,058,*7D
$GPGSV,3,2,10,22,33,160,,19,23,287,,07,09,325,,29,06,100,*7C
$GPGSV,3,3,10,15,04,063,,26,01,031,*7A
$GPRMC,154416.100,V,,,,,0.01,0.00,090911,,,N*4E
$GPGGA,154416.200,,,,,0,0,,,M,,M,,*49
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
.....
.....
.....

Here some code to open the rfcomm port with C.

[QUI QUI QUI QUI]

Personal tools