[maemo-developers] [maemo-developers] bluetooth settings in debian
From: Nils Faerber nils.faerber at kernelconcepts.deDate: Fri Jan 6 16:42:46 EET 2006
- Previous message: [maemo-developers] bluetooth settings in debian
- Next message: [maemo-developers] Is it possible that migrate J2me to Nokia 770?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 rh schrieb: > Hi all, Hi! > I have Linux Debian 2.6, bluetooth & Bluez already installed. > But I don't know how to change setting for bluetooth (like friendly name > & services). > How / Where can I find those settings ? In real Debian you find them in /etc/bluetooth/ > I want to make program like rfcomm server that can receive connection > up to 7 client and then sending messages between them. > Does bluez support this ? In general yes - but it also a question of the Bluetooth module in use if it supports full seven simultanous connections; some don't. > Maybe anyone has documentation or sample program for this ? First of all I would rethink the idea of using RFCOMM for this. RFCOMM is intended for serial port "simulation" over Bluetooth. Do you really want to have serial port? With baudrate and handshake settings? I suppose not. What you want is a (mostly) reliable streaming connection, right? Then you can use a direct L2CAP connection for that. BlueZ offers this through a quite simple socket interface. Libbluetooth will also help you with that. I have once written such a system - but it was contract work and not open source, sorry. But I can confirm that it will work this way and with up to seven clients ;) But since you are posting on the Maemo list I guess you want to do this on the 770, right? Want to write a chat program or such? Nice thing! But beware that some things in the 770 are different from Debian. For example what you call "friendly name" is the Bluetooth module name which can be set via "hciconfig hci0 name <name>". This is usually done from hcid using the parameter from /etc/bluetooth/hcid.conf. In the 770's config it sais "%h" which would expand to the hostname - on my device this would be "Nokia770-51". But when you look at System Settings -> Device then the name of your 770 is the one you entered at installation and this is the name the Bluetooth device will be set to when connections are opened. This is probably done by the connection manager of the 770, I am not sure here. You can find at least some Bluetooth related Maemo API documentation on Maemo.org: http://www.maemo.org/platform/docs/osso-gwconnect.html If you write some app, would you share it with us? > Thanks > Ronny Cheers nils faerber - -- kernel concepts Tel: +49-271-771091-12 Dreisbachstr. 24 Fax: +49-271-771091-19 D-57250 Netphen Mob: +49-176-21024535 - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDvoHmJXeIURG1qHgRAljjAJ40Wn+smlwnjA0TZHZ2UQTsC+CT/wCgiiAL Fc78FEIdOJChUc8+Pe5J2JE= =mugz -----END PGP SIGNATURE-----
- Previous message: [maemo-developers] bluetooth settings in debian
- Next message: [maemo-developers] Is it possible that migrate J2me to Nokia 770?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]