From owner-freebsd-bluetooth@FreeBSD.ORG Tue Apr 10 18:49:31 2007 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CF3D516A402 for ; Tue, 10 Apr 2007 18:49:31 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from mh1.centtech.com (moat3.centtech.com [64.129.166.50]) by mx1.freebsd.org (Postfix) with ESMTP id A48FD13C483 for ; Tue, 10 Apr 2007 18:49:31 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.8/8.13.8) with ESMTP id l3AIQ7RZ041897; Tue, 10 Apr 2007 13:26:07 -0500 (CDT) (envelope-from anderson@freebsd.org) Message-ID: <461BD6BF.1030505@freebsd.org> Date: Tue, 10 Apr 2007 13:26:07 -0500 From: Eric Anderson User-Agent: Thunderbird 1.5.0.10 (X11/20070320) MIME-Version: 1.0 To: Vittorio De Martino References: <200704102004.34814.vittorio@de-martino.it> In-Reply-To: <200704102004.34814.vittorio@de-martino.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.4/3064/Tue Apr 10 11:25:23 2007 on mh1.centtech.com X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=8.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.6 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on mh1.centtech.com Cc: freebsd-bluetooth@freebsd.org Subject: Re: tomtom serial connection X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Apr 2007 18:49:31 -0000 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