From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: david To: bluez-devel@lists.sourceforge.net Content-Type: text/plain Message-Id: <1126489296.2376.22.camel@localhost.localdomain> Mime-Version: 1.0 Subject: [Bluez-devel] file transfer problem Sender: bluez-devel-admin@lists.sourceforge.net Errors-To: bluez-devel-admin@lists.sourceforge.net Reply-To: bluez-devel@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ development List-Post: List-Help: List-Subscribe: , List-Archive: Date: Mon, 12 Sep 2005 09:41:36 +0800 hi, I use bluez-utils-2.20 and run "hcidump -X -V" to see what happens. Then I try to use Sony Ericssion phone to transfer a file to my bluetooth device, but it fails. I get the following mssage, /********* below is the msg **************/ HCI sniffer - Bluetooth packet analyzer ver 1.25 device: hci0 snap_len: 1028 filter: 0xffffffff > HCI Event: Connect Request (0x04) plen 10 bdaddr 00:0E:07:62:86:6C class 0x520204 type ACL < HCI Command: Accept Connection Request (0x01|0x0009) plen 7 bdaddr 00:0E:07:62:86:6C role 0x01 Role: Slave > HCI Event: Command Status (0x0f) plen 4 Accept Connection Request (0x01|0x0009) status 0x00 ncmd 1 > HCI Event: Connect Complete (0x03) plen 11 status 0x00 handle 40 bdaddr 00:0E:07:62:86:6C type ACL encrypt 0x00 < HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4 handle 40 policy 0x0f Link policy: RSWITCH HOLD SNIFF PARK > HCI Event: Page Scan Repetition Mode Change (0x20) plen 7 bdaddr 00:0E:07:62:86:6C mode 1 > HCI Event: Command Complete (0x0e) plen 6 Write Link Policy Settings (0x02|0x000d) ncmd 1 status 0x00 handle 40 < HCI Command: Change Connection Packet Type (0x01|0x000f) plen 4 handle 40 ptype 0xcc18 Packet type: DM1 DM3 DM5 DH1 DH3 DH5 > HCI Event: Command Status (0x0f) plen 4 Change Connection Packet Type (0x01|0x000f) status 0x00 ncmd 1 > HCI Event: Connection Packet Type Changed (0x1d) plen 5 status 0x00 handle 40 ptype 0x0018 Packet type: DM1 DH1 > ACL data: handle 40 flags 0x02 dlen 12 L2CAP(s): Connect req: psm 1 scid 0x0040 < ACL data: handle 40 flags 0x02 dlen 16 L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0 Connection successful > HCI Event: Number of Completed Packets (0x13) plen 5 handle 40 packets 1 > ACL data: handle 40 flags 0x02 dlen 16 L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4 MTU 251 < ACL data: handle 40 flags 0x02 dlen 14 L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0 Success < ACL data: handle 40 flags 0x02 dlen 12 L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 0 > HCI Event: Number of Completed Packets (0x13) plen 5 handle 40 packets 1 > HCI Event: Number of Completed Packets (0x13) plen 5 handle 40 packets 1 > ACL data: handle 40 flags 0x02 dlen 14 L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0 Success > ACL data: handle 40 flags 0x02 dlen 17 > ACL data: handle 40 flags 0x01 dlen 17 L2CAP(d): cid 0x0040 len 30 [psm 1] SDP SSA Req: tid 0x0 len 0x19 pat uuid-16 0x1105 (OBEXObjPush) max 65535 aid(s) 0x0001 (SrvClassIDList) 0x0004 (ProtocolDescList) 0x0009 (BTProfileDescList) 0x0100 (SrvName) 0x0303 (SuppFormatsList) cont 00 < ACL data: handle 40 flags 0x02 dlen 184 L2CAP(d): cid 0x0040 len 180 [psm 1] SDP SSA Rsp: tid 0x0 len 0xaf count 172 record #0 aid 0x0001 (SrvClassIDList) < uuid-16 0x1105 (OBEXObjPush) > aid 0x0004 (ProtocolDescList) < < uuid-16 0x0100 (L2CAP) > < uuid-16 0x0003 (RFCOMM) uint 0x1 > < uuid-16 0x0008 (OBEX) > > aid 0x0009 (BTProfileDescList) < < uuid-16 0x1105 (OBEXObjPush) uint 0x100 > > aid 0x0100 (SrvName) str "OBEX Object Push" aid 0x0303 (SuppFormatsList) < uint 0xff > record #1 aid 0x0001 (SrvClassIDList) < uuid-16 0x1105 (OBEXObjPush) > aid 0x0004 (ProtocolDescList) < < uuid-16 0x0100 (L2CAP) > < uuid-16 0x0003 (RFCOMM) uint 0x1 > < uuid-16 0x0008 (OBEX) > > aid 0x0009 (BTProfileDescList) < < uuid-16 0x1105 (OBEXObjPush) uint 0x100 > > aid 0x0100 (SrvName) str "OBEX Object Push" aid 0x0303 (SuppFormatsList) < uint 0xff > cont 00 > HCI Event: Number of Completed Packets (0x13) plen 5 handle 40 packets 1 > ACL data: handle 40 flags 0x02 dlen 12 L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040 < ACL data: handle 40 flags 0x02 dlen 12 L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040 > HCI Event: Number of Completed Packets (0x13) plen 5 handle 40 packets 1 > HCI Event: Disconn Complete (0x05) plen 4 status 0x00 handle 40 reason 0x13 Reason: Remote User Terminated Connection > HCI Event: Connect Request (0x04) plen 10 bdaddr 00:0E:07:62:86:6C class 0x520204 type ACL < HCI Command: Accept Connection Request (0x01|0x0009) plen 7 bdaddr 00:0E:07:62:86:6C role 0x01 Role: Slave > HCI Event: Command Status (0x0f) plen 4 Accept Connection Request (0x01|0x0009) status 0x00 ncmd 1 > HCI Event: Connect Complete (0x03) plen 11 status 0x00 handle 41 bdaddr 00:0E:07:62:86:6C type ACL encrypt 0x00 < HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4 handle 41 policy 0x0f Link policy: RSWITCH HOLD SNIFF PARK > HCI Event: Page Scan Repetition Mode Change (0x20) plen 7 bdaddr 00:0E:07:62:86:6C mode 1 > HCI Event: Command Complete (0x0e) plen 6 Write Link Policy Settings (0x02|0x000d) ncmd 1 status 0x00 handle 41 < HCI Command: Change Connection Packet Type (0x01|0x000f) plen 4 handle 41 ptype 0xcc18 Packet type: DM1 DM3 DM5 DH1 DH3 DH5 > HCI Event: Command Status (0x0f) plen 4 Change Connection Packet Type (0x01|0x000f) status 0x00 ncmd 1 > ACL data: handle 41 flags 0x02 dlen 12 L2CAP(s): Connect req: psm 1 scid 0x0041 > HCI Event: Connection Packet Type Changed (0x1d) plen 5 status 0x00 handle 41 ptype 0x0018 Packet type: DM1 DH1 < ACL data: handle 41 flags 0x02 dlen 16 L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0041 result 0 status 0 Connection successful > HCI Event: Number of Completed Packets (0x13) plen 5 handle 41 packets 1 > ACL data: handle 41 flags 0x02 dlen 16 L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4 MTU 251 < ACL data: handle 41 flags 0x02 dlen 14 L2CAP(s): Config rsp: scid 0x0041 flags 0x00 result 0 clen 0 Success < ACL data: handle 41 flags 0x02 dlen 12 L2CAP(s): Config req: dcid 0x0041 flags 0x00 clen 0 > HCI Event: Number of Completed Packets (0x13) plen 5 handle 41 packets 1 > HCI Event: Number of Completed Packets (0x13) plen 5 handle 41 packets 1 > ACL data: handle 41 flags 0x02 dlen 14 L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0 Success > ACL data: handle 41 flags 0x02 dlen 17 > ACL data: handle 41 flags 0x01 dlen 11 L2CAP(d): cid 0x0040 len 24 [psm 1] SDP SSA Req: tid 0x0 len 0x13 pat uuid-16 0x1105 (OBEXObjPush) max 65535 aid(s) 0x0001 (SrvClassIDList) 0x0004 (ProtocolDescList) 0x0303 (SuppFormatsList) cont 00 < ACL data: handle 41 flags 0x02 dlen 116 L2CAP(d): cid 0x0041 len 112 [psm 1] SDP SSA Rsp: tid 0x0 len 0x6b count 104 record #0 aid 0x0001 (SrvClassIDList) < uuid-16 0x1105 (OBEXObjPush) > aid 0x0004 (ProtocolDescList) < < uuid-16 0x0100 (L2CAP) > < uuid-16 0x0003 (RFCOMM) uint 0x1 > < uuid-16 0x0008 (OBEX) > > aid 0x0303 (SuppFormatsList) < uint 0xff> record #1 aid 0x0001 (SrvClassIDList) < uuid-16 0x1105 (OBEXObjPush) > aid 0x0004 (ProtocolDescList) < < uuid-16 0x0100 (L2CAP) > < uuid-16 0x0003 (RFCOMM) uint 0x1 > < uuid-16 0x0008 (OBEX) > > aid 0x0303 (SuppFormatsList) < uint 0xff> cont 00 > HCI Event: Number of Completed Packets (0x13) plen 5 handle 41 packets 1 > ACL data: handle 41 flags 0x02 dlen 12 L2CAP(s): Disconn req: dcid 0x0040 scid 0x0041 < ACL data: handle 41 flags 0x02 dlen 12 L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0041 > HCI Event: Number of Completed Packets (0x13) plen 5 handle 41 packets 1 > ACL data: handle 41 flags 0x02 dlen 12 L2CAP(s): Connect req: psm 3 scid 0x0042 < ACL data: handle 41 flags 0x02 dlen 16 L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0042 result 0 status 0 Connection successful > HCI Event: Number of Completed Packets (0x13) plen 5 handle 41 packets 1 > ACL data: handle 41 flags 0x02 dlen 16 L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4 MTU 251 < ACL data: handle 41 flags 0x02 dlen 14 L2CAP(s): Config rsp: scid 0x0042 flags 0x00 result 0 clen 0 Success < ACL data: handle 41 flags 0x02 dlen 16 L2CAP(s): Config req: dcid 0x0042 flags 0x00 clen 4 MTU 1024 > HCI Event: Number of Completed Packets (0x13) plen 5 handle 41 packets 1 > HCI Event: Number of Completed Packets (0x13) plen 5 handle 41 packets 1 > ACL data: handle 41 flags 0x02 dlen 17 > ACL data: handle 41 flags 0x01 dlen 1 L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 4 Success MTU 251 > ACL data: handle 41 flags 0x02 dlen 8 L2CAP(d): cid 0x0040 len 4 [psm 3] RFCOMM(s): SABM: cr 1 dlci 0 pf 1 ilen 0 fcs 0x1c < ACL data: handle 41 flags 0x02 dlen 8 L2CAP(d): cid 0x0042 len 4 [psm 3] RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7 > HCI Event: Number of Completed Packets (0x13) plen 5 handle 41 packets 1 > ACL data: handle 41 flags 0x02 dlen 17 > ACL data: handle 41 flags 0x01 dlen 2 L2CAP(d): cid 0x0040 len 15 [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 7 ack_timer 0 frame_size 246 max_retrans 0 credits 7 < ACL data: handle 41 flags 0x02 dlen 8 L2CAP(d): cid 0x0042 len 4 [psm 3] RFCOMM(s): DM: cr 1 dlci 2 pf 1 ilen 0 fcs 0x73 > HCI Event: Number of Completed Packets (0x13) plen 5 handle 41 packets 1 > ACL data: handle 41 flags 0x02 dlen 8 L2CAP(d): cid 0x0040 len 4 [psm 3] RFCOMM(s): DISC: cr 1 dlci 0 pf 1 ilen 0 fcs 0xfd < ACL data: handle 41 flags 0x02 dlen 8 L2CAP(d): cid 0x0042 len 4 [psm 3] RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7 > HCI Event: Number of Completed Packets (0x13) plen 5 handle 41 packets 1 > ACL data: handle 41 flags 0x02 dlen 12 L2CAP(s): Disconn req: dcid 0x0040 scid 0x0042 < ACL data: handle 41 flags 0x02 dlen 12 L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0042 > HCI Event: Number of Completed Packets (0x13) plen 5 handle 41 packets 1 > HCI Event: Disconn Complete (0x05) plen 4 status 0x00 handle 41 reason 0x13 Reason: Remote User Terminated Connection /*************************************/ >From: Marcel Holtmann > Re: file transfer problem >2005-09-08 16:14 > Hi David, > I meet a problem while doing file transfer using bluez-2.9. > Some phone cannot find my services I register. I browse my sevice and > get the following message: >... > So I compare my phone's service with others'. > I find the only difference between them is that my Service RecHandle is different from others. > My Service Rechandle is very big such as ox804fa00. Others are 0x10000, 0x10001...,and so on. > Is there anything to do with Service RecHandle why other bluetooth devices cannot find my bluetooth services? > I am expecting for you reply. Thanks very much. did you tried to use bluez-utils-2.20? Run "hcidump -X -V" to see what the phone is looking for. Regards Marcel ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel