From owner-freebsd-bluetooth@FreeBSD.ORG Mon Sep 9 15:57:14 2013 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 65BB4CE for ; Mon, 9 Sep 2013 15:57:14 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id 51E6A206D for ; Mon, 9 Sep 2013 15:57:14 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id r89FvDMQ000532 for ; Mon, 9 Sep 2013 08:57:13 -0700 (PDT) (envelope-from yuri@rawbw.com) Message-ID: <522DEFD9.1030608@rawbw.com> Date: Mon, 09 Sep 2013 08:57:13 -0700 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130822 Thunderbird/17.0.8 MIME-Version: 1.0 To: freebsd-bluetooth@freebsd.org Subject: Can ubt0 be a slave or a passive listener, and not a master? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Sep 2013 15:57:14 -0000 I am trying to do some troubleshooting of BlueTooth connectivity and wouild like to see the packets, or maybe make a simple slave (like GPS slave). I have this BlueTooth USB dongle: ubt0: on usbus1 Then I stop bluetooth (master) stack, so that ubt0 has no hooks. Then I direct all packets to ng_hole node: ngctl mkpeer ubt0: hole hook hhook Then I run DTrace script showing when some msg or data comes: #!/usr/sbin/dtrace -s fbt::ngh_rcvmsg:entry { printf("ngh_rcvmsg * "); } fbt::ngh_rcvdata:entry { printf("ngh_rcvdata * "); } Attaching the hook to ubtN causes it to start bulk and interrupt transfers (according to the code). Then I turn the cellphone (master) into discovery mode. But nothing comes to the ng_hole at all. Supposedly, master in discovery mode should announce itself to slaves. Why no messages arrive to the hole? Where is the problem? Yuri From owner-freebsd-bluetooth@FreeBSD.ORG Mon Sep 9 17:59:27 2013 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A8BB8F52 for ; Mon, 9 Sep 2013 17:59:27 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from mail-ve0-x22c.google.com (mail-ve0-x22c.google.com [IPv6:2607:f8b0:400c:c01::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 69D8B290D for ; Mon, 9 Sep 2013 17:59:27 +0000 (UTC) Received: by mail-ve0-f172.google.com with SMTP id oz11so3709710veb.17 for ; Mon, 09 Sep 2013 10:59:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=OtA5VN56Zlpu4T5P6JQpS0tQhMkxdgpvvKkL0Kp0AHU=; b=dhMJg2xwNaLLt3uvTknVzBJisQN9MBaQzatsnfUIiVL9HvZVoYUmXJAtp7If2ywVdk QOdw+E4z1j6wmiStJ+7GN98LgZ+PhSLWKUCinJlZ337eRCCWR3WH4N+y2CYkqFDyOhQV TyFqBPQwc/b9aJzFFBvdD9prNHzx3KmdFK1yHmkMqFkbzaOaMH62RhebssqkVlka/flN 01kR/Ji+TZPRVC1euZsrSrajS4TeFcJa2tgx7m5rxTnsy4PYUgNrQ7FqE/QmYmNsUZnr KHt/7yzfjlN7UAl5hJGZm2yTRaxb9h30Clou6E6yvN5hhErGjgbye8GTyu1dk823EHWT Vmtg== MIME-Version: 1.0 X-Received: by 10.52.117.68 with SMTP id kc4mr15568233vdb.0.1378749566518; Mon, 09 Sep 2013 10:59:26 -0700 (PDT) Received: by 10.221.60.134 with HTTP; Mon, 9 Sep 2013 10:59:26 -0700 (PDT) In-Reply-To: <522DEFD9.1030608@rawbw.com> References: <522DEFD9.1030608@rawbw.com> Date: Mon, 9 Sep 2013 10:59:26 -0700 Message-ID: Subject: Re: Can ubt0 be a slave or a passive listener, and not a master? From: Maksim Yevmenkin To: Yuri Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-bluetooth@freebsd.org" X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Sep 2013 17:59:27 -0000 On Mon, Sep 9, 2013 at 8:57 AM, Yuri wrote: > I am trying to do some troubleshooting of BlueTooth connectivity and wouild > like to see the packets, or maybe make a simple slave (like GPS slave). i'm not sure what packets are you talking about here. fist of all, if thinking about link layer then its not going to happen. if you would like to dump HCI communication then you can use hcidump from ports collection. > I have this BlueTooth USB dongle: > ubt0: on > usbus1 > Then I stop bluetooth (master) stack, so that ubt0 has no hooks. > Then I direct all packets to ng_hole node: > ngctl mkpeer ubt0: hole hook hhook well, let me put it this way - its a little bit more complicated than this :) > Then I run DTrace script showing when some msg or data comes: > #!/usr/sbin/dtrace -s > fbt::ngh_rcvmsg:entry > { > printf("ngh_rcvmsg * "); > } > fbt::ngh_rcvdata:entry > { > printf("ngh_rcvdata * "); > } yes, i can believe it. > Attaching the hook to ubtN causes it to start bulk and interrupt transfers > (according to the code). true > Then I turn the cellphone (master) into discovery mode. But nothing comes to > the ng_hole at all. Supposedly, master in discovery mode should announce > itself to slaves. what are you expecting to see? > Why no messages arrive to the hole? Where is the problem? the lowest communication interface between host and device is HCI. there are HCI commands, HCI responses and HCI events. as far as discovery (inquiry) goes, one device initiates discovery (inquiry) in response to HCI command received from its host. the device responds (back to its host) with zero or more HCI events with information about other devices in RF proximity, followed by HCI response to indicate completion of discovery (inquiry). near by devices that are being discovered do not send anything back to their hosts. i hope that helps thanks max From owner-freebsd-bluetooth@FreeBSD.ORG Mon Sep 9 20:50:20 2013 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 15EB3187 for ; Mon, 9 Sep 2013 20:50:20 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id 00CA62381 for ; Mon, 9 Sep 2013 20:50:19 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id r89KoCEq087720; Mon, 9 Sep 2013 13:50:13 -0700 (PDT) (envelope-from yuri@rawbw.com) Message-ID: <522E3484.1070705@rawbw.com> Date: Mon, 09 Sep 2013 13:50:12 -0700 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130822 Thunderbird/17.0.8 MIME-Version: 1.0 To: Maksim Yevmenkin Subject: Re: Can ubt0 be a slave or a passive listener, and not a master? References: <522DEFD9.1030608@rawbw.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-bluetooth@freebsd.org" X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Sep 2013 20:50:20 -0000 On 09/09/2013 10:59, Maksim Yevmenkin wrote: > the lowest communication interface between host and device is HCI. > there are HCI commands, HCI responses and HCI events. as far as > discovery (inquiry) goes, one device initiates discovery (inquiry) in > response to HCI command received from its host. the device responds > (back to its host) with zero or more HCI events with information about > other devices in RF proximity, followed by HCI response to indicate > completion of discovery (inquiry). near by devices that are being > discovered do not send anything back to their hosts. > > i hope that helps So what you are saying is that there is no link-level sniffing using this kind of configuration. And the only thing I can see with hcidump are HCI commands coming back and forth between the host (BSD in this case) and device (dongle). Nothing like "promiscuous" mode for network interfaces. In other words, dongle does processing and only shows higher level information and not the link level packets. My original motivation for this is that I have a camera GPS device (master) and Android App that is supposed to work as a slave. But this link doesn't work at all for some reason. I was hoping to use BSD to troubleshoot. But it looks like this wasn't a realistic expectation. Thank you for this information, Yuri From owner-freebsd-bluetooth@FreeBSD.ORG Mon Sep 9 21:58:29 2013 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 88F53BB9 for ; Mon, 9 Sep 2013 21:58:29 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from mail-ve0-x22a.google.com (mail-ve0-x22a.google.com [IPv6:2607:f8b0:400c:c01::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4894A270E for ; Mon, 9 Sep 2013 21:58:29 +0000 (UTC) Received: by mail-ve0-f170.google.com with SMTP id c14so4000568vea.15 for ; Mon, 09 Sep 2013 14:58:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=VnJYYYpT7iRu/LfVFXmyL9b8QXaF15tFUfjU7uWLN1o=; b=r6pge/isWsG2oDlSFcKMRwwUMpdaLtx0/rvL4akUSIUv8arCHsYpDooEKPix+UWepW xxM09HEEMCo7+N0SprBEmIF+EiIpALU7HntNknjketqpxuBCAkcFUtAkQ/MvbiYsEcZZ UxuVb6Rv06mldLT3q1EORPPXIsd43ekLmxTffcF2gJ1h0QCzkqf51AjG8IWyu5QUFCga cESAQcnjc+JV2gRiTwI5UesujMngwSZZbq+Q7Lwy6rPT3MBhyOmoLmULE3zVtNCuA4jV TsmCJlwfnzfI0YH6p+Why3aF5tAMHIVykG4hT+IrHeI/Oz/hJvF7gB++njojy8wxSPdK dBeA== MIME-Version: 1.0 X-Received: by 10.52.232.165 with SMTP id tp5mr16307718vdc.11.1378763908343; Mon, 09 Sep 2013 14:58:28 -0700 (PDT) Received: by 10.221.60.134 with HTTP; Mon, 9 Sep 2013 14:58:28 -0700 (PDT) In-Reply-To: <522E3484.1070705@rawbw.com> References: <522DEFD9.1030608@rawbw.com> <522E3484.1070705@rawbw.com> Date: Mon, 9 Sep 2013 14:58:28 -0700 Message-ID: Subject: Re: Can ubt0 be a slave or a passive listener, and not a master? From: Maksim Yevmenkin To: Yuri Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-bluetooth@freebsd.org" X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Sep 2013 21:58:29 -0000 On Monday, September 9, 2013, Yuri wrote: > > So what you are saying is that there is no link-level sniffing using this > kind of configuration. And the only thing I can see with hcidump are HCI > commands coming back and forth between the host (BSD in this case) and > device (dongle). Nothing like "promiscuous" mode for network interfaces. In > other words, dongle does processing and only shows higher level information > and not the link level packets. Yes, that is exactly what I'm saying. Bluetooth interface is not like network interface. You can't turn it into sniffer. At least I'm not aware of any way to do it. There's a separate piece of hardware - Bluetooth sniffer - that basically grabs over the air communications and decodes it. > My original motivation for this is that I have a camera GPS device > (master) and Android App that is supposed to work as a slave. But this link > doesn't work at all for some reason. I was hoping to use BSD to > troubleshoot. But it looks like this wasn't a realistic expectation. Well, you can use bsd instead of android application and try to see what is going on. Bluetooth GPS usually a simple serial port profile. They just basically send nmea ASCII strings using serial port profile. I have one of those units. Start by querying services on your camera and see what's there. Thanks Max From owner-freebsd-bluetooth@FreeBSD.ORG Tue Sep 10 16:50:55 2013 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 95BA3801 for ; Tue, 10 Sep 2013 16:50:55 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id 7F80E29EF for ; Tue, 10 Sep 2013 16:50:55 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id r8AGoqfu038136; Tue, 10 Sep 2013 09:50:54 -0700 (PDT) (envelope-from yuri@rawbw.com) Message-ID: <522F4DEC.9000709@rawbw.com> Date: Tue, 10 Sep 2013 09:50:52 -0700 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130822 Thunderbird/17.0.8 MIME-Version: 1.0 To: Maksim Yevmenkin Subject: Re: Can ubt0 be a slave or a passive listener, and not a master? References: <522DEFD9.1030608@rawbw.com> <522E3484.1070705@rawbw.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-bluetooth@freebsd.org" X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.14 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 Sep 2013 16:50:55 -0000 On 09/09/2013 14:58, Maksim Yevmenkin wrote: > > Well, you can use bsd instead of android application and try to see > what is going on. Bluetooth GPS usually a simple serial port > profile. They just basically send nmea ASCII strings using serial > port profile. I have one of those units. Start by querying services on > your camera and see what's there. > To query the services I need to know the device address. This device doesn't answer to the 'inquiry'. Also doesn't query the services back through SDP (if this is reasonable at all to expect, not sure). sdpd doesn't get any connections. Can working device not answer 'inquiry'? Maybe it is just dead. This company said it would connect to BlueTooth slave with the passcode "0000". Yuri From owner-freebsd-bluetooth@FreeBSD.ORG Tue Sep 10 19:49:47 2013 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 81BEC66E for ; Tue, 10 Sep 2013 19:49:47 +0000 (UTC) (envelope-from plunky@ogmig.net) Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by mx1.freebsd.org (Postfix) with ESMTP id 39D3C26D9 for ; Tue, 10 Sep 2013 19:49:46 +0000 (UTC) Received: from mfilter10-d.gandi.net (mfilter10-d.gandi.net [217.70.178.139]) by relay5-d.mail.gandi.net (Postfix) with ESMTP id 3ADCE41C078; Tue, 10 Sep 2013 21:49:29 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter10-d.gandi.net Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by mfilter10-d.gandi.net (mfilter10-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id LIbbnfAZxnV3; Tue, 10 Sep 2013 21:49:27 +0200 (CEST) X-Originating-IP: 31.69.72.87 Received: from galant.ogmig.net (unknown [31.69.72.87]) (Authenticated sender: plunky@ogmig.net) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id C9FEC41C06B; Tue, 10 Sep 2013 21:49:24 +0200 (CEST) Received: by galant.ogmig.net (Postfix, from userid 1000) id A57E82600AB; Tue, 10 Sep 2013 20:50:48 +0100 (BST) Date: Tue, 10 Sep 2013 20:50:48 +0100 (BST) From: Iain Hibbert To: Yuri Subject: Re: Can ubt0 be a slave or a passive listener, and not a master? In-Reply-To: <522F4DEC.9000709@rawbw.com> Message-ID: References: <522DEFD9.1030608@rawbw.com> <522E3484.1070705@rawbw.com> <522F4DEC.9000709@rawbw.com> User-Agent: Alpine 2.00 (NEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: "freebsd-bluetooth@freebsd.org" X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.14 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 Sep 2013 19:49:47 -0000 On Tue, 10 Sep 2013, Yuri wrote: > On 09/09/2013 14:58, Maksim Yevmenkin wrote: > > > > Well, you can use bsd instead of android application and try to see what is > > going on. Bluetooth GPS usually a simple serial port profile. They just > > basically send nmea ASCII strings using serial port profile. I have one of > > those units. Start by querying services on your camera and see what's there. > > > > To query the services I need to know the device address. This device doesn't > answer to the 'inquiry'. Also doesn't query the services back through SDP (if > this is reasonable at all to expect, not sure). sdpd doesn't get any > connections. Can working device not answer 'inquiry'? Maybe it is just dead. > This company said it would connect to BlueTooth slave with the passcode > "0000". if they provided the app, then perhaps the app knows the bluetooth device address already (though I can't see how that would work, unless all their devices have the same address) is there no way to set the camera to 'discoverable' ? what camera/app is it? iain From owner-freebsd-bluetooth@FreeBSD.ORG Tue Sep 10 19:50:17 2013 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id AEB40694 for ; Tue, 10 Sep 2013 19:50:17 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from mail-pa0-x233.google.com (mail-pa0-x233.google.com [IPv6:2607:f8b0:400e:c03::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 85DAC270D for ; Tue, 10 Sep 2013 19:50:17 +0000 (UTC) Received: by mail-pa0-f51.google.com with SMTP id lf1so8171070pab.38 for ; Tue, 10 Sep 2013 12:50:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:mime-version:in-reply-to:content-type :content-transfer-encoding:message-id:cc:from:subject:date:to; bh=8AHpiBmlRpgHJdXolKQf+ytwCMpCFldw3J8pL3JvNz4=; b=q+HQer/UQFyqdJwA6DAav1w6BCqOR/xWF/8Vl4eLHrwi/2HneW7mE3bxY6pMcnW7kS rwxIOUQ6l8D03qq4AFnWgSaCSmnRbAK+aLsCCkoLCK9QcipFptarYEH4Q4M8ygSM5CUS dRvnyTtPJmC49PiOWxbHMcFVSj3su0w1w0VtID+jhRBnvNByjdo+6Z8ez/ppTlqIKn/r sWGUfZbe7A8VK2xAR72OHcOF7DB5kuSjtYCobtCI915Z9NdUQxbeIq7YEIxRKPwoLZnh FjeaHDDC7zMSxNrcrLdoERFFJuoDRvYEDWQ3Wl1UIqjyQPPss/fsoouiLhOqymI7RhaS ya3A== X-Received: by 10.66.162.136 with SMTP id ya8mr16388494pab.110.1378842617180; Tue, 10 Sep 2013 12:50:17 -0700 (PDT) Received: from [192.168.245.111] (67-203-191-242.static-ip.telepacific.net. [67.203.191.242]) by mx.google.com with ESMTPSA id im4sm24811560pbc.34.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Sep 2013 12:50:15 -0700 (PDT) References: <522DEFD9.1030608@rawbw.com> <522E3484.1070705@rawbw.com> <522F4DEC.9000709@rawbw.com> Mime-Version: 1.0 (1.0) In-Reply-To: <522F4DEC.9000709@rawbw.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: <92CFA072-17F6-4E91-8F4A-9DED857FE971@gmail.com> X-Mailer: iPad Mail (10B329) From: Maksim Yevmenkin Subject: Re: Can ubt0 be a slave or a passive listener, and not a master? Date: Tue, 10 Sep 2013 12:50:16 -0700 To: Yuri Cc: "freebsd-bluetooth@freebsd.org" X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.14 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 Sep 2013 19:50:17 -0000 On Sep 10, 2013, at 9:50 AM, Yuri wrote: > On 09/09/2013 14:58, Maksim Yevmenkin wrote: >>=20 >> Well, you can use bsd instead of android application and try to see what i= s going on. Bluetooth GPS usually a simple serial port profile. They just b= asically send nmea ASCII strings using serial port profile. I have one of th= ose units. Start by querying services on your camera and see what's there. >=20 > To query the services I need to know the device address. This device doesn= 't answer to the 'inquiry'. Hmm... Is there a way to make it 'discoverable'? Anything in user interface?= > Also doesn't query the services back through SDP (if this is reasonable at= all to expect, not sure). sdpd doesn't get any connections. Sometimes devices use a special trick where device class bits can be used to= provide information about services. This way remote device can learn about s= ervices without performing a full blown sdp discovery. So you might want to t= ry and play with it.=20 > Can working device not answer 'inquiry'? Maybe it is just dead. Yes. Device can be set to non-discoverable mode.=20 > This company said it would connect to BlueTooth slave with the passcode "0= 000". Can you please tell me what device is this? Make and model? Thanks Max From owner-freebsd-bluetooth@FreeBSD.ORG Tue Sep 10 20:41:57 2013 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 9818FE3E for ; Tue, 10 Sep 2013 20:41:57 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id 806D32A38 for ; Tue, 10 Sep 2013 20:41:57 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id r8AKfujM006356; Tue, 10 Sep 2013 13:41:56 -0700 (PDT) (envelope-from yuri@rawbw.com) Message-ID: <522F8414.3050009@rawbw.com> Date: Tue, 10 Sep 2013 13:41:56 -0700 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130822 Thunderbird/17.0.8 MIME-Version: 1.0 To: Maksim Yevmenkin Subject: Re: Can ubt0 be a slave or a passive listener, and not a master? References: <522DEFD9.1030608@rawbw.com> <522E3484.1070705@rawbw.com> <522F4DEC.9000709@rawbw.com> <92CFA072-17F6-4E91-8F4A-9DED857FE971@gmail.com> In-Reply-To: <92CFA072-17F6-4E91-8F4A-9DED857FE971@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-bluetooth@freebsd.org" X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.14 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 Sep 2013 20:41:57 -0000 On 09/10/2013 12:50, Maksim Yevmenkin wrote: > Hmm... Is there a way to make it 'discoverable'? Anything in user interface? This device has absolutely no buttons. Also camera has no such switch "GPS on". When cable is plugged in, it is supposed to be on. Very simple. > Sometimes devices use a special trick where device class bits can be > used to provide information about services. This way remote device can > learn about services without performing a full blown sdp discovery. So > you might want to try and play with it. This is maybe what it is doing. Maybe it performs discovery itself, looks at some flags, and keeps silent because it didn't find the right flags ... But it isn't clear how to know which flags are those. >> >This company said it would connect to BlueTooth slave with the passcode "0000". > Can you please tell me what device is this? Make and model? Yes, this device is AK-4NIII by the company called Aokatec. Camera is Nikon D300. Their official description lists a bunch of GPS devices as compatible. I don't have any of this list. When I confronted the manufacturer about the Android connectivity, they said they officially don't support Android "because Android is always a bluetooth master", and they are also a master looking for a slave. Their statement isn't correct, because there are few android apps that work as GPS slave and this is entirely possible. They also said that their master looks for slave with passcodee="0000" I also confronted Android App maker "Bluetooth GPS". They said they know about Aokatec device incompatibility, but they have no clue as of the reasons. Yuri From owner-freebsd-bluetooth@FreeBSD.ORG Tue Sep 10 20:43:17 2013 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 449B1E84 for ; Tue, 10 Sep 2013 20:43:17 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id 2D4C92A54 for ; Tue, 10 Sep 2013 20:43:16 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id r8AKhGi0006741; Tue, 10 Sep 2013 13:43:16 -0700 (PDT) (envelope-from yuri@rawbw.com) Message-ID: <522F8464.2050108@rawbw.com> Date: Tue, 10 Sep 2013 13:43:16 -0700 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130822 Thunderbird/17.0.8 MIME-Version: 1.0 To: Iain Hibbert Subject: Re: Can ubt0 be a slave or a passive listener, and not a master? References: <522DEFD9.1030608@rawbw.com> <522E3484.1070705@rawbw.com> <522F4DEC.9000709@rawbw.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-bluetooth@freebsd.org" X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.14 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 Sep 2013 20:43:17 -0000 On 09/10/2013 12:50, Iain Hibbert wrote: > if they provided the app, then perhaps the app knows the bluetooth device > address already (though I can't see how that would work, unless all their > devices have the same address) > > is there no way to set the camera to 'discoverable' ? what camera/app is > it? They didn't provide any apps. Looks like they aren't android-savvy. Nikon D300, device is Aokatec AK-4NIII, app is "Bluetooth GPS" Yuri From owner-freebsd-bluetooth@FreeBSD.ORG Wed Sep 11 06:50:33 2013 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 09750FE3 for ; Wed, 11 Sep 2013 06:50:33 +0000 (UTC) (envelope-from plunky@ogmig.net) Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by mx1.freebsd.org (Postfix) with ESMTP id B981B289C for ; Wed, 11 Sep 2013 06:50:32 +0000 (UTC) Received: from mfilter4-d.gandi.net (mfilter4-d.gandi.net [217.70.178.134]) by relay5-d.mail.gandi.net (Postfix) with ESMTP id E043341C078; Wed, 11 Sep 2013 08:50:20 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter4-d.gandi.net Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by mfilter4-d.gandi.net (mfilter4-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id zFDaZNKpo5ZC; Wed, 11 Sep 2013 08:50:19 +0200 (CEST) X-Originating-IP: 149.254.56.216 Received: from [10.114.36.115] (genkt-056-216.t-mobile.co.uk [149.254.56.216]) (Authenticated sender: plunky@ogmig.net) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 7ABC841C073; Wed, 11 Sep 2013 08:50:17 +0200 (CEST) User-Agent: K-9 Mail for Android In-Reply-To: <522F8464.2050108@rawbw.com> References: <522DEFD9.1030608@rawbw.com> <522E3484.1070705@rawbw.com> <522F4DEC.9000709@rawbw.com> <522F8464.2050108@rawbw.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Subject: Re: Can ubt0 be a slave or a passive listener, and not a master? From: Iain Hibbert Date: Wed, 11 Sep 2013 07:50:17 +0100 To: Yuri Message-ID: <737faa0c-0b83-4750-a27f-b8c97a0f1230@email.android.com> Content-Transfer-Encoding: quoted-printable Cc: "freebsd-bluetooth@freebsd.org" X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Sep 2013 06:50:33 -0000 Yuri wrote: >On 09/10/2013 12:50, Iain Hibbert wrote: >> if they provided the app, then perhaps the app knows the bluetooth >device >> address already (though I can't see how that would work, unless all >their >> devices have the same address) >> >> is there no way to set the camera to 'discoverable' ? what camera/app >is >> it? > >They didn't provide any apps. Looks like they aren't android-savvy. > >Nikon D300, device is Aokatec AK-4NIII, app is "Bluetooth GPS" > >Yuri I see. this device is a GPS adaptor only. when you plug it to the camera,= it looks for a GPS device in the area, and connects to that device in or= der to provide coordinates to the camera. it does not provide any Bluetoo= th services and it is not a GPS itself.. iain=20 From owner-freebsd-bluetooth@FreeBSD.ORG Wed Sep 11 07:29:16 2013 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5C17B129 for ; Wed, 11 Sep 2013 07:29:16 +0000 (UTC) (envelope-from plunky@ogmig.net) Received: from slow1-d.mail.gandi.net (slow1-d.mail.gandi.net [217.70.178.86]) by mx1.freebsd.org (Postfix) with ESMTP id 147092A54 for ; Wed, 11 Sep 2013 07:29:15 +0000 (UTC) Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by slow1-d.mail.gandi.net (Postfix) with ESMTP id D6B99534E9D for ; Wed, 11 Sep 2013 09:29:08 +0200 (CEST) Received: from mfilter21-d.gandi.net (mfilter21-d.gandi.net [217.70.178.149]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id 79820A810C; Wed, 11 Sep 2013 09:28:52 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter21-d.gandi.net Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by mfilter21-d.gandi.net (mfilter21-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id 2V+OAOzpi5lr; Wed, 11 Sep 2013 09:28:50 +0200 (CEST) X-Originating-IP: 149.254.56.216 Received: from [10.114.36.115] (genkt-056-216.t-mobile.co.uk [149.254.56.216]) (Authenticated sender: plunky@ogmig.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id DFFC7A80CF; Wed, 11 Sep 2013 09:28:49 +0200 (CEST) User-Agent: K-9 Mail for Android In-Reply-To: <737faa0c-0b83-4750-a27f-b8c97a0f1230@email.android.com> References: <522DEFD9.1030608@rawbw.com> <522E3484.1070705@rawbw.com> <522F4DEC.9000709@rawbw.com> <522F8464.2050108@rawbw.com> <737faa0c-0b83-4750-a27f-b8c97a0f1230@email.android.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Subject: Re: Can ubt0 be a slave or a passive listener, and not a master? From: Iain Hibbert Date: Wed, 11 Sep 2013 08:28:51 +0100 To: Yuri Message-ID: Content-Transfer-Encoding: quoted-printable Cc: "freebsd-bluetooth@freebsd.org" X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Sep 2013 07:29:16 -0000 Iain Hibbert wrote: >Yuri wrote: > >>On 09/10/2013 12:50, Iain Hibbert wrote: >>> if they provided the app, then perhaps the app knows the bluetooth >>device >>> address already (though I can't see how that would work, unless all >>their >>> devices have the same address) >>> >>> is there no way to set the camera to 'discoverable' ? what >camera/app >>is >>> it? >> >>They didn't provide any apps. Looks like they aren't android-savvy. >> >>Nikon D300, device is Aokatec AK-4NIII, app is "Bluetooth GPS" >> >>Yuri > > >I see. this device is a GPS adaptor only. when you plug it to the >camera, it looks for a GPS device in the area, and connects to that >device in order to provide coordinates to the camera. it does not >provide any Bluetooth services and it is not a GPS itself.. > >iain=20 >_______________________________________________ >freebsd-bluetooth@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth >To unsubscribe, send any mail to >"freebsd-bluetooth-unsubscribe@freebsd.org" and you probably need "Bluetooth GPS output" app on your android device t= o provide a GPS fix for your camera..? if you want to see what happens with freebase you will probably have to c= hange the class of device so that it tries to connect regards iain=20 From owner-freebsd-bluetooth@FreeBSD.ORG Wed Sep 11 15:45:40 2013 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 280A8CEF for ; Wed, 11 Sep 2013 15:45:40 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from mail-ve0-x22d.google.com (mail-ve0-x22d.google.com [IPv6:2607:f8b0:400c:c01::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D9C4524C6 for ; Wed, 11 Sep 2013 15:45:39 +0000 (UTC) Received: by mail-ve0-f173.google.com with SMTP id cz12so6003203veb.32 for ; Wed, 11 Sep 2013 08:45:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=bHM8ZGOi/rkIMnyhyvrnShYuidYEsnw0kH5xuYW7zXc=; b=RH07uCnuUxnsaj96iEB4MAgoJkmplrv5wAW7OxNbTadDZ1gyJKkJbRk7+XFhaDnSAe mWGnfDpNj+H3UhbCfD76dAYz8eOzuBYqtqQlWIKuWEQ602fqiy2jNQ6y6lbSnEppjEkg 7PZUXWps2B9tzt5KMSWYhkqqlQ7KW93+XqctX0LnWlgt6ZNCDdbcUpm1VbsMmyC5t0SC IhTGjIU7WLDsS1rEPixsZPxx3I/rd7OVaNzHFxQPUh5sEyWs1mDooTQJzybAzocynrtG /whHZbfW72NgWCC5zyEzMDpO0enYRoLdkOrA2eFZ7YVM1nC263D1xlsUxbvMOxP4w2bc bMZw== MIME-Version: 1.0 X-Received: by 10.220.88.13 with SMTP id y13mr1883482vcl.20.1378914338426; Wed, 11 Sep 2013 08:45:38 -0700 (PDT) Received: by 10.221.60.134 with HTTP; Wed, 11 Sep 2013 08:45:38 -0700 (PDT) In-Reply-To: References: <522DEFD9.1030608@rawbw.com> <522E3484.1070705@rawbw.com> <522F4DEC.9000709@rawbw.com> <522F8464.2050108@rawbw.com> <737faa0c-0b83-4750-a27f-b8c97a0f1230@email.android.com> Date: Wed, 11 Sep 2013 08:45:38 -0700 Message-ID: Subject: Re: Can ubt0 be a slave or a passive listener, and not a master? From: Maksim Yevmenkin To: Iain Hibbert Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-bluetooth@freebsd.org" X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Sep 2013 15:45:40 -0000 [...] >>>They didn't provide any apps. Looks like they aren't android-savvy. >>>Nikon D300, device is Aokatec AK-4NIII, app is "Bluetooth GPS" >>> >>I see. this device is a GPS adaptor only. when you plug it to the >>camera, it looks for a GPS device in the area, and connects to that >>device in order to provide coordinates to the camera. it does not >>provide any Bluetooth services and it is not a GPS itself.. > > and you probably need "Bluetooth GPS output" app on your android device to provide a GPS fix for your camera..? > > if you want to see what happens with freebase you will probably have to change the class of device so that it tries to connect i agree with Iain here. this Aokatec device is not a real GPS. is a pass-through type device that needs an external input from bluetooth GPS. i suspect there is a potential confusion about terms as well, i.e. "master" and "slave" have a very specific meaning when it comes to bluetooth, i.e. "piconet/link master" and "piconet/link slave". i think they really meant to use more traditional "server" and "client". As in which device initiates connection (client) and which device responds to a connection request (server). you might want to try and set class of device for ubt0 to "01:01:0c", "01:01:00" or perhaps "01:05:00", make sure that ubt0 is "discoverable" and "connectable" and give it a go. ideally, if you have bluetooth GPS you can get class of device from it and set ubt0 to exactly the same value. you will also need to to provide serial port service on ubt0 (freebsd side). thanks max