Skip to contentSkip to conversation

rfcomm0: connection refused

Bluez-users Virat Gohil 2 participants 6 messages Jul 6, 2004 – Jul 7, 2004 4 messages not in the archive Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi All,

I tried connecting to GPRS using my nokia 6820 and CSR usbdongle. I am able
to start hcid, sdpd.

I am also able to l2ping my device.

I can bind the device to rfcomm0, after patching the kernel

I was able to connect to The Internet once, but after I restarted I got the
following error while connecting using pppd

rfcomm0: connection refused!

I thought may be I messed up a setting here or there, so I re-installed
RedHat 9.0 and tried again, I was able to conenct once, after I restart I get the same problem. please help.

The following is the output of hcidump:

HCIDump - HCI packet analyzer ver 1.8
device: hci0 snap_len: 1028 filter: 0xffffffff < HCI Command: Create Connection(0x01|0x0005) plen 13

Quoted 2 lines

HCI Event: Command Status(0x0f) plen 4
HCI Event: Connect Complete(0x03) plen 11

< ACL data: handle 0x0029 flags 0x02 dlen 12 L2CAP(s): Connect req: psm 3 scid 0x0040
< HCI Command: Write Link Policy Settings(0x02|0x000d) plen 4

Quoted 5 lines

HCI Event: Number of Completed Packets(0x13) plen 5 HCI Event: Command Complete(0x0e) plen 6
HCI Event: Page Scan Repetition Mode Change(0x20) plen 7 HCI Event: Max Slots Change(0x1b) plen 3
ACL data: handle 0x0029 flags 0x02 dlen 16

L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0 < ACL data: handle 0x0029 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 4 MTU 1024

Quoted 1 line

ACL data: handle 0x0029 flags 0x02 dlen 16

L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 4 MTU 32772
< ACL data: handle 0x0029 flags 0x02 dlen 14 L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0

Quoted 3 lines

HCI Event: Number of Completed Packets(0x13) plen 5 HCI Event: Number of Completed Packets(0x13) plen 5 ACL data: handle 0x0029 flags 0x02 dlen 14

L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0 < ACL data: handle 0x0029 flags 0x02 dlen 8 L2CAP(d): cid 0x40 len 4 [psm 3]
RFCOMM(s): SABM: cr 1 dlci 0 pf 1 ilen 0 fcs 0x1c

Quoted 2 lines

HCI Event: Number of Completed Packets(0x13) plen 5 ACL data: handle 0x0029 flags 0x02 dlen 8

L2CAP(d): cid 0x40 len 4 [psm 3]
RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7
< ACL data: handle 0x0029 flags 0x02 dlen 18
L2CAP(d): cid 0x40 len 14 [psm 3]
RFCOMM(s): PN CMD: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8 dlci 2 frame_type 0 credit_flow 15 pri 0 ack_timer 0 frame_size 1019 max_retrans 0 credits 7

Quoted 2 lines

HCI Event: Number of Completed Packets(0x13) plen 5 ACL data: handle 0x0029 flags 0x02 dlen 18

L2CAP(d): cid 0x40 len 14 [psm 3]
RFCOMM(s): PN RSP: cr 0 dlci 0 pf 0 ilen 10 fcs 0xaa mcc_len 8 dlci 2 frame_type 0 credit_flow 14 pri 0 ack_timer 0 frame_size 324 max_retrans 0 credits 0
< ACL data: handle 0x0029 flags 0x02 dlen 8
L2CAP(d): cid 0x40 len 4 [psm 3]
RFCOMM(s): SABM: cr 1 dlci 2 pf 1 ilen 0 fcs 0x59

Quoted 2 lines

HCI Event: Number of Completed Packets(0x13) plen 5 HCI Event: Link Key Request(0x17) plen 6

< HCI Command: Link Key Request Reply(0x01|0x000b) plen 22

Quoted 2 lines

HCI Event: Command Complete(0x0e) plen 10 ACL data: handle 0x0029 flags 0x02 dlen 8

L2CAP(d): cid 0x40 len 4 [psm 3] RFCOMM(s): DM: cr 1 dlci 2 pf 1 ilen 0 fcs 0x73 < ACL data: handle 0x0029 flags 0x02 dlen 8 L2CAP(d): cid 0x40 len 4 [psm 3] RFCOMM(s): DISC: cr 1 dlci 0 pf 1 ilen 0 fcs 0xfd < ACL data: handle 0x0029 flags 0x02 dlen 12 L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040

Quoted 3 lines

HCI Event: Number of Completed Packets(0x13) plen 5 HCI Event: Number of Completed Packets(0x13) plen 5 ACL data: handle 0x0029 flags 0x02 dlen 8

L2CAP(d): cid 0x40 len 4 [psm 3]
RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7

Quoted 1 line

ACL data: handle 0x0029 flags 0x02 dlen 12

L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
< HCI Command: Disconnect(0x01|0x0006) plen 3

Quoted 2 lines

HCI Event: Command Status(0x0f) plen 4
HCI Event: Disconn Complete(0x05) plen 4

Thank You, and all the people who have contributed in the development of bluez!!

Virat

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#1 lore raw

Hi Virat,

Quoted 6 lines

I tried connecting to GPRS using my nokia 6820 and CSR usbdongle. I am able
to start hcid, sdpd.

I am also able to l2ping my device.

I can bind the device to rfcomm0, after patching the kernel

about what patch are you talking? What kernel do you use?

Quoted 4 lines

I was able to connect to The Internet once, but after I restarted I got the
following error while connecting using pppd

rfcomm0: connection refused!

This can be a PIN problem or you use the wrong RFCOMM channel number. Check the channel number of DUN with sdptool first.

Quoted 5 lines

I thought may be I messed up a setting here or there, so I re-installed
RedHat 9.0 and tried again, I was able to conenct once, after I restart I get the same problem. please help.

The following is the output of hcidump:

Fix up your mailer. This messed up hcidump was hard to read.

Regards

Marcel

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

A message that is not in the archive (sent off-list or not yet received): 001b01c46355$7a0c4150$c1010f0a@matrix

maintainer
#3 lore raw

Hi Virat,

Quoted 3 lines
Quoted 1 line

about what patch are you talking? What kernel do you use?

I am using 2.4.20-8 which comes with RedHat Linux 9.0

not really good. Better you use 2.4.26-mh1.

Quoted 5 lines
Quoted 2 lines

This can be a PIN problem or you use the wrong RFCOMM channel number. Check the channel number of DUN with sdptool first.

I dont think so, as I was able to connect once, and then it failed after restart and without me making any changes.

Check it with "sdptool browse <bdaddr>". What does "hciconfig -a" say?

Quoted 4 lines
Quoted 1 line

Fix up your mailer. This messed up hcidump was hard to read.

I am attaching a text file with the hcidump with this mail, hope you wont mind that.

Use the suffix *.txt so I can view it inline in my mailer.

Regards

Marcel

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

A message that is not in the archive (sent off-list or not yet received): 006d01c46417$0d9795c0$05000f0a@matrix

maintainer
#5 lore raw

Hi Virat,

Quoted 5 lines
Quoted 1 line

not really good. Better you use 2.4.26-mh1.

sorry, but I dont know much about kernel, my question is can I use 2.4.26-mh1 patch on 2.4.20 series kernel or shall I download the source for 2.4.26 series and then apply the patch that you suggested?

take a look at www.kernelnewbies.org for kernel FAQ etc. Anyhow the patch-2.4.26-mh1 is as the name indicates for Linux kernel 2.4.26. You have to choose another one, but these patches only apply to a vanilla kernel from www.kernel.org and not the RedHat specific kernels.

Quoted 10 lines
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

This can be a PIN problem or you use the wrong RFCOMM channel number. Check the channel number of DUN with sdptool first.

I dont think so, as I was able to connect once, and then it failed after restart and without me making any changes.

Check it with "sdptool browse <bdaddr>". What does "hciconfig -a" say?

I am attaching the output of "sdptool browse" and hciconfig -a and the hcidump with this mail. Thanks again

Maybe you have initiated a pairing between phone and PC, but the phone didn't save the link key. Make sure that you accept a new pairing on the phone and that you also store it. Check the list of paired devices.

Regards

Marcel

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

A message that is not in the archive (sent off-list or not yet received): 000601c46423$16b6d3d0$51020f0a@matrix

maintainer
#7 lore raw

Hi Virat,

Quoted 8 lines
Quoted 3 lines

Maybe you have initiated a pairing between phone and PC, but the phone didn't save the link key. Make sure that you accept a new pairing on the phone and that you also store it. Check the list of paired devices.

The phone is already paired with the PC once, and I have my pc's name as matrix on my phone's paired devices list as matrix although my Linux's hostname is localhost, could this be a problem, my windoz hostname is matrix.

the hostname doesn't matter, but if you dual-boot your machine then you always have to pair again.

Regards

Marcel

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

A message that is not in the archive (sent off-list or not yet received): 002a01c46426$adab3530$51020f0a@matrix

maintainer
#9 lore raw

Hi Virat,

Quoted 9 lines
Quoted 2 lines

the hostname doesn't matter, but if you dual-boot your machine then you always have to pair again.

it asked me to pair once, I did pair, then after restart whenever I try to connect my phone says invalid passcode and my pc says connection refused! my phone no longer asks me for pairing under Linux.

will play around a bit longer with the new kernel that you suggested, going thru patch howto and kernel docs currently. I am enjoying this.

may the new kernel helps, but I think it is a phone related problem.

Regards

Marcel

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users