From owner-freebsd-bluetooth@FreeBSD.ORG Tue Oct 21 08:57:54 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 27DD01065674 for ; Tue, 21 Oct 2008 08:57:54 +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 D0B5E8FC20 for ; Tue, 21 Oct 2008 08:57:53 +0000 (UTC) (envelope-from mad@madpilot.net) Received: by megatron.madpilot.net (Postfix, from userid 1000) id 9273F130C39; Tue, 21 Oct 2008 10:42:39 +0200 (CEST) Date: Tue, 21 Oct 2008 10:42:39 +0200 From: Guido Falsi To: freebsd-bluetooth@freebsd.org Message-ID: <20081021084239.GA80573@megatron.madpilot.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD 7.1-PRERELEASE User-Agent: Mutt/1.5.18 (2008-05-17) Subject: Need help with SDP interface 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, 21 Oct 2008 08:57:54 -0000 Hello, I'm the maintainer of the gnokii port. With the new version the author added some code to automatically find the rfcomm channel to talk with mobiles using AT commands. This function is very BlueZ specific and I'm trying to rewrite it to work with FreeBSD's bluetooth stack. I can't really find some documentation I need about bluetooth, so I thought I could ask for help here. The function as written by Powell Kot (gnokii author) reads out the SDP_ATTR_PRIMARY_LANGUAGE_BASE_ID + SDP_ATTR_SERVICE_NAME_OFFSET attribute of all the RFCOMM enabed profiles, discards some based on this descriptive name and select the first one not being discarded, exctracting the channel attribute. What I can't find is the data structure of the NAME attribute, and hot to read it using the SDP_DATA_* functions. Anyone is willing to help, I think I just need the the pdf or links to documentation. I've checked through the sdpcontrol functions, and got some idea of how things work. I'm also doing a little cut & paste of code, so I wil need permission from Maksim before submitting the code to the gnokii project. Please don't judge me too hard, I'm no C programmer, just a system administrator with some coding abilities :) Thank you in advance. -- Guido Falsi