LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problem configuring Bluetooth in Debian. (https://www.linuxquestions.org/questions/linux-software-2/problem-configuring-bluetooth-in-debian-99805/)

little_ball 10-03-2003 09:10 AM

Problem configuring Bluetooth in Debian.
 
Hello, i'm trying to configure Bluetooth in my Debian Box, and I still can't this is the fews step I have make and therefore still doesn't work. If someone could help me I would be very regard. Check what I have done:

First of all I configure the Kernel 2.4.21
Code:
CONFIG_BLUEZ=m
CONFIG_BLUEZ_L2CAP=m
CONFIG_BLUEZ_SCO=m
CONFIG_BLUEZ_RFCOMM=m
CONFIG_BLUEZ_RFCOMM_TTY=y
CONFIG_BLUEZ_BNEP=m
CONFIG_BLUEZ_HCIUSB=m

Adding to /etc/modules.conf
Code:
alias net-pf-31 bluez
alias bt-proto-0 l2cap
alias bt-proto-2 sco
alias bt-proto-3 rfcomm

then I install the Bluetooth
i also install too OpenObex
install Obexserver
I run Hcid and SdPd
save channel 10, like this:
Code:
sdptool add --channel=10 OPUSH

I modify the script /etc/bluetooth/pin to make the program run without requesting Password.
Code:
#!/bin/sh
echo "PIN:<my pass>"

then I install p3nfs
configure /etc/bluetooth/hcid.conf
I run the new configuration.
Code:
hcid -f /etc/bluetooth/hcid.conf

I probe that my computer reconigze my phone
Code:
hcitool scan

What i'm receiving this answer from my Linux box:

Scanning ...
00:60:57:4C:9F:EF ..aDiKcIoN..

Ok everything is going fine, I try to established connection whit my phone:
Code:
rfcomm bind /dev/rfcomm0 mac_direction_of_my_phone 4
My phone, request for a password, I write it, the same one I put in /etc/bluetooth/pin but it says it can't established a connection. So i tried to established connection of my phone to my computer, instead of my computer to the phone like before, it ask me for my password. I put it in, and it says Error and closed the connection. I have tried it whit the Obexserver but it doesn't work it never connect it just leave waiting. Does anyone knows whats wrong??

fedoro 08-20-2004 05:41 AM

bluetooth connection
 
Hi,
if you alredy have /dev/rfcomm0,
try this:
rfcomm bind 0 <your_telephone_mac_addres> 1

and then connect it

Bye
Davide


All times are GMT -5. The time now is 09:07 AM.