From owner-freebsd-bluetooth@FreeBSD.ORG Mon Feb 23 18:49:57 2009 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 E92011065764 for ; Mon, 23 Feb 2009 18:49:57 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from mail-gx0-f176.google.com (mail-gx0-f176.google.com [209.85.217.176]) by mx1.freebsd.org (Postfix) with ESMTP id 7E6358FC22 for ; Mon, 23 Feb 2009 18:49:57 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by gxk24 with SMTP id 24so7209473gxk.19 for ; Mon, 23 Feb 2009 10:49:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=gyKgo3r0OvUqId+8FZ66LKfA4jUL1Y3V4mzMm0v44Ds=; b=c91BKcb27y4lZl3hr/+kNVs1MM/FOYTCcClTr8W4GeCsyFMZUCrd84JyxcBqM9bQEi E3aW2fd7ukiScG1Pmu5/zu+aLAjYtC8liVtpMJaqGMnC4Rztm3n9hdA7TXoZo44joT7z DnnLMGcYALqiBgCl48Nr2Hsmtm+kaa4SkRB0o= 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=PMWKB7MsD4/LonWe/AFinGHrYWex/SeO98/wa6kcOEsXIFxtFqUTr1p602RX/DK3Si 82MluMx96GhiwiXSn6W99lC71R0Z3/cC4JM0p4Y8exeHJLRyq1ceOru4YCvwrn27vKQs 0KHHIOaaPcPsdlqc4mXWOlkI9UsjIVkxA65PE= MIME-Version: 1.0 Received: by 10.151.109.11 with SMTP id l11mr135830ybm.123.1235414996694; Mon, 23 Feb 2009 10:49:56 -0800 (PST) In-Reply-To: <1235324110.44220.1.camel@hood.oook.cz> References: <1235324110.44220.1.camel@hood.oook.cz> Date: Mon, 23 Feb 2009 10:49:56 -0800 Message-ID: From: Maksim Yevmenkin To: pav@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "freebsd-bluetooth@freebsd.org" Subject: Re: obexapp outgoing problem 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, 23 Feb 2009 18:49:58 -0000 Hi Pav, > I'm having troubles sending files to phone over obexapp, similar to > > http://www.freebsd.org/cgi/query-pr.cgi?pr=128297 > > except this time it's on 7-STABLE and the messages goes about ubt bulk > transfer having SHORT_XFER error first and then TIMEOUT. > > The box panics inside UHCI code, or just hangs. > > What can I do to help it? is that a new behavior? or was it always like that? since you have mentioned ng_ubt(4), i assume you are using usb1 (and not HPS's usb2) stack, right? the only big change that went into ng_ubt(4) (long time ago) is support for isoc. transfers. however, this change was not mfc'd, and you said you are running 7-stable, so this can not be it. if it was working before then i would try to revert back to the time when it was working, then incrementally updating trying to pinpoint time frame when it stopped working. once you know the time frame look closely for commits that could have affected it. thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Mon Feb 23 21:30:11 2009 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 BA6FA106566C for ; Mon, 23 Feb 2009 21:30:11 +0000 (UTC) (envelope-from pav@FreeBSD.org) Received: from raven.customer.vol.cz (raven.customer.vol.cz [195.250.144.108]) by mx1.freebsd.org (Postfix) with ESMTP id 1DC428FC08 for ; Mon, 23 Feb 2009 21:30:10 +0000 (UTC) (envelope-from pav@FreeBSD.org) Received: from [192.168.0.23] (r5af140.net.upc.cz [86.49.39.140]) (authenticated bits=0) by raven.customer.vol.cz (8.14.1/8.14.1) with ESMTP id n1NL34mD036746; Mon, 23 Feb 2009 22:03:06 +0100 (CET) (envelope-from pav@FreeBSD.org) From: Pav Lucistnik To: Maksim Yevmenkin In-Reply-To: References: <1235324110.44220.1.camel@hood.oook.cz> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-pFPaTnQLQCiGKcdX8/EN" Date: Mon, 23 Feb 2009 22:03:04 +0100 Message-Id: <1235422984.72242.2.camel@hood.oook.cz> Mime-Version: 1.0 X-Mailer: Evolution 2.24.4 FreeBSD GNOME Team Port X-Spam-Score: -1.401 () AWL,BAYES_00,RCVD_IN_PBL X-Scanned-By: MIMEDefang 2.64 on 195.250.144.108 X-Milter: Spamilter (Reciever: raven.customer.vol.cz; Sender-ip: 86.49.39.140; Sender-helo: [192.168.0.23]; ) Cc: "freebsd-bluetooth@freebsd.org" Subject: Re: obexapp outgoing problem X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pav@FreeBSD.org List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2009 21:30:12 -0000 --=-pFPaTnQLQCiGKcdX8/EN Content-Type: text/plain; charset="ISO-8859-2" Content-Transfer-Encoding: quoted-printable Maksim Yevmenkin p=ED=B9e v po 23. 02. 2009 v 10:49 -0800: > Hi Pav, >=20 > > I'm having troubles sending files to phone over obexapp, similar to > > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=3D128297 > > > > except this time it's on 7-STABLE and the messages goes about ubt bulk > > transfer having SHORT_XFER error first and then TIMEOUT. > > > > The box panics inside UHCI code, or just hangs. > > > > What can I do to help it? >=20 > is that a new behavior? or was it always like that? since you have > mentioned ng_ubt(4), i assume you are using usb1 (and not HPS's usb2) > stack, right? the only big change that went into ng_ubt(4) (long time > ago) is support for isoc. transfers. however, this change was not > mfc'd, and you said you are running 7-stable, so this can not be it. >=20 > if it was working before then i would try to revert back to the time > when it was working, then incrementally updating trying to pinpoint > time frame when it stopped working. once you know the time frame look > closely for commits that could have affected it. It's 7-STABLE so OLDUSB. I don't know if it's new behaviour, this is first time I tried sending files over Bluetooth to the phone, instead of mailing them. PS: other way (phone -> PC) using obexapp -s works flawlessly. --=20 Pav Lucistnik God is real unless declared integer. --=-pFPaTnQLQCiGKcdX8/EN Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?= =?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?= =?ISO-8859-1?Q?_zpr=E1vy?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAkmjDwQACgkQntdYP8FOsoLZqwCfU9eF9Wykwmm/IrqhpVLzWyaG w+AAnjEwRUMdRDowI3DRB+hESnykDAzT =+1iW -----END PGP SIGNATURE----- --=-pFPaTnQLQCiGKcdX8/EN-- From owner-freebsd-bluetooth@FreeBSD.ORG Mon Feb 23 21:42:59 2009 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 9EC7510656FF; Mon, 23 Feb 2009 21:42:59 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from mail-gx0-f176.google.com (mail-gx0-f176.google.com [209.85.217.176]) by mx1.freebsd.org (Postfix) with ESMTP id 169688FC13; Mon, 23 Feb 2009 21:42:58 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by gxk24 with SMTP id 24so7512992gxk.19 for ; Mon, 23 Feb 2009 13:42:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=BL9jbOfOVusEWve6DIU0SrzyWBmsJpEKYJMP/Y1VJ24=; b=U8J6GLB/gTbrFVYEc4lIb+XtwaobHwjgs/8LoprYN9HvG7jmiiCC7LhASOnW3qWWoc efMJbCOAn4OWnMYxKNITkIqRSLWbkL6t9p7ukVo29N7yIZ3Yhhs0eYQpNwLBd7cjCkCd M2vm6DOhcKgECe2bsn11qFck3r0ZZ+BYh5KLU= 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=NJe2xJT3X3016uV0D39wAeg6X/3ecoWYj6/PpjV9tyVC9YKNlA0zOu7tZ0W0D34JQL rMGvY3HVMALJmUJj3Isveq6qdedPIvJ8PixZVrRmHY0oCaGwKle3iiyuDThoZPiTUTuV MIrnca+QDoleKel6NMXbwWkZqMNzcC232AkmY= MIME-Version: 1.0 Received: by 10.150.147.9 with SMTP id u9mr4769981ybd.202.1235425378293; Mon, 23 Feb 2009 13:42:58 -0800 (PST) In-Reply-To: <1235422984.72242.2.camel@hood.oook.cz> References: <1235324110.44220.1.camel@hood.oook.cz> <1235422984.72242.2.camel@hood.oook.cz> Date: Mon, 23 Feb 2009 13:42:58 -0800 Message-ID: From: Maksim Yevmenkin To: pav@freebsd.org Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-bluetooth@freebsd.org" Subject: Re: obexapp outgoing problem 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, 23 Feb 2009 21:43:00 -0000 2009/2/23 Pav Lucistnik : > Maksim Yevmenkin p=ED=B9e v po 23. 02. 2009 v 10:49 -0800: >> Hi Pav, >> >> > I'm having troubles sending files to phone over obexapp, similar to >> > >> > http://www.freebsd.org/cgi/query-pr.cgi?pr=3D128297 >> > >> > except this time it's on 7-STABLE and the messages goes about ubt bulk >> > transfer having SHORT_XFER error first and then TIMEOUT. >> > >> > The box panics inside UHCI code, or just hangs. >> > >> > What can I do to help it? >> >> is that a new behavior? or was it always like that? since you have >> mentioned ng_ubt(4), i assume you are using usb1 (and not HPS's usb2) >> stack, right? the only big change that went into ng_ubt(4) (long time >> ago) is support for isoc. transfers. however, this change was not >> mfc'd, and you said you are running 7-stable, so this can not be it. >> >> if it was working before then i would try to revert back to the time >> when it was working, then incrementally updating trying to pinpoint >> time frame when it stopped working. once you know the time frame look >> closely for commits that could have affected it. > > It's 7-STABLE so OLDUSB. I don't know if it's new behaviour, this is > first time I tried sending files over Bluetooth to the phone, instead of > mailing them. > > PS: other way (phone -> PC) using obexapp -s works flawlessly. ok, could you please try the following patch. its cut-and-paste so you may need redo it manually (its simple enough). diff -u10 ng_ubt.c.orig ng_ubt.c --- ng_ubt.c.orig 2007-07-12 19:19:51.000000000 -0700 +++ ng_ubt.c 2009-02-23 13:39:32.000000000 -0800 @@ -1378,21 +1378,21 @@ m_copydata(m, 0, m->m_pkthdr.len, sc->sc_bulk_out_buffer); /* Initialize a bulk-out USB transfer and then schedule it */ usbd_setup_xfer( sc->sc_bulk_out_xfer, sc->sc_bulk_out_pipe, (usbd_private_handle) sc->sc_node, sc->sc_bulk_out_buffer, m->m_pkthdr.len, - USBD_NO_COPY, + USBD_FORCE_SHORT_XFER | USBD_NO_COPY, USBD_DEFAULT_TIMEOUT, /* XXX */ ubt_bulk_out_complete); NG_NODE_REF(sc->sc_node); status =3D usbd_transfer(sc->sc_bulk_out_xfer); if (status !=3D USBD_NORMAL_COMPLETION && status !=3D USBD_IN_PROGR= ESS) { NG_UBT_ERR( "%s: %s - Could not start bulk-out transfer. %s (%d)\n", __func__, device_get_nameunit(sc->sc_dev), usbd_errstr(status), =3D=3D=3D thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Mon Feb 23 22:15:05 2009 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 7DF1E1065674 for ; Mon, 23 Feb 2009 22:15:05 +0000 (UTC) (envelope-from pav@FreeBSD.org) Received: from raven.customer.vol.cz (raven.customer.vol.cz [195.250.144.108]) by mx1.freebsd.org (Postfix) with ESMTP id 1D5318FC1C for ; Mon, 23 Feb 2009 22:15:04 +0000 (UTC) (envelope-from pav@FreeBSD.org) Received: from [192.168.0.23] (r5af140.net.upc.cz [86.49.39.140]) (authenticated bits=0) by raven.customer.vol.cz (8.14.1/8.14.1) with ESMTP id n1NMExtj042704; Mon, 23 Feb 2009 23:15:01 +0100 (CET) (envelope-from pav@FreeBSD.org) From: Pav Lucistnik To: Maksim Yevmenkin In-Reply-To: References: <1235324110.44220.1.camel@hood.oook.cz> <1235422984.72242.2.camel@hood.oook.cz> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-Wr9r3+Vf4U1afxZOdLFe" Date: Mon, 23 Feb 2009 23:14:54 +0100 Message-Id: <1235427294.1166.0.camel@hood.oook.cz> Mime-Version: 1.0 X-Mailer: Evolution 2.24.4 FreeBSD GNOME Team Port X-Spam-Score: -1.402 () AWL,BAYES_00,RCVD_IN_PBL X-Scanned-By: MIMEDefang 2.64 on 195.250.144.108 X-Milter: Spamilter (Reciever: raven.customer.vol.cz; Sender-ip: 86.49.39.140; Sender-helo: [192.168.0.23]; ) Cc: "freebsd-bluetooth@freebsd.org" Subject: Re: obexapp outgoing problem X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pav@FreeBSD.org List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2009 22:15:06 -0000 --=-Wr9r3+Vf4U1afxZOdLFe Content-Type: text/plain; charset="ISO-8859-2" Content-Transfer-Encoding: quoted-printable Maksim Yevmenkin p=ED=B9e v po 23. 02. 2009 v 13:42 -0800: > 2009/2/23 Pav Lucistnik : > > Maksim Yevmenkin p=ED=B9e v po 23. 02. 2009 v 10:49 -0800: > >> Hi Pav, > >> > >> > I'm having troubles sending files to phone over obexapp, similar to > >> > > >> > http://www.freebsd.org/cgi/query-pr.cgi?pr=3D128297 > >> > > >> > except this time it's on 7-STABLE and the messages goes about ubt bu= lk > >> > transfer having SHORT_XFER error first and then TIMEOUT. > >> > > >> > The box panics inside UHCI code, or just hangs. > >> > > >> > What can I do to help it? > >> > >> is that a new behavior? or was it always like that? since you have > >> mentioned ng_ubt(4), i assume you are using usb1 (and not HPS's usb2) > >> stack, right? the only big change that went into ng_ubt(4) (long time > >> ago) is support for isoc. transfers. however, this change was not > >> mfc'd, and you said you are running 7-stable, so this can not be it. > >> > >> if it was working before then i would try to revert back to the time > >> when it was working, then incrementally updating trying to pinpoint > >> time frame when it stopped working. once you know the time frame look > >> closely for commits that could have affected it. > > > > It's 7-STABLE so OLDUSB. I don't know if it's new behaviour, this is > > first time I tried sending files over Bluetooth to the phone, instead o= f > > mailing them. > > > > PS: other way (phone -> PC) using obexapp -s works flawlessly. >=20 > ok, could you please try the following patch. its cut-and-paste so you > may need redo it manually (its simple enough). >=20 > diff -u10 ng_ubt.c.orig ng_ubt.c > --- ng_ubt.c.orig 2007-07-12 19:19:51.000000000 -0700 > +++ ng_ubt.c 2009-02-23 13:39:32.000000000 -0800 > @@ -1378,21 +1378,21 @@ >=20 > m_copydata(m, 0, m->m_pkthdr.len, sc->sc_bulk_out_buffer); >=20 > /* Initialize a bulk-out USB transfer and then schedule it */ > usbd_setup_xfer( > sc->sc_bulk_out_xfer, > sc->sc_bulk_out_pipe, > (usbd_private_handle) sc->sc_node, > sc->sc_bulk_out_buffer, > m->m_pkthdr.len, > - USBD_NO_COPY, > + USBD_FORCE_SHORT_XFER | USBD_NO_COPY, > USBD_DEFAULT_TIMEOUT, /* XXX */ > ubt_bulk_out_complete); >=20 > NG_NODE_REF(sc->sc_node); >=20 > status =3D usbd_transfer(sc->sc_bulk_out_xfer); > if (status !=3D USBD_NORMAL_COMPLETION && status !=3D USBD_IN_PRO= GRESS) { > NG_UBT_ERR( > "%s: %s - Could not start bulk-out transfer. %s (%d)\n", > __func__, device_get_nameunit(sc->sc_dev), > usbd_errstr(status), No change, now I get bulk-out transfer error SHORT_XFER twice and hang. --=20 Pav Lucistnik Pain clots and unformed lice pat this train. --=-Wr9r3+Vf4U1afxZOdLFe Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?= =?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?= =?ISO-8859-1?Q?_zpr=E1vy?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAkmjH9oACgkQntdYP8FOsoLwuACcCQWGCJjUHIKthSzKl/eGSAwn llYAmgLWYJWrDN5wqg97I7n1AM1HRG9U =iTIH -----END PGP SIGNATURE----- --=-Wr9r3+Vf4U1afxZOdLFe-- From owner-freebsd-bluetooth@FreeBSD.ORG Tue Feb 24 01:47:02 2009 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 0ACEF106564A; Tue, 24 Feb 2009 01:47:02 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.180]) by mx1.freebsd.org (Postfix) with ESMTP id 8FA0E8FC0A; Tue, 24 Feb 2009 01:47:01 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by el-out-1112.google.com with SMTP id r27so1600889ele.13 for ; Mon, 23 Feb 2009 17:47:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=YY5tHGZO79bmcGbWH2opiBFp1nsEr9zNf33NHcFEt1U=; b=WxF22cfTWMPdrLnaoZKvTlF89AEFLsLMsavTLzXnKXEX4udZAeNnwEev9gj+mHm/eA ILvpdzZ2Wd+o+F/ntenCMTI1YV94xFWpOU8kmMOJkZ5qqvm1LJ+eWMoEWoFx4/IOs9iD 6cdWKS47g1kEsrrpr0Pg7eonBgmCUtgSeDpJM= 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=pKo9S+6vKv0Ta4Hvsu1qNLp2ZDo24RqbMbJPVqUtcsqN+7i3Ofvp4gZrc/0M+WvpCv nc99TtjwNXsgvyYuPJK3+xDexz2/WuO+b5Y0xr/KQ1gpCyVSvSfqZ7K/hEiK7vfX28Tj u9v6FrXBvdYrB6lo02AKRMEA0J7BW8vLct7ro= MIME-Version: 1.0 Received: by 10.150.217.14 with SMTP id p14mr5888449ybg.75.1235440020645; Mon, 23 Feb 2009 17:47:00 -0800 (PST) In-Reply-To: <1235427294.1166.0.camel@hood.oook.cz> References: <1235324110.44220.1.camel@hood.oook.cz> <1235422984.72242.2.camel@hood.oook.cz> <1235427294.1166.0.camel@hood.oook.cz> Date: Mon, 23 Feb 2009 17:47:00 -0800 Message-ID: From: Maksim Yevmenkin To: pav@freebsd.org Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-bluetooth@freebsd.org" Subject: Re: obexapp outgoing problem 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, 24 Feb 2009 01:47:02 -0000 2009/2/23 Pav Lucistnik : > Maksim Yevmenkin p=ED=B9e v po 23. 02. 2009 v 13:42 -0800: >> 2009/2/23 Pav Lucistnik : >> > Maksim Yevmenkin p=ED=B9e v po 23. 02. 2009 v 10:49 -0800: >> >> Hi Pav, >> >> >> >> > I'm having troubles sending files to phone over obexapp, similar to >> >> > >> >> > http://www.freebsd.org/cgi/query-pr.cgi?pr=3D128297 >> >> > >> >> > except this time it's on 7-STABLE and the messages goes about ubt b= ulk >> >> > transfer having SHORT_XFER error first and then TIMEOUT. >> >> > >> >> > The box panics inside UHCI code, or just hangs. >> >> > >> >> > What can I do to help it? >> >> >> >> is that a new behavior? or was it always like that? since you have >> >> mentioned ng_ubt(4), i assume you are using usb1 (and not HPS's usb2) >> >> stack, right? the only big change that went into ng_ubt(4) (long time >> >> ago) is support for isoc. transfers. however, this change was not >> >> mfc'd, and you said you are running 7-stable, so this can not be it. >> >> >> >> if it was working before then i would try to revert back to the time >> >> when it was working, then incrementally updating trying to pinpoint >> >> time frame when it stopped working. once you know the time frame look >> >> closely for commits that could have affected it. >> > >> > It's 7-STABLE so OLDUSB. I don't know if it's new behaviour, this is >> > first time I tried sending files over Bluetooth to the phone, instead = of >> > mailing them. >> > >> > PS: other way (phone -> PC) using obexapp -s works flawlessly. >> >> ok, could you please try the following patch. its cut-and-paste so you >> may need redo it manually (its simple enough). >> >> diff -u10 ng_ubt.c.orig ng_ubt.c >> --- ng_ubt.c.orig 2007-07-12 19:19:51.000000000 -0700 >> +++ ng_ubt.c 2009-02-23 13:39:32.000000000 -0800 >> @@ -1378,21 +1378,21 @@ >> >> m_copydata(m, 0, m->m_pkthdr.len, sc->sc_bulk_out_buffer); >> >> /* Initialize a bulk-out USB transfer and then schedule it */ >> usbd_setup_xfer( >> sc->sc_bulk_out_xfer, >> sc->sc_bulk_out_pipe, >> (usbd_private_handle) sc->sc_node, >> sc->sc_bulk_out_buffer, >> m->m_pkthdr.len, >> - USBD_NO_COPY, >> + USBD_FORCE_SHORT_XFER | USBD_NO_COPY, >> USBD_DEFAULT_TIMEOUT, /* XXX */ >> ubt_bulk_out_complete); >> >> NG_NODE_REF(sc->sc_node); >> >> status =3D usbd_transfer(sc->sc_bulk_out_xfer); >> if (status !=3D USBD_NORMAL_COMPLETION && status !=3D USBD_IN_PR= OGRESS) { >> NG_UBT_ERR( >> "%s: %s - Could not start bulk-out transfer. %s (%d)\n", >> __func__, device_get_nameunit(sc->sc_dev), >> usbd_errstr(status), > > No change, now I get bulk-out transfer error SHORT_XFER twice and hang. bummer :( i will try to reproduce it locally in a couple of days or so. this looks like something usb related, imo. thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Thu Feb 26 17:05:23 2009 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 31ABC1065673; Thu, 26 Feb 2009 17:05:23 +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 D6D4C8FC13; Thu, 26 Feb 2009 17:05:22 +0000 (UTC) (envelope-from mad@madpilot.net) Received: by megatron.madpilot.net (Postfix, from userid 1000) id 11B51130C56; Thu, 26 Feb 2009 18:05:21 +0100 (CET) Date: Thu, 26 Feb 2009 18:05:21 +0100 From: Guido Falsi To: freebsd-bluetooth@FreeBSD.ORG, freebsd-ports@FreeBSD.ORG, plunky@rya-online.net Message-ID: <20090226170521.GE75587@megatron.madpilot.net> References: <1234991336.235532.1915.nullmailer@galant.ukfsn.org> <200902191517.n1JFHjqI092809@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200902191517.n1JFHjqI092809@lurza.secnetix.de> X-Operating-System: FreeBSD 7.1-STABLE User-Agent: Mutt/1.5.19 (2009-01-05) Cc: Subject: Re: ports using sdp when mpeg4ip is installed 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: Thu, 26 Feb 2009 17:05:23 -0000 On Thu, Feb 19, 2009 at 04:17:45PM +0100, Oliver Fromme wrote: > Iain Hibbert wrote: > > Guido Falsi wrote: > > > I second this idea and it sure will solve the includes problem. > > > > > > It will not solve the problem with libsdp.so though. > > > > would it make sense to merge the sdp functions into libbluetooth? > > IIRC with BlueZ only one library is required.. > > Either that, or rename it to libbtsdp. I filed a followup to PR ports/131778 with a fix which works here. I'm hardcoding paths though, which I do not like too much. If someone has a better solution please let me know! Obviously if and when libsdp will be renamed or merged into libbluetooth I will patch the port to take advantage of this. Just let me know and I will try to fix is ASAP. -- Guido Falsi From owner-freebsd-bluetooth@FreeBSD.ORG Thu Feb 26 19:37:50 2009 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 89AB01065674 for ; Thu, 26 Feb 2009 19:37:50 +0000 (UTC) (envelope-from owner-freebsd-ports@freebsd.org) Received: from forwards1.yandex.ru (forwards1.yandex.ru [77.88.60.125]) by mx1.freebsd.org (Postfix) with ESMTP id 236488FC1C for ; Thu, 26 Feb 2009 19:37:50 +0000 (UTC) (envelope-from owner-freebsd-ports@freebsd.org) Received: from mxfront46.yandex.ru (mxfront46.yandex.ru [77.88.60.66]) by forwards1.yandex.ru (Yandex) with ESMTP id 3073DC8678; Thu, 26 Feb 2009 22:28:56 +0300 (MSK) Received: from mx2.freebsd.org ([69.147.83.53]:31441 "EHLO mx2.freebsd.org" smtp-auth: TLS-CIPHER: TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S5917126AbZBZRF7 for (+ 2 others); Thu, 26 Feb 2009 20:05:59 +0300 X-Yandex-TimeMark: 1235667959 X-Yandex-Spam: 2 X-Yandex-Front: mxfront46 Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id AA45A156928; Thu, 26 Feb 2009 17:05:36 +0000 (UTC) (envelope-from owner-freebsd-ports@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id B4C0D1065687; Thu, 26 Feb 2009 17:05:33 +0000 (UTC) (envelope-from owner-freebsd-ports@freebsd.org) Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31ABC1065673; Thu, 26 Feb 2009 17:05:23 +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 D6D4C8FC13; Thu, 26 Feb 2009 17:05:22 +0000 (UTC) (envelope-from mad@madpilot.net) Received: by megatron.madpilot.net (Postfix, from userid 1000) id 11B51130C56; Thu, 26 Feb 2009 18:05:21 +0100 (CET) Date: Thu, 26 Feb 2009 18:05:21 +0100 From: Guido Falsi To: freebsd-bluetooth@FreeBSD.ORG, freebsd-ports@FreeBSD.ORG, plunky@rya-online.net Message-ID: <20090226170521.GE75587@megatron.madpilot.net> References: <1234991336.235532.1915.nullmailer@galant.ukfsn.org> <200902191517.n1JFHjqI092809@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200902191517.n1JFHjqI092809@lurza.secnetix.de> X-Operating-System: FreeBSD 7.1-STABLE User-Agent: Mutt/1.5.19 (2009-01-05) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-ports@freebsd.org Errors-To: owner-freebsd-ports@freebsd.org Cc: Subject: Re: ports using sdp when mpeg4ip is installed X-BeenThere: freebsd-bluetooth@freebsd.org List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2009 19:37:50 -0000 On Thu, Feb 19, 2009 at 04:17:45PM +0100, Oliver Fromme wrote: > Iain Hibbert wrote: > > Guido Falsi wrote: > > > I second this idea and it sure will solve the includes problem. > > > > > > It will not solve the problem with libsdp.so though. > > > > would it make sense to merge the sdp functions into libbluetooth? > > IIRC with BlueZ only one library is required.. > > Either that, or rename it to libbtsdp. I filed a followup to PR ports/131778 with a fix which works here. I'm hardcoding paths though, which I do not like too much. If someone has a better solution please let me know! Obviously if and when libsdp will be renamed or merged into libbluetooth I will patch the port to take advantage of this. Just let me know and I will try to fix is ASAP. -- Guido Falsi _______________________________________________ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" From owner-freebsd-bluetooth@FreeBSD.ORG Thu Feb 26 19:38:19 2009 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 0E7F91065686 for ; Thu, 26 Feb 2009 19:38:19 +0000 (UTC) (envelope-from owner-freebsd-ports@freebsd.org) Received: from forwards1.yandex.ru (forwards1.yandex.ru [77.88.60.125]) by mx1.freebsd.org (Postfix) with ESMTP id 9B9838FC13 for ; Thu, 26 Feb 2009 19:38:18 +0000 (UTC) (envelope-from owner-freebsd-ports@freebsd.org) Received: from mxfront41.yandex.ru (mxfront41.yandex.ru [77.88.60.156]) by forwards1.yandex.ru (Yandex) with ESMTP id 9A23AE0320; Thu, 26 Feb 2009 22:26:19 +0300 (MSK) Received: from mx2.freebsd.org ([69.147.83.53]:17873 "EHLO mx2.freebsd.org" smtp-auth: TLS-CIPHER: TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S7916420AbZBZRF6 for (+ 2 others); Thu, 26 Feb 2009 20:05:58 +0300 X-Yandex-TimeMark: 1235667958 X-Yandex-Spam: 2 X-Yandex-Front: mxfront41 Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 954A9155B86; Thu, 26 Feb 2009 17:05:36 +0000 (UTC) (envelope-from owner-freebsd-ports@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id A5C40106567E; Thu, 26 Feb 2009 17:05:33 +0000 (UTC) (envelope-from owner-freebsd-ports@freebsd.org) Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31ABC1065673; Thu, 26 Feb 2009 17:05:23 +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 D6D4C8FC13; Thu, 26 Feb 2009 17:05:22 +0000 (UTC) (envelope-from mad@madpilot.net) Received: by megatron.madpilot.net (Postfix, from userid 1000) id 11B51130C56; Thu, 26 Feb 2009 18:05:21 +0100 (CET) Date: Thu, 26 Feb 2009 18:05:21 +0100 From: Guido Falsi To: freebsd-bluetooth@FreeBSD.ORG, freebsd-ports@FreeBSD.ORG, plunky@rya-online.net Message-ID: <20090226170521.GE75587@megatron.madpilot.net> References: <1234991336.235532.1915.nullmailer@galant.ukfsn.org> <200902191517.n1JFHjqI092809@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200902191517.n1JFHjqI092809@lurza.secnetix.de> X-Operating-System: FreeBSD 7.1-STABLE User-Agent: Mutt/1.5.19 (2009-01-05) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-ports@freebsd.org Errors-To: owner-freebsd-ports@freebsd.org Cc: Subject: Re: ports using sdp when mpeg4ip is installed X-BeenThere: freebsd-bluetooth@freebsd.org List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2009 19:38:20 -0000 On Thu, Feb 19, 2009 at 04:17:45PM +0100, Oliver Fromme wrote: > Iain Hibbert wrote: > > Guido Falsi wrote: > > > I second this idea and it sure will solve the includes problem. > > > > > > It will not solve the problem with libsdp.so though. > > > > would it make sense to merge the sdp functions into libbluetooth? > > IIRC with BlueZ only one library is required.. > > Either that, or rename it to libbtsdp. I filed a followup to PR ports/131778 with a fix which works here. I'm hardcoding paths though, which I do not like too much. If someone has a better solution please let me know! Obviously if and when libsdp will be renamed or merged into libbluetooth I will patch the port to take advantage of this. Just let me know and I will try to fix is ASAP. -- Guido Falsi _______________________________________________ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"