Date: Tue, 10 Apr 2007 13:26:07 -0500 From: Eric Anderson <anderson@freebsd.org> To: Vittorio De Martino <vittorio@de-martino.it> Cc: freebsd-bluetooth@freebsd.org Subject: Re: tomtom serial connection Message-ID: <461BD6BF.1030505@freebsd.org> In-Reply-To: <200704102004.34814.vittorio@de-martino.it> References: <200704102004.34814.vittorio@de-martino.it>
next in thread | previous in thread | raw e-mail | index | archive | help
On 04/10/07 15:04, Vittorio De Martino wrote:
> I read in the internet that it is possible to connect the tomtom go gps to a
> computer via bluetooth as a serial connection therefore allowing a gps
> program such as gpsdrive to read nmea data from it.
>
> If I
>
> victor$ sdpcontrol -a tomtom browse
>
> Record Handle: 00000000
> Service Class ID List:
> Service Discovery Server (0x1000)
> Protocol Descriptor List:
> L2CAP (0x0100)
> Protocol specific parameter #1: u/int/uuid16 1
> Protocol specific parameter #2: u/int/uuid16 1
>
> Record Handle: 0x00010000
> Service Class ID List:
> Browse Group Descriptor (0x1001)
>
> But trying to connect it to a serial device:
>
> victor$ rfcomm_sppd -a tomtom -t /dev/ttyp6
> rfcomm_sppd: Could not obtain RFCOMM channel: Attribute not found
>
>
> How can I make it?
I don't see RFCOMM in the list above. Here's what I do (for my Rikaline
bluetooth gps):
hccontrol -n ubt0hci inquiry
gives me something like:
Inquiry result, num_responses=1
Inquiry result #0
BD_ADDR: 00:00:00:00:67:4f
Page Scan Rep. Mode: 0x1
Page Scan Period Mode: 00
Page Scan Mode: 00
Class: 00:00:00
Clock offset: 0x44da
Then:
sdpcontrol -a 00:00:00:00:67:4f browse
Gives:
Record Handle: 0x00090001
Service Class ID List:
Serial Port (0x1101)
Protocol Descriptor List:
L2CAP (0x0100)
RFCOMM (0x0003)
Protocol specific parameter #1: u/int8/bool 1
Then:
rfcomm_sppd -a 00:00:00:00:67:4f -t /dev/ttyp6
and in another xterm:
$ sudo cu -l /dev/ttyp6
Connected
$GPGGA,000156.20,0000.0000,N,00000.0000,E,0,00,0.00,0.00,M,0.00,M,,*6D
$GPGSA,A,1,,,,,,,,,,,,,0.00,0.00,0.00*00
$GPVTG,0.00,T,,,0.00,N,0.00,K,N*7F
$GPGLL,0000.0000,N,00000.0000,E,000156.20,V,N*71
$GPRMC,000156.20,V,0000.0000,N,00000.0000,E,0.00,0.00,220899,,,N*4E
[..snip..]
Eric
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?461BD6BF.1030505>
