Skip to contentSkip to conversation

bluetooth and gps

Bluez-users Joseph Sirucka 4 participants 4 messages May 27, 2004 – May 29, 2004 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi All

I have a bluetooth gps unit and would like to know how do I get about connecting the unit to my linux machine.

I can get the usb bluetooth working with

bfusb and hci_usb drivers with others like l2cap, bluez etc

I can hcitool scan the bluetooth unit.

what do I need to make a connection to the unit.

regards

Joseph

-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#1 lore raw

user rfcomm as serial port and connect via it to ups using gpsd

Michal

Quoted 18 lines · Joseph Sirucka

Hi All

I have a bluetooth gps unit and would like to know how do I get about connecting the unit to my linux machine.

I can get the usb bluetooth working with

bfusb and hci_usb drivers with others like l2cap, bluez etc

I can hcitool scan the bluetooth unit.

what do I need to make a connection to the unit.

regards

Joseph

Quoted 9 lines

-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#2 lore raw

Michael

can you please give me a dummy guide on howto.

e,g. please tell what commands you need to type.

regards

Joseph

Quoted 38 lines · Michal Semler

user rfcomm as serial port and connect via it to ups using gpsd

Michal

Quoted 18 lines · Joseph Sirucka

Hi All

I have a bluetooth gps unit and would like to know how do I get about connecting the unit to my linux machine.

I can get the usb bluetooth working with

bfusb and hci_usb drivers with others like l2cap, bluez etc

I can hcitool scan the bluetooth unit.

what do I need to make a connection to the unit.

regards

Joseph

Quoted 11 lines

-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

Quoted 10 lines

-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#3 lore raw
In reply to Joseph Sirucka
Quoted 9 lines · Joseph Sirucka

Hi All

I have a bluetooth gps unit and would like to know how do I get about connecting the unit to my linux machine.

I can get the usb bluetooth working with

bfusb and hci_usb drivers with others like l2cap, bluez etc

Quoted 7 lines

I can hcitool scan the bluetooth unit.

what do I need to make a connection to the unit.

regards

Joseph

rfcomm -h shows the following:

rfcomm bind <dev> <bdaddr> <channel>

<dev> is rfcommX where X is 0,1,2... probably 0

<bdaddr> is the output of your device determined by hcitool scan. In my case is:

root@tr1a:~# hcitool scan
Scanning ...
        00:02:C7:15:7A:2F       BTGPS 157A2F

<channel> is 0-13 depending on your location

So the command for me would be

rfcomm bind 0 00:02:C7:15:7A:2F 1

My /etc/bluetooth rfcomm.conf looks thus:

rfcomm0 {
        # Automatically bind the device at startup
        bind yes;
 
        # Bluetooth address of the device
        #device 11:22:33:44:55:66;
        device 00:02:C7:15:7A:2F;
 
        # RFCOMM channel for the connection
        channel 1;
 
        # Description of the connection
        comment "Example Bluetooth device";
}

So if you type 'rfcomm bind 0' your device should be connected. Then say perhaps you have gpsdrive. Click the 'Start GPSD' button and you should be connected.

Good luck.

Ciao,

Gene

-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users