From owner-freebsd-bluetooth@FreeBSD.ORG Mon Mar 16 18:12:34 2015 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 116C82CA for ; Mon, 16 Mar 2015 18:12:34 +0000 (UTC) Received: from mail-wg0-x22e.google.com (mail-wg0-x22e.google.com [IPv6:2a00:1450:400c:c00::22e]) (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 941A9BF8 for ; Mon, 16 Mar 2015 18:12:33 +0000 (UTC) Received: by wgdm6 with SMTP id m6so46759485wgd.2 for ; Mon, 16 Mar 2015 11:12:32 -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=eF2J+c3l69bSg6TUsNaQEcvbb1RQfLu1x3P+Ve18S/g=; b=z9Os4WB972FDs+Z2pfvuSEXbrhYjzSOU6oBvikUjfGX/o6Wwj5EJSWsQrUPOm50vCx IbI5NkctAwacYwuX3smRJhfjxOb+RhczwcgQMscDLk2DpSKCDjtQ/DnmNUHoTDSY22OG Dq4k5UCy2r2pKZWN430sTqT/AChQKJ1ZUaoUtncPOD0wZdJALe9+CUQ5z9wAgtF0MnYV Ek/f4fgUTtruyHe7rlRiepAxArjlEr1o0fKqqGY7pYAq5iHNeyjtgx5c566Xb5VcIkp7 Ma1j3uh3UFw5CWZaqQIRrkNK+39yXPFFyBkgvHnVx/6aHs8dewRDmKayk19WD6bnvJCL 2aWA== MIME-Version: 1.0 X-Received: by 10.180.23.106 with SMTP id l10mr57172868wif.54.1426529552103; Mon, 16 Mar 2015 11:12:32 -0700 (PDT) Received: by 10.27.214.136 with HTTP; Mon, 16 Mar 2015 11:12:32 -0700 (PDT) In-Reply-To: References: Date: Mon, 16 Mar 2015 11:12:32 -0700 Message-ID: Subject: Re: register HID with SDP error From: Waitman Gobble To: Maksim Yevmenkin 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 18:12:34 -0000 On Mon, Mar 16, 2015 at 10:42 AM, Maksim Yevmenkin wrote: > 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 Hi, Thanks for your replies and helpful information. I think I did pull out the rfcomm protocol in hid.c, and advertise l2cap. But it's obviously not 100% working.. basically what I need to do is have my FreeBSD box announce that it's a keyboard, then send strings from the box such as "012345" that appear on the client as if they were typed. Thank you, -- Waitman Gobble Los Altos California USA 510-830-7975