Return-Path: From: Henryk =?ISO-8859-15?Q?Pl=F6tz?= To: bluez-devel@lists.sourceforge.net Subject: Re: [Bluez-devel] Regarding a2recv Message-Id: <20050509025805.331c34c7.henryk@ploetzli.ch> In-Reply-To: <1115596897.8949.79.camel@pegasus> References: <20050506060525.32b209ca.henryk@ploetzli.ch> <20050508125039.1494.qmail@web8305.mail.in.yahoo.com> <20050509005413.3787d2d7.henryk@ploetzli.ch> <1115596897.8949.79.camel@pegasus> Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Mon__9_May_2005_02_58_05_+0200_1E=Z_rdBbbB_BkEd" Sender: bluez-devel-admin@lists.sourceforge.net Errors-To: bluez-devel-admin@lists.sourceforge.net Reply-To: bluez-devel@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ development List-Post: List-Help: List-Subscribe: , List-Archive: Date: Mon, 9 May 2005 02:58:05 +0200 --Signature=_Mon__9_May_2005_02_58_05_+0200_1E=Z_rdBbbB_BkEd Content-Type: text/plain; charset=ISO-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Moin, Am Mon, 09 May 2005 02:01:36 +0200 schrieb Marcel Holtmann: > I suspect that it is waiting for a role switch to happen. Either that isn't it or I'm doing it wrong. There should be two principal ways to archieve this, right?=20 a) hciconfig hci0 lm master If I do this I don't get a complete connection at all. hcidump shows > HCI Event: Connect Request (0x04) plen 10 < HCI Command: Accept Connection Request (0x01|0x0009) plen 7 bdaddr 00:08:F4:35:05:3C role 0x00 Role: Master > HCI Event: Command Status (0x0f) plen 4 > HCI Event: Role Change (0x12) plen 8 > HCI Event: Connect Complete (0x03) plen 11 but nothing shows up on a2recv.=20 b) (I got this from the bthid code) getsockopt(fd, SOL_L2CAP, L2CAP_LM, &opt, &len) opt |=3D L2CAP_LM_MASTER; setsockopt(fd, SOL_L2CAP, L2CAP_LM, &opt, sizeof(opt)) I'm not sure on which fd I should apply this. If I do it on the streamfd right after it has been established the behaviour is just as normal (e.g. 6 second hang, then disconnect). If I do it with the listening socket right in the beginning I get the same as with hciconfig above. (I swear I got a "Role change not allowed" message from kdebluetoothd somewhere in between, but I can't reproduce that.) --=20 Henryk Pl=F6tz Gr=FC=DFe aus Berlin ~~~~~~~ Un-CDs, nein danke! http://www.heise.de/ct/cd-register/ ~~~~~~~ ~ Help Microsoft fight software piracy: Give Linux to a friend today! ~ --Signature=_Mon__9_May_2005_02_58_05_+0200_1E=Z_rdBbbB_BkEd Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFCfrWhIjWgKE0OA2gRAvU6AKClL7VdO7psRrTnXHnOyPf76vucMQCgzo6H dtvW9wyiMvDu0S/N++sxo60= =mNsM -----END PGP SIGNATURE----- --Signature=_Mon__9_May_2005_02_58_05_+0200_1E=Z_rdBbbB_BkEd-- ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel