From owner-freebsd-bluetooth@FreeBSD.ORG Mon Mar 16 17:42:10 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 92F428A2 for ; Mon, 16 Mar 2015 17:42:10 +0000 (UTC) Received: from mail-ig0-x231.google.com (mail-ig0-x231.google.com [IPv6:2607:f8b0:4001:c05::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5E256875 for ; Mon, 16 Mar 2015 17:42:10 +0000 (UTC) Received: by igcqo1 with SMTP id qo1so49323391igc.0 for ; Mon, 16 Mar 2015 10:42:09 -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=4XR11cH/Job3G26bcLU/uU9MvZLXmdasbD3nDRDCfCo=; b=DD0OD/6WWf4ag2rFupfu4ThhOM40H5FDUr5+Zzbh+yJSn5oaqT7PvODVJxCMWdRX78 23Ik6QslidLZgje5oIs2LwpTQEUWZPPDHdRV0vlYjQjrPcg2p/Oyta6eBjHRluohhq4Y J+ldJ8zIyCa4+5BTCLbYmh87c0f5xiipwVvgoHDCjGcFdUoWkFb3skcHA7FwL51dtaod MFVU4NKXoRuNQTaFgryD3Ca2AmIHSo7y7uJ1U/CzPCsPuqx+cKjIaj1m3tXSSpm7FR9h dUm3zffTu2fdaPT4UIjWgjzNEn7AFZpkYYgk9JZTdMqlHzHM+bE/kVDJSAaaxbRFBEyg qNIA== MIME-Version: 1.0 X-Received: by 10.107.12.70 with SMTP id w67mr74604186ioi.10.1426527729625; Mon, 16 Mar 2015 10:42:09 -0700 (PDT) Received: by 10.36.66.74 with HTTP; Mon, 16 Mar 2015 10:42:09 -0700 (PDT) In-Reply-To: References: Date: Mon, 16 Mar 2015 10:42:09 -0700 Message-ID: Subject: Re: register HID with SDP error From: Maksim Yevmenkin To: Waitman Gobble Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-bluetooth@freebsd.org" X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Mar 2015 17:42:10 -0000 Hello, > I cleaned some things up in the sdpd and pushed to github, also added > a simple example here: > > https://github.com/waitman/hid_sppd again, i does not look correct to me. please read all my previous emails. i assume you are trying to implement device side, i.e. your freebsd machine is going to act as hid device of some sort. am i correct? > if anyone is looking to run HID host services on their FreeBSD > machine, it's maybe a starting point. it would be, but it needs to be fixed first :) > ALSO, I don't see "Service Name" in the output of sdpcontrol.. is this > as intended? did you provide service name attribute? > and i don't see sdpcontrol listing the channel (if using rfcomm) or > PSM (hid). Maybe it's not so important. again, did you provide those attributes? rfcomm has nothing to do with bluetooth hid. bluetooth hid runs over l2cap. in fact it uses two l2cap psm: one for control channel and other for data (aka interrupt). bluetooth hid is modeled after usb hid, i.e. l2cap control channel is effectively usb control transfer, and, l2cap interrupt channel is effectively usb interrupt transfer. the rest, i.e. hid device descriptor, etc. etc. (that, again, comes from usb world) has to be provided (by device) via appropriate sdp attributes. thanks max