LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   hcitool cannot connect (https://www.linuxquestions.org/questions/linux-software-2/hcitool-cannot-connect-4175452380/)

ted_chou12 03-02-2013 08:38 AM

hcitool cannot connect
 
Hi, I am trying to connect to android devices using bluetooth:
Code:

root:# lsusb | grep tooth
Bus 003 Device 003: ID 1131:1001 Integrated System Solution Corp. KY-BT100 Bluetooth Adapter
root:# hcitool scan
Scanning ...
        D0:37:61:90:98:58      A70S
root:# hcitool cc D0:37:61:90:98:58

but still no connections made:
Code:

root:# hcitool con
Connections:

I made sure my device was made visible thru the entire process.
Thanks,
Ted

PTrenholme 03-02-2013 01:13 PM

I haven't used hcitool, but a quick glance at the man page told me that the default --role option in the cc command is "master." Is it possible that the device you're connecting wants to be the master device? Did you try hcitool cc --role=s D0:37:61:90:98:58?

ted_chou12 03-02-2013 06:31 PM

hi, thanks for your reply. I tried your suggestion:
Code:


ted:$ sudo hcitool cc --role=s D0:37:61:90:98:58
server:/~
ted:$ sudo hcitool con
Connections:
server:/~
ted:$ sudo hcitool scan
Scanning ...
        D0:37:61:90:98:58      A70S

but still no connection was made.
Thanks,
Ted

ted_chou12 03-03-2013 09:30 AM

Hi, I am having pin problem:
Code:

root:# rfcomm bind hci0 50:56:63:A6:5E:06 11
root:# dd if=/dev/rfcomm0 of=/dev/audio
dd: opening `/dev/rfcomm0': Connection refused

My phone did ask me for a pin number, but I didn't enter a pin in the terminal, I tried 0000, 1234. Ive also tried creating a file in /etc/bluetooth/pin and entered a pin inside, but none worked.

ted_chou12 03-11-2013 09:02 PM

bump

ted_chou12 03-22-2013 07:56 AM

bump still no one knows?


All times are GMT -5. The time now is 10:16 AM.