Connecting a Holux M1000 bluetooth GPS to Linux

systemctl enable bluetooth.service
systemctl start bluetooth.service
hcitool scan
bluez-simple-agent hci0 00:1B:C1:00:FF:4E

Basically you need to use your Konsole and do the following:
sdptool browse 00:1B:C1:00:FF:4E

Browsing 00:1B:C1:00:FF:4E …
Service Name: SPP slave
Service RecHandle: 0x10000
Service Class ID List:
„Serial Port“ (0x1101)
Protocol Descriptor List:
„L2CAP“ (0x0100)
„RFCOMM“ (0x0003)
Channel: 1
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100

That returns all services on your BT device.

Then look for your GPS item and what channel (here: 1) its on. Then do this:

rfcomm bind /dev/rfcomm0
rfcomm bind /dev/rfcomm0 00:1B:C1:00:FF:4E 1

That basically binds the BT device to /dev/rfcomm0. So then just go into minicom and tell it to use /dev/rfcomm0
Baud Rate? 38400 bps
Data bit? 8
Parity? No
Stop bit? 1

Tada:
$GPGSV,3,1,12,15,76,238,24,09,65,294,31,26,49,142,,24,46,280,32*74
$GPGSV,3,2,12,28,38,052,,17,31,109,15,18,26,299,30,12,09,218,16*7F
$GPGSV,3,3,12,22,07,329,,08,07,081,,05,03,191,,36,,,*49
$GPRMC,220505.000,A,4827.6500,N,00837.1069,E,1.39,121.76,261212,,,A*6A
$GPVTG,121.76,T,,M,1.39,N,2.57,K,A*35
$GPGGA,220506.000,4827.6495,N,00837.1082,E,1,6,2.72,578.0,M,48.0,M,,*58
$GPRMC,220506.000,A,4827.6495,N,00837.1082,E,1.83,144.97,261212,,,A*6C
$GPVTG,144.97,T,,M,1.83,N,3.39,K,A*31
$GPGGA,220507.000,4827.6489,N,00837.1078,E,1,6,2.72,577.2,M,48.0,M,,*5C
$GPRMC,220507.000,A,4827.6489,N,00837.1078,E,1.29,161.38,261212,,,A*67
$GPVTG,161.38,T,,M,1.29,N,2.40,K,A*3C

Thanks to:
https://wiki.archlinux.org/index.php/Bluetooth#Pairing
http://www.linuxquestions.org/questions/suse-novell-60/how-to-make-a-bluetooth-serial-port-424442

Schreibe einen Kommentar