Skip to contentSkip to conversation

rfcomm connection refused / Host is down (Again)

Bluez-users ALBERT RIBAS GUASCH 2 participants 2 messages Mar 30, 2004 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi!

I'm using the BlueZ stack in kernel 2.4.24, and I've got an usb dongle and I try to connect to an RS232-bluetooth attached to a robot's serial port.

So, I do hciconfig and I get
hci0:
Type: USB
BD Address: 00:0A:3A:50:20:15 ACL MTU: 192:8 SCO
MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:8280 acl:233 sco:0 events:233 errors:0
TX bytes:3096 acl:93 sco:0 commands:45 errors:0

When I do an hcitool -i hci0 inq, I can find the RS232 adapter, but on doing

rfcomm -i hci0 connect /dev/rfcomm0 00:c0:1B:05:C8:2A 1

I get a message with:
Can't connect RFCOMM socket: Connection refused
or either:
Can't connect RFCOMM socket: Host is down

Tom Chiverton asked if were the devices already paired.What do I need to do to pair the devices?

Oh! one more thing, if I do

rfcomm -i hci0 bind /dev/rfcomm0 00:c0:1B:05:C8:2A 1

The two devices get binded, but I'm still not capable to connect them!!!!

Can you help me??

Tank you!!!!!!

Albert

Thank you

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#1 lore raw

Hi Albert,

do you really think that posting the same message again after 9 hours makes any difference. Actually I am going to ignore such postings.

Quoted 12 lines

I'm using the BlueZ stack in kernel 2.4.24, and I've got an usb dongle and I try to connect to an RS232-bluetooth attached to a robot's serial port.

So, I do hciconfig and I get
hci0:
Type: USB
BD Address: 00:0A:3A:50:20:15 ACL MTU: 192:8 SCO
MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:8280 acl:233 sco:0 events:233 errors:0
TX bytes:3096 acl:93 sco:0 commands:45 errors:0

Quoted 8 lines

When I do an hcitool -i hci0 inq, I can find the RS232 adapter, but on doing

rfcomm -i hci0 connect /dev/rfcomm0 00:c0:1B:05:C8:2A 1

I get a message with:
Can't connect RFCOMM socket: Connection refused
or either:
Can't connect RFCOMM socket: Host is down

the question is if hcid is running and the PIN helper is working. Run "hcidump -x" (as root) and show us what happens on connect.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users