Re: Newbie needs help to start
Manuel Naranjo <[email protected]>
| Newsgroups | gmane.linux.bluez.user |
|---|---|
| Message-ID | <[email protected]> |
> 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/<hci address>/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. > 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. > 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. > 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 ;). > I attached it. > Where? I don't think this list can take attached files. ------------------------------------------------------------------------- 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/