Return-Path: To: bluez-users@lists.sourceforge.net Message-ID: In-Reply-To: <4795F9EC.20509@aircable.net> From: =?ISO-8859-1?Q?Fr=E9d=E9ric?= MIME-Version: 1.0 Date: Tue, 22 Jan 2008 15:40:16 +0100 (CET) Subject: Re: [Bluez-users] Newbie needs help to start Reply-To: BlueZ users List-Id: BlueZ users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Sender: bluez-users-bounces@lists.sourceforge.net Errors-To: bluez-users-bounces@lists.sourceforge.net Le 22/1/2008, "Manuel Naranjo" a =E9crit: >> Ok, I got it. But how and where do I generate link keys? >> >You don't after the PIN transaction has completed successfully the >stacks handle the link generation. Links are stored under >/var/lib/bluetooth//linkkeys take into account that if you >switch from windows into linux, or if you plug your bluetooth dongle to >another pc, you will need to remove the linkkey from the file or it will >never work. It's like when RSA keys changes for a server. That's a precious information! I found that I had a: /var/lib/bluetooth/00:11:E0:02:FA:85/ directory. 00:11:E0:02:FA:85 is my BT adapter address. I deleted this dir, and tried again: it now works :o) Don't know what happened first time I tried to connect. I should have done something wrong, and lock the entire process... >> So, after I connect the BT device to the rfcomm channel, I can read/write >> to it using the /dev/rfcomm entry, like if I'm using a /dev/ttySxx ? >> >Exactly. Good :o) I tried, and it seems to wok. At least, the /dev/rfcomm0 entry is created, and I can open it from my python software. I can't communicate yet, but I think there is something I don't understand about the Serial3. I will post another question on the AIRcable ML... >> If I understand correctly, rfcomm is not supported anymore? If it is the >> old way, what is the new way? >> >rfcomm as a tool isn't supported any more, rfcomm as technology is and >is the base for most of the bluetooth services. The new way is using the >dbus serial service. Which will also generate the rfcomm node, in a more >simple way, but if your distro is not well configured, it can be a >headhacke to get it to work. Hope I will find why it does not work as it should under debian. >> I certainly don't want to deep inside d-bus, but the fact is that python >> examples on bluez wiki use d-bus module :o/ >> >You WANT to get deep into bluez dbus api, not into the old hci lib api ;). Ok. If examples could work, I guess it could be easy to understand. >> I attached it. >> >Where? I don't think this list can take attached files. I forgot to attached it, anyway! As it now works, I don't need to send it. Thanks you very much, Manuel! -- Fr=E9d=E9ric ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users