Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Freevo Wiki" for change 
notification.

The following page has been changed by 194.23.24.130:
http://freevo.sourceforge.net/cgi-bin/moin.cgi/DocumentationPage

------------------------------------------------------------------------------
@@ -336,19 +336,45 @@
 
 === Bluetooth Remote Control deamon ===
 
-This is a small deamon that let's you controll Freevo with your cellphone. It's 
currently placed under contrib/, and if you want to use it you might want to change 
the source a bit, depending on what kind of phone you have. If you got a Ericsson T68 
you should be happy with the current settings. (It's a bit akward but it works, the 
phone it was tested with had some semi-operational buttons; they only worked from time 
to time.)
+This is a small deamon that let's you controll Freevo with your cellphone. 
+You start it with "freevo bluetooth". It's placed somewhere under helpers, I think it 
is in src/helper/bluetooth.
+
+If you got a Ericsson T68 you should be happy with the current settings. (It's a bit 
akward but it works, the phone it was tested with had some semi-operational buttons; 
they only worked from time to time.)
+
+It's fairly easy to change the button bindings, but beware that some buttons DO NOT 
WORK, i.e joystick up on the SE T68.
+Just use a texteditor to edit bluetooth.py. If you got another phone, a Nokia or 
something else, you might want to check out what the buttons are called. Get a program 
called minicom and start it with "minicom -s", enter "Serial port setup" and set it to 
your bluetooth device. (/dev/rfcomm1, /dev/bluetooth/rfcomm1, /dev/bluetooth/rfcomm/1) 
As you already guessed it changes from sy stem to system and the ending number, 1, is 
set by rfcomm. More about this later.
+
+Example:
+kp2direction = {"u":"VOL+", "d":"VOL-"} If you press the button called "u" (UP, the 
volume slider on the side of a T68) the remote will send "VOL+" to the network remote. 
This isn't a thing you might want to change, but I hope you understand how it works.
 
 Requirements:
-   * A Bluetooth phone, a Bluetooth dongle. The phone should be able to receive AT 
(Hayes) commands, and it must have a certain command that sends all keypad events to 
the computer.
+   * A Bluetooth phone, a Bluetooth dongle. The phone should be able to receive AT 
(Hayes) commands, and it must have a certain command that sends all keypad events to 
the computer. (It's "AT+CMER=3,2,0,0,0", if you send it to your phone with minicom it 
should say "OK" back.)
    * The Bluetooth Subsystem (kernel) 
    * Bluez-utils (and it's deps, http://bluez.sf.net)
 
-When you get all that, and are sure it's working you should set a serial port on your 
phone to "/dev/bluetooth/rfcomm/1" with rfcomm. There is some fine guides to this, so 
I won't explain it here. It was tricky with a patched kernel so I recommend the 2.4.21 
kernel, which has the bluetooth subsytem by default.
 
-Make sure you enable support for the network control in 
local_conf.py("ENABLE_NETWORK_REMOTE = 1"), otherwise Freevo won't receive any 
commands and you should get an error from the deamon. The port is changed to 35000 in 
the deamon which isn't the default port for the network remote function.
+The bluetooth subsystem was tricky with a patched kernel so I recommend the 2.4.21 
kernel, which has the bluetooth subsytem by default. When you are sure you got that 
working (test by running "dmesg | less" and look for bluetooth thingys) you may want 
to create a bluetooth device in /dev/ if bluetooth doesn't make one for you. Google 
it, I don't know how you do that (makedev  43 115 or similiar, but that isn't the 
right numbers though). 
+When you got your device set up you run some bluez command to look for your phone. 
+"hciconfig hci0 up" Set your bluetooth interface.
+"hcitool scan" Look for your bluetooth phone. On my T68 you must set the phone to 
"Searchable", item number one in the bluetooth menu. (Then the phone says "You may 
find me for 3 minutes" or something like that)
+hcitool then reports the bluetooth adress for your phone. Remember it. You will use 
it later on.
+
+Now you need to find out on which port the serial interface is on. (On the phone that 
is.) On my phone it's port number 6.
+"hcitool info bluetooth adress" -> hcitool info and the adress that hcitool scan gave 
you. Look for "Serial" somewhere in there. (And the port/channel that represents it)
+
+then you bind that port/channel on the phone to a device in /dev/.
+"rfcomm bind 1 bluetooth adress channel" -> rfcomm bind 1 00:11:22:33:44:55:66 6. 
THAT IS AN EXAMPLE ONLY! :)
+Check if it's working with "rfcomm".
+
+Make sure you enable support for the network control in 
local_conf.py("ENABLE_NETWORK_REMOTE = 1"), otherwise Freevo won't receive any 
commands and you should get an error from the deamon.
+
+IMPORTANT!
+The port is changed to 35000 in the deamon which isn't the default port for the 
network remote function.
+
+
 I made an init-script to start the bluetooth interface (hciconfig) and rfcomm. This 
script also starts the deamon, which I also recommend you to do.
 
-The deamon seem to disconnect after a while, solutions to that is welcome.
+The deamon seem to disconnect after a while, solutions to that is welcome. (bluetooth 
disconnects after 20 minutes of inactivity.)
 
 If you need any help you can find my email adress in the deamon source.
 


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Freevo-wikilog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-wikilog

Reply via email to