From owner-freebsd-bluetooth@FreeBSD.ORG Sat Nov 8 12:20:50 2008 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98B1C106564A for ; Sat, 8 Nov 2008 12:20:50 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from megatron.madpilot.net (megatron.madpilot.net [88.149.173.206]) by mx1.freebsd.org (Postfix) with ESMTP id 319378FC08 for ; Sat, 8 Nov 2008 12:20:50 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from localhost (localhost [127.0.0.1]) by megatron.madpilot.net (Postfix) with ESMTP id D2432130C08; Sat, 8 Nov 2008 13:20:48 +0100 (CET) X-Virus-Scanned: amavisd-new at madpilot.net Received: from megatron.madpilot.net ([127.0.0.1]) by localhost (megatron.madpilot.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YUI2O8eNrySC; Sat, 8 Nov 2008 13:20:45 +0100 (CET) Received: from anakin.madpilot.net (anakin.madpilot.net [172.24.42.10]) by megatron.madpilot.net (Postfix) with ESMTP; Sat, 8 Nov 2008 13:20:45 +0100 (CET) Message-ID: <4915841D.1060503@madpilot.net> Date: Sat, 08 Nov 2008 13:20:45 +0100 From: Guido Falsi User-Agent: Thunderbird 2.0.0.17 (X11/20080927) MIME-Version: 1.0 To: Iain Hibbert References: <20081104111947.GB62907@megatron.madpilot.net> <1225799105.807983.1164.nullmailer@galant.ukfsn.org> <20081104135107.GA64776@megatron.madpilot.net> <1225821264.107584.759.nullmailer@galant.ukfsn.org> <4910B6E6.7070206@madpilot.net> <4910CA97.6030708@madpilot.net> <1226091521.039371.399.nullmailer@galant.ukfsn.org> <4914B113.60303@madpilot.net> <1226097099.328979.788.nullmailer@galant.ukfsn.org> <4914E54B.4060206@madpilot.net> <1226135769.665964.502.nullmailer@galant.ukfsn.org> In-Reply-To: <1226135769.665964.502.nullmailer@galant.ukfsn.org> Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org Subject: Re: RFComm behaviour with nokia mobiles 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: Sat, 08 Nov 2008 12:20:50 -0000 Iain Hibbert wrote: >> I think FreeBSD's sdp is making 2 requests in this case...Or maybe forcing the >> order to be the same as the request. > > No, it does use a single ServiceSearchAttribute but I think its just that > the Nokia server iterates over the AttributeIDList with a pass through the > server record each time for attributes that match: > Now I understand it. An old sony ericcson T610 is acting the same as the 2 nokias I tried. Anyway to be on the safe side, as I said, i defined the request list in ascending order and expect answers in ascending order. > One thing that the current library code does not provide for is that the > ServiceSearchAttribute response is parsed into the sdp_attr_t array but > the caller has no way to know which record each attribute came from, so > that can cause problems when more than one record is matched. You might > also want to consider the case where a Serial Port service is matched that > does not have a Service Name field. Do you match it or ignore it? > original gnokii code is ignoring services without a name, so I'm ignoring them. I don't know exactly the chance of such a situation., Keep in mind that gnokii is interested in talking just to mobile phones, not to any kind of bluetooth device, so the function does not have any need to be too generic. > > PPS wtf is "m-Router connectivity" anyway? I don't have the slightest idea :P Mobile phones come with a lot of strange services... Googleing a little it looks like some kind of routing service used by nokia PC suite to share more services on just one logical connection. -- Guido Falsi