Skip to contentSkip to conversation

rfcomm

Bluez-users Swarup Mohalik 2 participants 6 messages Jul 23, 2004 – Jul 27, 2004 2 messages not in the archive Bluetooth drivers

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

I have bluez with bluez-utils-2.7 on two RH 8.0 systems (lx1 and lx2).

When I start rctest -r on lx1 without starting rctest -s on lx2, lx2 hangs and I have to switch it off and on to restart. This happens EVERY TIME I try this.

This does not happen when I run l2test in any way. Does it prove that there is a problem with RFCOMM? I have not seen this problem in the mailing list. If I have missed it, please inform.

I have not tried the rfcomm transfer the other way because I share lx1 with others.

Thanks in anticipation,
Swarup

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#2 lore raw

Hi Swarup,

Quoted 1 line

I have bluez with bluez-utils-2.7 on two RH 8.0 systems (lx1 and lx2).

please upgrade to bluez-utils-2.8 first. What kernel do you use?

Quoted 3 lines

When I start rctest -r on lx1 without starting rctest -s on lx2, lx2 hangs and I have to switch it off and on to restart. This happens EVERY TIME I try this.

I don't get the point how lx2 can hang when you listen at lx1. Are these two different machines or two dongles connected to the same machine?

Quoted 3 lines

This does not happen when I run l2test in any way. Does it prove that there is a problem with RFCOMM? I have not seen this problem in the mailing list. If I have missed it, please inform.

Actually I don't know. Show us "hcidump -x" from both machines.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#3 lore raw

Hello Marcel,
Our mails have crossed.

The machines are different and have two usb dongles from Bluegear twin pack from Amazing Tech.

I will get the hcidump data and get back.

Thx,
Swarup

Quoted 39 lines · Marcel Holtmann

Hi Swarup,

Quoted 3 lines

I have bluez with bluez-utils-2.7 on two RH 8.0 systems (lx1 and lx2).

please upgrade to bluez-utils-2.8 first. What kernel do you use?

Quoted 5 lines

When I start rctest -r on lx1 without starting rctest -s on lx2, lx2 hangs and I have to switch it off and on to restart. This happens EVERY TIME I try this.

I don't get the point how lx2 can hang when you listen at lx1. Are these two different machines or two dongles connected to the same machine?

Quoted 5 lines

This does not happen when I run l2test in any way. Does it prove that there is a problem with RFCOMM? I have not seen this problem in the mailing list. If I have missed it, please inform.

Actually I don't know. Show us "hcidump -x" from both machines.

Regards

Marcel

#4 lore raw
In reply to Marcel Holtmann

I have upgraded the bluez-modules. But the problem persists:
To recap,
***********************************************************
Problem:
lx1 runs rctest -s <bt_addr of lx2>
lx2 freezes

No problem with l2test.
***********************************************************

The current configuration of lx2 is :

usb dongles twin pack from amazing tech

==================================
Linux RH 8.0 running 2.6.0. kernel
# Bluetooth support
#
CONFIG_BT=m
CONFIG_BT_L2CAP=m
CONFIG_BT_SCO=m
CONFIG_BT_RFCOMM=m
CONFIG_BT_RFCOMM_TTY=y
CONFIG_BT_BNEP=m
CONFIG_BT_BNEP_MC_FILTER=y
CONFIG_BT_BNEP_PROTO_FILTER=y

#
# Bluetooth device drivers
#
CONFIG_BT_HCIUSB=m
CONFIG_BT_USB_SCO=y
# CONFIG_BT_USB_ZERO_PACKET is not set
# CONFIG_BT_HCIUART is not set
# CONFIG_BT_HCIVHCI is not set

[root@ebnt9638 bluetooth]# lsmod

Module                  Size  Used by
hci_usb                17152  2
rfcomm                 45720  0
l2cap                  31232  5 rfcomm
bluetooth              56420  7 hci_usb,rfcomm,l2cap
uhci_hcd               36232  0
ehci_hcd               26880  0

I have the following as well:
bluez-libs-2.8
bluez-utils-2.8
=============================================
hcidump (as root) data:
root@ebnt9638 swarup]# hcidump
HCIDump - HCI packet analyzer ver 1.9
device: hci0 snap_len: 1028 filter: 0xffffffff

Quoted 1 line

HCI Event: Connect Request (0x04) plen 10

< HCI Command: Accept Connection Request (0x01|0x0009) plen 7

Quoted 2 lines

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

< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4

Quoted 2 lines

HCI Event: Max Slots Change (0x1b) plen 3
HCI Event: Command Complete (0x0e) plen 6

< HCI Command: Change Connection Packet Type (0x01|0x000f) plen 4

Quoted 2 lines

HCI Event: Command Status (0x0f) plen 4
ACL data: handle 0x0028 flags 0x02 dlen 12

L2CAP(s): Connect req: psm 3 scid 0x0040

Quoted 1 line

HCI Event: Connection Packet Type Changed (0x1d) plen 5

< ACL data: handle 0x0028 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0

Quoted 1 line

ACL data: handle 0x0028 flags 0x02 dlen 16

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

Quoted 4 lines

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

L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0

Quoted 1 line

ACL data: handle 0x0028 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

=============================================
At this point the machine freezes !!

Swarup

Quoted 51 lines · Marcel Holtmann

Hi Swarup,

Quoted 3 lines

I have bluez with bluez-utils-2.7 on two RH 8.0 systems (lx1 and lx2).

please upgrade to bluez-utils-2.8 first. What kernel do you use?

Quoted 5 lines

When I start rctest -r on lx1 without starting rctest -s on lx2, lx2 hangs and I have to switch it off and on to restart. This happens EVERY TIME I try this.

I don't get the point how lx2 can hang when you listen at lx1. Are these two different machines or two dongles connected to the same machine?

Quoted 5 lines

This does not happen when I run l2test in any way. Does it prove that there is a problem with RFCOMM? I have not seen this problem in the mailing list. If I have missed it, please inform.

Actually I don't know. Show us "hcidump -x" from both machines.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#5 lore raw

Hi Swarup,

Quoted 10 lines

I have upgraded the bluez-modules. But the problem persists:
To recap,
***********************************************************
Problem:
lx1 runs rctest -s <bt_addr of lx2>
lx2 freezes

No problem with l2test.
***********************************************************

Quoted 6 lines

The current configuration of lx2 is :

usb dongles twin pack from amazing tech

==================================
Linux RH 8.0 running 2.6.0. kernel

you should have said this earlier. The 2.6.0 has a module reference counting bug. Update to 2.6.8-rc2 and everything should work fine.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
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): [email protected]

maintainer
#7 lore raw

Hi Swarup,

Quoted 4 lines

Upgrading to 2.6.8-rc2 helped. Now there is no freezing.

By the way, is this the referece counting bug you and Eugene Crosser discussed some time ago?

point me to the thread in the mailing list archive and I can tell you, but we had two bad reference counting problem and I can't remember if it this one was mentioned by Eugene Crosser or not.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users