From owner-freebsd-bluetooth@FreeBSD.ORG Mon Aug 30 11:06:53 2010 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 7343610656A5 for ; Mon, 30 Aug 2010 11:06:53 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 470A28FC1F for ; Mon, 30 Aug 2010 11:06:53 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7UB6rte087377 for ; Mon, 30 Aug 2010 11:06:53 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7UB6qjx087375 for freebsd-bluetooth@FreeBSD.org; Mon, 30 Aug 2010 11:06:52 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 30 Aug 2010 11:06:52 GMT Message-Id: <201008301106.o7UB6qjx087375@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-bluetooth@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-bluetooth@FreeBSD.org 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: Mon, 30 Aug 2010 11:06:53 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- p kern/140590 bluetooth [bluetooth] ng_ubt(4) ng_l2cap_process_cmd_rej warning 1 problem total. From owner-freebsd-bluetooth@FreeBSD.ORG Fri Sep 3 21:28:46 2010 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 21DF310656AC for ; Fri, 3 Sep 2010 21:28:46 +0000 (UTC) (envelope-from buganini@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id E27A68FC13 for ; Fri, 3 Sep 2010 21:28:45 +0000 (UTC) Received: by iwn34 with SMTP id 34so2121758iwn.13 for ; Fri, 03 Sep 2010 14:28:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=xgAHzd4j8t2EOcbES3v2BJC4XvHrFpufoHRTXks7X0g=; b=C7zNiF68hvwfSv6Mf93yxvdzuUL/5ys8ulpeaiVs2N7hf3TA3U5hU3uRUd+4ddiatR WE3miEsQKeJkt+WvcTCQNrJUB0QygjupCuCfgZ3d58MhLQXf798hXYSgOqR5WgPXeYVb hmHFjAHyYCsWjn1TqFspCc718hERaaJSJuVC8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=ZdhdW9JDitZ/kyq+95Bnc87gQ9CBKMcoZtNy0UamqEEuQim+zOhVen4ONtkir6ddA5 HqbNPWFtX+6G0mlxeKydBPedKJoF69v8muy/rwj++Kfw9H1rqbiuJNHeu+3zVl0VSW7C rmHH2Eh7ssC1lpqkA6QOCXtDS9JZtR9zvR4wc= MIME-Version: 1.0 Received: by 10.231.148.20 with SMTP id n20mr1418448ibv.196.1283547830394; Fri, 03 Sep 2010 14:03:50 -0700 (PDT) Received: by 10.231.188.36 with HTTP; Fri, 3 Sep 2010 14:03:50 -0700 (PDT) Date: Sat, 4 Sep 2010 05:03:50 +0800 Message-ID: From: Buganini To: freebsd-bluetooth@freebsd.org Content-Type: text/plain; charset=UTF-8 Subject: Non-standard bluetooth mouse? 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: Fri, 03 Sep 2010 21:28:46 -0000 I got a bluetooth mouse (http://www.ectrade.com/Auction/FreeSample/1927412228/new-wireless-bluetooth-mouse-CH-25.html) , but I couldn't get it work: [code] #bthidcontrol -a btmouse Query Could not perform SDP query on the device 00:11:67:fa:1f:89. Attribute not found (87) [/code] I added some printf in /usr/src/usr.sbin/bluetooth/bthidcontrol/sdp.c to see what's returned by the mouse: [code] nvalues: 8 0 Get control_psm 1 Get interrupt_psm 2 Get battery_power 3 Get normally_connectable 4 Not OK 5 Not OK 6 Not OK 7 Not OK control_psm: 17 interrupt_psm: 1 reconnect_initiate: -1 normally_connectable: 0 hid_descriptor: 0x0 hid_descriptor_length: -1 [/code] my mouse returned only 4 attributes. But it works on windows xp without any driver. Is this problem in mouse or in freebsd driver? Or it is just because this mouse is not following standard? --Buganini From owner-freebsd-bluetooth@FreeBSD.ORG Fri Sep 3 22:56:30 2010 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 68DF8106564A for ; Fri, 3 Sep 2010 22:56:30 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id F35EB8FC13 for ; Fri, 3 Sep 2010 22:56:29 +0000 (UTC) Received: by wyb33 with SMTP id 33so2573414wyb.13 for ; Fri, 03 Sep 2010 15:56:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=2fr2MROphl+m1UBdDbB34CAIqOB4X9zZksPQ18QHnHw=; b=YD1v2PPC7QBqB/ojopp0HJXLCTBKlU9q5v883So0nWXVjR/VnR7UzhpbR5YK8Y4Ebn 5dICZ/Ry6oG39uuxmMejRjTAuVc/sdkdz0SdywBM1C6vlnyV3vfcl+oMuL8Q/7kk27fc ZH7gu5iewYZCijzhcojcU6N/LmHS9/dOMxUKM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=eLXgdxuJt+1QpMvr1d85TuhV4Igi4y+2nm2draUijrP/0y7nYU0NNUIJR6jeQn+/s9 7O5e6uQDBFZfB4GV1w4OozB6fseOtn5bT1qH0oVT2+PsvSvuV1eNRHagj1eBI27Acdbh Rv82xb62HeI9lE/UHd09agXpBHQs7lMNShwVQ= MIME-Version: 1.0 Received: by 10.216.162.72 with SMTP id x50mr45062wek.3.1283554205339; Fri, 03 Sep 2010 15:50:05 -0700 (PDT) Received: by 10.216.27.204 with HTTP; Fri, 3 Sep 2010 15:50:05 -0700 (PDT) In-Reply-To: References: Date: Fri, 3 Sep 2010 15:50:05 -0700 Message-ID: From: Maksim Yevmenkin To: Buganini Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-bluetooth@freebsd.org Subject: Re: Non-standard bluetooth mouse? 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: Fri, 03 Sep 2010 22:56:30 -0000 On Fri, Sep 3, 2010 at 2:03 PM, Buganini wrote: > I got a bluetooth mouse > (http://www.ectrade.com/Auction/FreeSample/1927412228/new-wireless-bluetooth-mouse-CH-25.html) > , but I couldn't get it work: > [code] > #bthidcontrol -a btmouse Query > Could not perform SDP query on the device 00:11:67:fa:1f:89. Attribute > not found (87) > [/code] > > I added some printf in /usr/src/usr.sbin/bluetooth/bthidcontrol/sdp.c > to see what's returned by the mouse: > [code] > nvalues: 8 > 0 Get control_psm > 1 Get interrupt_psm > 2 Get battery_power > 3 Get normally_connectable > 4 Not OK > 5 Not OK > 6 Not OK > 7 Not OK > control_psm: 17 > interrupt_psm: 1 > reconnect_initiate: -1 > normally_connectable: 0 > hid_descriptor: 0x0 > hid_descriptor_length: -1 > [/code] > my mouse returned only 4 attributes. > > But it works on windows xp without any driver. > > Is this problem in mouse or in freebsd driver? > Or it is just because this mouse is not following standard? if i'm reading bluetooth hid specification correctly, both sdp attribute 0x0205 (HIDReconnectInitiate) and sdp attribute 0x0206 (HIDDescriptorList) are mandatory. according to the output you have provided, both mandatory attributes are missing. as far as i can tell there could be 2 options here 1) those attributes are really missing 2) we are failing to retrieve them correctly there is not much we can do about (1) unless we obtain hid descriptor in some other way. can you please install hcidump utility from ports and send me a binary trace? thanks max From owner-freebsd-bluetooth@FreeBSD.ORG Sat Sep 4 01:07:31 2010 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 071D210656CE for ; Sat, 4 Sep 2010 01:07:31 +0000 (UTC) (envelope-from buganini@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id AFDFE8FC2E for ; Sat, 4 Sep 2010 01:07:30 +0000 (UTC) Received: by iwn34 with SMTP id 34so2317178iwn.13 for ; Fri, 03 Sep 2010 18:07:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=sdZaciQ2L4WqF7wJrZoR+pqjChlVRmvAE+8/QtXryls=; b=NKXrBN2OP6J88ovqorcS7CUXfs5jOxH/uXl8J+aE/jS5tCnfvwgT7rMuAQTJmnglB2 vxTe+xHsdVlTPG3JNWZxeiIBRWrwGEET5zwR5emAvIbG8S6Tgt1PvSIKI5nZV25oUfJt T38ksqVLplHh5WLKLWpy+SMaOU8XHrV/5c1rw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=N2MLaAMCSoKBNFY1FygvQcfQQWcy6Qa42jBUdaKknw0Op3KdOU5aXWKDJAuXFPwaun gAs3Ca5shviHf9OCd00Z/8IXpIZ6ySCfyZC1q8mIwe36zKnuVkCOdyB17DQ9Y2n4G+AF lFdRFESZJMlXTc31GF/sb+OPI8paFpb8yLql0= MIME-Version: 1.0 Received: by 10.231.174.136 with SMTP id t8mr1755986ibz.158.1283562449957; Fri, 03 Sep 2010 18:07:29 -0700 (PDT) Received: by 10.231.188.36 with HTTP; Fri, 3 Sep 2010 18:07:29 -0700 (PDT) In-Reply-To: References: Date: Sat, 4 Sep 2010 09:07:29 +0800 Message-ID: From: Buganini To: Maksim Yevmenkin Content-Type: text/plain; charset=UTF-8 Cc: freebsd-bluetooth@freebsd.org Subject: Re: Non-standard bluetooth mouse? 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, 04 Sep 2010 01:07:31 -0000 # hcidump -x and then #bthidcontrol -a btmouse Query HCIDump - HCI packet analyzer ver 1.5 device: any snap_len: 65535 filter: 0xffffffffffffffff < HCI Command: Create Connection(0x01|0x0005) plen 13 89 1F FA 67 11 00 18 CC 00 00 00 00 01 > HCI Event: Command Status(0x0f) plen 4 00 01 05 04 > HCI Event: Connect Complete(0x03) plen 11 00 0C 00 89 1F FA 67 11 00 01 00 < HCI Command: Write Link Policy Settings(0x02|0x000d) plen 4 0C 00 0F 00 < ACL data: handle 0x000c flags 0x02 dlen 12 L2CAP(s): Connect req: psm 1 scid 0x0040 > HCI Event: Command Complete(0x0e) plen 6 01 0D 08 00 0C 00 > HCI Event: Max Slots Change(0x1b) plen 3 0C 00 05 > ACL data: handle 0x000c flags 0x02 dlen 16 L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0 < ACL data: handle 0x000c flags 0x02 dlen 12 L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0 > ACL data: handle 0x000c flags 0x02 dlen 16 L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 4 MTU 512 < ACL data: handle 0x000c flags 0x02 dlen 14 L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0 > HCI Event: Number of Completed Packets(0x13) plen 5 01 0C 00 02 00 > ACL data: handle 0x000c flags 0x02 dlen 14 L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0 < ACL data: handle 0x000c flags 0x02 dlen 38 L2CAP(d): cid 0x40 len 34 [psm 1] SDP SSA Req: tid 0x0 len 0x1d pat uuid-16 0x1124 (HID) max 0xffff aid(s) 0x0004 (ProtocolDescList) 0x000d (IconURL) 0x0205 - 0x0206 0x0209 (unknown) 0x020d (unknown) cont 00 > HCI Event: Number of Completed Packets(0x13) plen 5 01 0C 00 02 00 > ACL data: handle 0x000c flags 0x02 dlen 66 L2CAP(d): cid 0x40 len 62 [psm 1] SDP SSA Rsp: tid 0x0 len 0x39 cnt 0x36 srv rec #0 aid 0x0004 (ProtocolDescList) < < uuid-16 0x0100 (L2CAP) uint 0x11 > < uuid-16 0x0011 (HIDP) > > aid 0x000d (IconURL) < < < uuid-16 0x0100 (L2CAP) uint 0x13 > < uuid-16 0x0011 (HIDP) > > > aid 0x0209 (unknown) bool 0x1 aid 0x020d (unknown) bool 0x0 cont 00 < ACL data: handle 0x000c flags 0x02 dlen 12 L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040 > ACL data: handle 0x000c flags 0x02 dlen 12 L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040 > HCI Event: Number of Completed Packets(0x13) plen 5 01 0C 00 01 00 < HCI Command: Disconnect(0x01|0x0006) plen 3 0C 00 13 > HCI Event: Command Status(0x0f) plen 4 00 01 06 04 > HCI Event: Disconn Complete(0x05) plen 4 00 0C 00 16 Thanks Buganini From owner-freebsd-bluetooth@FreeBSD.ORG Sat Sep 4 22:37:14 2010 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 6554610656C1 for ; Sat, 4 Sep 2010 22:37:14 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id EB9898FC08 for ; Sat, 4 Sep 2010 22:37:13 +0000 (UTC) Received: by wyb33 with SMTP id 33so3787935wyb.13 for ; Sat, 04 Sep 2010 15:37:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=hS/06H3Cq4PN/AEdXqzitCZiI9HnxnAK1LTPakcQgZw=; b=CLrmllvaH8cZAGYyxmyf0anZVODDMmfMpcCatDMxeUTXt9T1Ls2oIUEKTlQ1nk9uev f3NaZ4UHPrg4CcfGc1UI2sFH2TW3n4heGRpkSDYmwZ/Ks2LU8oTkJeWHVHz15NgXKlpG FXEfzfovHXWpshbNgcuqp7sGdDUZr3npSzIG8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=mWU+9qlWxSpMgZG08ygrhuB8Fhq8c8QGVCcwZk6hfJUzlmdcl6Huehq/vnvS72E3uk +ehww3E1PtA5zicbbwXsYOYkukwdKRIPlBq0ZyQNU4EP1fwk/xLbEvybCqqixwSkQOuW BtFOfs2MlSLi7Ov+MhRMFTrE/rdc86PyTsIsg= MIME-Version: 1.0 Received: by 10.216.23.206 with SMTP id v56mr1821548wev.67.1283639832758; Sat, 04 Sep 2010 15:37:12 -0700 (PDT) Received: by 10.216.27.204 with HTTP; Sat, 4 Sep 2010 15:37:12 -0700 (PDT) In-Reply-To: References: Date: Sat, 4 Sep 2010 15:37:12 -0700 Message-ID: From: Maksim Yevmenkin To: Buganini Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-bluetooth@freebsd.org Subject: Re: Non-standard bluetooth mouse? 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, 04 Sep 2010 22:37:14 -0000 hi, thanks for the trace. let's take a look.... [...] > < ACL data: handle 0x000c flags 0x02 dlen 38 > =A0 =A0L2CAP(d): cid 0x40 len 34 [psm 1] > =A0 =A0 =A0 =A0SDP SSA Req: tid 0x0 len 0x1d > =A0 =A0 =A0 =A0 =A0pat uuid-16 0x1124 (HID) > =A0 =A0 =A0 =A0 =A0max 0xffff > =A0 =A0 =A0 =A0 =A0aid(s) 0x0004 (ProtocolDescList) 0x000d (IconURL) 0x02= 05 - > 0x0206 0x0209 (unknown) 0x020d (unknown) > =A0 =A0 =A0 =A0 =A0cont 00 so here we request sdp attributes 0x0004, 0x000d, 0x0205, 0x0206, 0x0209 and 0x020d. that is obviously consistent with the bthidcontrol sdp code. >> ACL data: handle 0x000c flags 0x02 dlen 66 > =A0 =A0L2CAP(d): cid 0x40 len 62 [psm 1] > =A0 =A0 =A0 =A0SDP SSA Rsp: tid 0x0 len 0x39 > =A0 =A0 =A0 =A0 =A0cnt 0x36 > =A0 =A0 =A0 =A0 =A0srv rec #0 > =A0 =A0 =A0 =A0 =A0 =A0aid 0x0004 (ProtocolDescList) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 < < uuid-16 0x0100 (L2CAP) uint 0x11 > < > =A0 =A0 =A0 =A0 =A0 =A0 =A0 uuid-16 0x0011 (HIDP) > > > =A0 =A0 =A0 =A0 =A0 =A0aid 0x000d (IconURL) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 < < < uuid-16 0x0100 (L2CAP) uint 0x13 > < uu= id-16 > 0x0011 (HIDP) > > > > =A0 =A0 =A0 =A0 =A0 =A0aid 0x0209 (unknown) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 bool 0x1 > =A0 =A0 =A0 =A0 =A0 =A0aid 0x020d (unknown) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 bool 0x0 > > =A0 =A0 =A0 =A0 =A0cont 00 and here is the response from the mouse. as you can see, we only got back attributes 0x0004, 0x000d, 0x0209 and 0x020d. we did not get back attributes 0x0205 and attributes 0x0206. interesting that attributes 0x0205 and 0x0206 requested as range, where as all other attributes requested individually. perhaps your mouse is not liking this. i'll try to prepare some patches for you later today. thanks, max