public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] Hci Reset Problem
@ 2006-07-27 16:06 Lan Zhang
  2006-07-28  1:56 ` Marcel Holtmann
  0 siblings, 1 reply; 10+ messages in thread
From: Lan Zhang @ 2006-07-27 16:06 UTC (permalink / raw)
  To: bluez-users

Hi, 

I try to setup openobex on my linux, but each time I send out obex
connect request, instead of getting a connect response, the device will
be reset, HCIDUMP is like below:

...
...
...
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 41 flags 0x02 dlen 8
    L2CAP(d): cid 0x0040 len 4 [psm 3]
      RFCOMM(s): UA: cr 1 dlci 6 pf 1 ilen 0 fcs 0x18
< ACL data: handle 41 flags 0x02 dlen 12
    L2CAP(d): cid 0x0040 len 8 [psm 3]
      RFCOMM(s): MSC CMD: cr 1 dlci 0 pf 0 ilen 4 fcs 0x70 mcc_len 2
      dlci 6 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 1 b2 0 b3 0 len 0
> ACL data: handle 41 flags 0x02 dlen 12
    L2CAP(d): cid 0x0040 len 8 [psm 3]
      RFCOMM(s): MSC CMD: cr 0 dlci 0 pf 0 ilen 4 fcs 0xaa mcc_len 2
      dlci 6 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 1 b2 0 b3 0 len 0
< ACL data: handle 41 flags 0x02 dlen 12
    L2CAP(d): cid 0x0040 len 8 [psm 3]
      RFCOMM(s): MSC RSP: cr 1 dlci 0 pf 0 ilen 4 fcs 0x70 mcc_len 2
      dlci 6 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 1 b2 0 b3 0 len 0
> HCI Event: Number of Completed Packets (0x13) plen 5
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 41 flags 0x02 dlen 12
    L2CAP(d): cid 0x0040 len 8 [psm 3]
      RFCOMM(s): MSC RSP: cr 0 dlci 0 pf 0 ilen 4 fcs 0xaa mcc_len 2
      dlci 6 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 1 b2 0 b3 0 len 0
< ACL data: handle 41 flags 0x02 dlen 9
    L2CAP(d): cid 0x0040 len 5 [psm 3]
      RFCOMM(d): UIH: cr 1 dlci 6 pf 1 ilen 0 fcs 0x93 credits 33
< ACL data: handle 41 flags 0x02 dlen 34
    L2CAP(d): cid 0x0040 len 30 [psm 3]
      RFCOMM(d): UIH: cr 1 dlci 6 pf 0 ilen 26 fcs 0x8f
        OBEX: Connect cmd(f): len 26 version 1.1 flags 0 mtu 1024
        Target (0x46) = Sequence length 16
< HCI Command: Reset (0x03|0x0003) plen 0

The system I have is Linux 2.6.9-34, bluez-lib-2.25 and bluez-util-2.25,
bluez-hcidump-1.30, and openobex-1.0.1 version. I don't know who send
this reset, and why. 

Thanks. 

Lan


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: [Bluez-users] Hci Reset Problem
@ 2006-07-28 14:21 Lan Zhang
  0 siblings, 0 replies; 10+ messages in thread
From: Lan Zhang @ 2006-07-28 14:21 UTC (permalink / raw)
  To: bluez-users

Hi, Marcel: 

Here is the hciconfig result. 

hci0:	Type: USB
	BD Address: 00:0F:3D:49:05:13 ACL MTU: 192:8  SCO MTU: 64:8
	UP RUNNING PSCAN ISCAN 
	RX bytes:179 acl:0 sco:0 events:26 errors:0
	TX bytes:846 acl:0 sco:0 commands:25 errors:0
	Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00
	Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
	Link policy: RSWITCH HOLD SNIFF PARK 
	Link mode: SLAVE ACCEPT 
	Name: 'BlueZ (0)'
	Class: 0x3e0100
	Service Classes: Networking, Rendering, Capturing, Object
Transfer, Audio
	Device Class: Computer, Uncategorized
	HCI Ver: 1.1 (0x1) HCI Rev: 0x20d LMP Ver: 1.1 (0x1) LMP Subver:
0x20d
	Manufacturer: Cambridge Silicon Radio (10)


Andy, below is the syslog, I believe the USB disconnect happens after
obexopen. Thanks. 

Jul 27 11:43:14 wsp171944wss kernel: Bluetooth: Core ver 2.6
Jul 27 11:43:14 wsp171944wss kernel: NET: Registered protocol family 31
Jul 27 11:43:14 wsp171944wss kernel: Bluetooth: HCI device and
connection manager initialized
Jul 27 11:43:14 wsp171944wss kernel: Bluetooth: HCI socket layer
initialized
Jul 27 11:43:14 wsp171944wss kernel: Bluetooth: HCI USB driver ver 2.7
Jul 27 11:43:14 wsp171944wss kernel: usbcore: registered new driver
hci_usb
Jul 27 11:43:21 wsp171944wss hcid[5812]: Bluetooth HCI daemon
Jul 27 11:43:21 wsp171944wss bluetooth: hcid startup succeeded
Jul 27 11:43:21 wsp171944wss bluetooth: sdpd startup succeeded
Jul 27 11:43:21 wsp171944wss kernel: Bluetooth: L2CAP ver 2.4
Jul 27 11:43:21 wsp171944wss kernel: Bluetooth: L2CAP socket layer
initialized
Jul 27 11:43:21 wsp171944wss sdpd[5816]: Bluetooth SDP daemon 
Jul 27 11:43:21 wsp171944wss hcid[5812]: HCI dev 0 up
Jul 27 11:43:21 wsp171944wss hcid[5812]: Starting security manager 0
Jul 27 11:43:22 wsp171944wss kernel: Bluetooth: RFCOMM ver 1.3
Jul 27 11:43:22 wsp171944wss kernel: Bluetooth: RFCOMM socket layer
initialized
Jul 27 11:43:22 wsp171944wss kernel: Bluetooth: RFCOMM TTY layer
initialized
Jul 27 11:43:46 wsp171944wss su(pam_unix)[5853]: session opened for user
root by bryant(uid=500)
Jul 27 11:45:58 wsp171944wss su(pam_unix)[3235]: session closed for user
root
Jul 27 11:47:03 wsp171944wss kernel: usb 1-1: USB disconnect, address 2
Jul 27 11:47:06 wsp171944wss hcid[5812]: HCI dev 0 down
Jul 27 11:47:06 wsp171944wss hcid[5812]: Stoping security manager 0
Jul 27 11:47:06 wsp171944wss hcid[5812]: HCI dev 0 unregistered
Jul 27 11:47:07 wsp171944wss kernel: usb 1-1: new full speed USB device
using address 3
Jul 27 11:47:07 wsp171944wss hcid[5812]: HCI dev 0 registered
Jul 27 11:47:08 wsp171944wss hcid[5812]: HCI dev 0 up
Jul 27 11:47:08 wsp171944wss hcid[5812]: Starting security manager 0
Jul 27 12:01:01 wsp171944wss crond(pam_unix)[6148]: session opened for
user root by (uid=0)
Jul 27 12:01:01 wsp171944wss crond(pam_unix)[6148]: session closed for
user root
Jul 27 13:01:01 wsp171944wss crond(pam_unix)[6152]: session opened for
user root by (uid=0)
Jul 27 13:01:01 wsp171944wss crond(pam_unix)[6152]: session closed for
user root
Jul 27 13:27:04 wsp171944wss kernel: usb 1-1: USB disconnect, address 3
Jul 27 13:27:06 wsp171944wss hcid[5812]: HCI dev 0 down
Jul 27 13:27:06 wsp171944wss hcid[5812]: Stoping security manager 0
Jul 27 13:27:06 wsp171944wss hcid[5812]: HCI dev 0 unregistered
Jul 27 13:27:07 wsp171944wss kernel: usb 1-1: new full speed USB device
using address 4
Jul 27 13:27:07 wsp171944wss hcid[5812]: HCI dev 0 registered
Jul 27 13:27:08 wsp171944wss hcid[5812]: HCI dev 0 up
Jul 27 13:27:08 wsp171944wss hcid[5812]: Starting security manager 0
Jul 27 14:01:01 wsp171944wss crond(pam_unix)[7865]: session opened for
user root by (uid=0)
Jul 27 14:01:01 wsp171944wss crond(pam_unix)[7865]: session closed for
user root
Jul 27 14:42:30 wsp171944wss kernel: hci_acldata_packet: hci0 ACL packet
for unknown connection handle 2
Jul 27 14:42:30 wsp171944wss kernel: hci_acldata_packet: hci0 ACL packet
for unknown connection handle 3
Jul 27 14:42:30 wsp171944wss kernel: hci_acldata_packet: hci0 ACL packet
for unknown connection handle 0
Jul 27 14:42:30 wsp171944wss kernel: usb 1-1: USB disconnect, address 4
Jul 27 14:42:34 wsp171944wss hcid[5812]: HCI dev 0 down
Jul 27 14:42:34 wsp171944wss hcid[5812]: Stoping security manager 0
Jul 27 14:42:34 wsp171944wss hcid[5812]: HCI dev 0 unregistered
Jul 27 14:42:35 wsp171944wss kernel: usb 1-1: new full speed USB device
using address 5
Jul 27 14:42:35 wsp171944wss hcid[5812]: HCI dev 0 registered
Jul 27 14:42:37 wsp171944wss hcid[5812]: HCI dev 0 up
Jul 27 14:42:37 wsp171944wss hcid[5812]: Starting security manager 0
Jul 27 14:42:54 wsp171944wss hcid[14483]: Bluetooth HCI daemon
Jul 27 14:42:54 wsp171944wss hcid[14483]: Starting security manager 0
Jul 27 14:42:54 wsp171944wss bluetooth: hcid startup succeeded
Jul 27 14:42:54 wsp171944wss sdpd[14489]: init_server: binding L2CAP
socket: Address already in use 
Jul 27 14:42:54 wsp171944wss sdpd[14489]: main: Server initialization
failed 
Jul 27 14:42:54 wsp171944wss bluetooth: sdpd startup succeeded
Jul 27 14:45:22 wsp171944wss kernel: usb 1-1: USB disconnect, address 5
Jul 27 14:45:25 wsp171944wss hcid[14483]: HCI dev 0 down
Jul 27 14:45:25 wsp171944wss hcid[14483]: Stoping security manager 0
Jul 27 14:45:25 wsp171944wss hcid[5812]: HCI dev 0 down
Jul 27 14:45:25 wsp171944wss hcid[5812]: Stoping security manager 0
Jul 27 14:45:25 wsp171944wss hcid[14483]: HCI dev 0 unregistered
Jul 27 14:45:25 wsp171944wss hcid[5812]: HCI dev 0 unregistered
Jul 27 14:45:26 wsp171944wss kernel: usb 1-1: new full speed USB device
using address 6
Jul 27 14:45:26 wsp171944wss hcid[14483]: HCI dev 0 registered
Jul 27 14:45:26 wsp171944wss hcid[5812]: HCI dev 0 registered
Jul 27 14:45:27 wsp171944wss hcid[14483]: HCI dev 0 up
Jul 27 14:45:27 wsp171944wss hcid[5812]: HCI dev 0 up
Jul 27 14:45:27 wsp171944wss hcid[14483]: Starting security manager 0
Jul 27 14:45:27 wsp171944wss hcid[5812]: Starting security manager 0
Jul 27 14:50:10 wsp171944wss hcid[14776]: Bluetooth HCI daemon
Jul 27 14:50:10 wsp171944wss hcid[14776]: Starting security manager 0
Jul 27 14:50:10 wsp171944wss bluetooth: hcid startup succeeded
Jul 27 14:50:10 wsp171944wss sdpd[14782]: init_server: binding L2CAP
socket: Address already in use 
Jul 27 14:50:10 wsp171944wss sdpd[14782]: main: Server initialization
failed 
Jul 27 14:50:10 wsp171944wss bluetooth: sdpd startup succeeded
Jul 27 14:52:30 wsp171944wss kernel: usb 1-1: USB disconnect, address 6
Jul 27 14:52:33 wsp171944wss hcid[14776]: HCI dev 0 down
Jul 27 14:52:33 wsp171944wss hcid[14776]: Stoping security manager 0
Jul 27 14:52:33 wsp171944wss hcid[14483]: HCI dev 0 down
Jul 27 14:52:33 wsp171944wss hcid[14483]: Stoping security manager 0
Jul 27 14:52:33 wsp171944wss hcid[5812]: HCI dev 0 down
Jul 27 14:52:33 wsp171944wss hcid[5812]: Stoping security manager 0
Jul 27 14:52:33 wsp171944wss hcid[14776]: HCI dev 0 unregistered
Jul 27 14:52:33 wsp171944wss hcid[14483]: HCI dev 0 unregistered
Jul 27 14:52:33 wsp171944wss hcid[5812]: HCI dev 0 unregistered
Jul 27 14:52:34 wsp171944wss kernel: usb 1-1: new full speed USB device
using address 7
Jul 27 14:52:34 wsp171944wss hcid[14776]: HCI dev 0 registered
Jul 27 14:52:34 wsp171944wss hcid[14483]: HCI dev 0 registered
Jul 27 14:52:35 wsp171944wss hcid[5812]: HCI dev 0 registered
Jul 27 14:52:35 wsp171944wss hcid[14776]: HCI dev 0 up
Jul 27 14:52:35 wsp171944wss hcid[14483]: HCI dev 0 up
Jul 27 14:52:35 wsp171944wss hcid[5812]: HCI dev 0 up
Jul 27 14:52:35 wsp171944wss hcid[14776]: Starting security manager 0
Jul 27 14:52:35 wsp171944wss hcid[14483]: Starting security manager 0
Jul 27 14:52:35 wsp171944wss hcid[5812]: Starting security manager 0
Jul 27 15:01:01 wsp171944wss crond(pam_unix)[15071]: session opened for
user root by (uid=0)
Jul 27 15:01:01 wsp171944wss crond(pam_unix)[15071]: session closed for
user root


Lan

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: [Bluez-users] Hci Reset Problem
@ 2006-07-28 18:37 Lan Zhang
  0 siblings, 0 replies; 10+ messages in thread
From: Lan Zhang @ 2006-07-28 18:37 UTC (permalink / raw)
  To: bluez-users

Hi, Marcel:

I forgot the system we had is using vmware system, and that may cause
the HCI to reset. Anyway, I tested all the BT dongle I had here with a
stang along Linux, I attached result below. I htink you may interested. 

Regards,
Lan


EPSON --- WORK
hci0:   Type: USB
        BD Address: 00:03:7A:2A:CD:D8 ACL MTU: 384:8 SCO MTU: 64:8
        HCI 19.2
        Chip version: BlueCore4-External
        Max key size: 56 bit
        SCO mapping:  HCI
        Features: 0xff 0xff 0x8f 0xfe 0x9b 0xf9 0x00 0x80
                <3-slot packets> <5-slot packets> <encryption> <slot
offset>
                <timing accuracy> <role switch> <hold mode> <sniff mode>
                <park state> <RSSI> <channel quality> <SCO link> <HV2
packets>
                <HV3 packets> <u-law log> <A-law log> <CVSD> <paging
scheme>
                <power control> <transparent SCO> <broadcast encrypt>
                <EDR ACL 2 Mbps> <EDR ACL 3 Mbps> <enhanced iscan>
                <interlaced iscan> <interlaced pscan> <inquiry with
RSSI>
                <extended SCO> <EV4 packets> <EV5 packets> <AFH cap.
slave>
                <AFH class. slave> <3-slot EDR ACL> <5-slot EDR ACL>
                <AFH cap. master> <AFH class. master> <EDR eSCO 2 Mbps>
                <EDR eSCO 3 Mbps> <3-slot EDR eSCO> <extended features>

Belkin, linksys, D-link --- WORK
hci0:   Type: USB
        BD Address: 00:0A:3A:55:C3:4C ACL MTU: 192:8 SCO MTU: 64:8
        HCI 16.4
        Chip version: BlueCore02-External
        Max key size: 56 bit
        SCO mapping:  HCI
        Features: 0xff 0xff 0x0b 0x00 0x00 0x00 0x00 0x00
                <3-slot packets> <5-slot packets> <encryption> <slot
offset>
                <timing accuracy> <role switch> <hold mode> <sniff mode>
                <park state> <RSSI> <channel quality> <SCO link> <HV2
packets>
                <HV3 packets> <u-law log> <A-law log> <CVSD> <paging
scheme>
                <transparent SCO>


CNet --- WORK
hci0:   Type: USB
        BD Address: 00:11:F6:02:85:C8 ACL MTU: 120:20 SCO MTU: 64:0
        Unsupported manufacturer
        Features: 0xff 0xff 0x05 0x38 0x18 0x18 0x00 0x00
                <3-slot packets> <5-slot packets> <encryption> <slot
offset>
                <timing accuracy> <role switch> <hold mode> <sniff mode>
                <park state> <RSSI> <channel quality> <SCO link> <HV2
packets>
                <HV3 packets> <u-law log> <A-law log> <CVSD> <power
control>
                <enhanced iscan> <interlaced iscan> <interlaced pscan>
                <AFH cap. slave> <AFH class. slave> <AFH cap. master>
                <AFH class. master>



AmbiCom --- DIDN'T WORK at all, cannot send out inquire. 
hci0:   Type: USB
        BD Address: 00:0E:A1:32:CA:E1 ACL MTU: 377:10 SCO MTU: 16:0
        Firmware 0.105 / 97
        Features: 0xff 0xfe 0x0d 0x38 0x08 0x08 0x00 0x00
                <3-slot packets> <5-slot packets> <encryption> <slot
offset>
                <timing accuracy> <role switch> <hold mode> <sniff mode>
                <RSSI> <channel quality> <SCO link> <HV2 packets>
                <HV3 packets> <u-law log> <A-law log> <CVSD> <power
control>
                <transparent SCO> <enhanced iscan> <interlaced iscan>
                <interlaced pscan> <AFH cap. slave> <AFH cap. master>

Kensington --- DIDN'T WORK at all. 
hci0:   Type: USB
        BD Address: 00:0C:55:F6:6A:01 ACL MTU: 377:10 SCO MTU: 16:0
        Firmware 0.105 / 101
        Features: 0xff 0xfe 0x0d 0x38 0x08 0x08 0x00 0x00
                <3-slot packets> <5-slot packets> <encryption> <slot
offset>
                <timing accuracy> <role switch> <hold mode> <sniff mode>
                <RSSI> <channel quality> <SCO link> <HV2 packets>
                <HV3 packets> <u-law log> <A-law log> <CVSD> <power
control>
                <transparent SCO> <enhanced iscan> <interlaced iscan>
                <interlaced pscan> <AFH cap. slave> <AFH cap. master>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-08-02  1:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-27 16:06 [Bluez-users] Hci Reset Problem Lan Zhang
2006-07-28  1:56 ` Marcel Holtmann
2006-07-28 10:37   ` Andreas Gaufer
2006-07-28 11:39     ` Andreas Gaufer
2006-07-31 16:21       ` [Bluez-users] Hci Reset Problem - Caused by USB Hub Andreas Gaufer
2006-07-31 18:19         ` Marcel Holtmann
2006-08-01 13:39           ` Andreas Gaufer
2006-08-02  1:21             ` Marcel Holtmann
  -- strict thread matches above, loose matches on Subject: below --
2006-07-28 14:21 [Bluez-users] Hci Reset Problem Lan Zhang
2006-07-28 18:37 Lan Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox