Hello,
After getting a java OBEX implementation to work last week, it suddenly
stopped working. Now, every time I try, the RFCOMM connection gets
disconnected shortly. It seems that for some reason the target (n-gage
cell phone) is disconnecting. My code is virtually untouched (I reverted
back to a backup revision, but due to some mistake on my part I'm only
95% positive it is exactly the version which was working previoulsy).
Just before it stopped working, my usb HUB fried (got lots of error on
the bus). Now this bad device is out of the game, and no more errors
have been reported in the system logs. Maybe it damaged my dongles,
which were plugged in? Or maybe I'm missing something obvious?
Here is a dump of a typical attempt. Does it look correct?
uber ~ # hcidump -XV
HCI sniffer - Bluetooth packet analyzer ver 1.31
device: hci0 snap_len: 1028 filter: 0xffffffff
< HCI Command: Create Connection (0x01|0x0005) plen 13
bdaddr 00:60:57:BB:4D:92 ptype 0xcc18 rswitch 0x01 clkoffset 0x0000
Packet type: DM1 DM3 DM5 DH1 DH3 DH5
> HCI Event: Command Status (0x0f) plen 4
Create Connection (0x01|0x0005) status 0x00 ncmd 1
> HCI Event: Connect Complete (0x03) plen 11
status 0x00 handle 12 bdaddr 00:60:57:BB:4D:92 type ACL encrypt 0x00
< ACL data: handle 12 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 3 scid 0x0040
< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
handle 12 policy 0x0f
Link policy: RSWITCH HOLD SNIFF PARK
> HCI Event: Command Complete (0x0e) plen 6
Write Link Policy Settings (0x02|0x000d) ncmd 1
status 0x00 handle 12
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
bdaddr 00:60:57:BB:4D:92 mode 2 clkoffset 0x0000
> HCI Event: Command Status (0x0f) plen 4
Remote Name Request (0x01|0x0019) status 0x00 ncmd 1
> HCI Event: Max Slots Change (0x1b) plen 3
handle 12 slots 5
> HCI Event: Remote Name Req Complete (0x07) plen 255
status 0x00 bdaddr 00:60:57:BB:4D:92 name 'N-Gage'
> ACL data: handle 12 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0000 scid 0x0040 result 1 status 2
Connection pending - Authorization pending
> HCI Event: QoS Setup Complete (0x0d) plen 21
status 0x00 handle 12 flags 0
Service type: 1
Token rate: 44800
Peak bandwith: 0
Latency: 5000
Delay variation: -1
> ACL data: handle 12 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x004d scid 0x0040 result 0 status 0
Connection successful
< ACL data: handle 12 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x004d flags 0x00 clen 4
MTU 1013
> ACL data: handle 12 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 0
< ACL data: handle 12 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x004d flags 0x00 result 0 clen 0
Success
> ACL data: handle 12 flags 0x02 dlen 16
> ACL data: handle 12 flags 0x01 dlen 2
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 4
Success
MTU 1013
< ACL data: handle 12 flags 0x02 dlen 8
L2CAP(d): cid 0x004d len 4 [psm 3]
RFCOMM(s): SABM: cr 1 dlci 0 pf 1 ilen 0 fcs 0x1c
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 12 packets 4
> ACL data: handle 12 flags 0x02 dlen 8
L2CAP(d): cid 0x0040 len 4 [psm 3]
RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7
< ACL data: handle 12 flags 0x02 dlen 18
L2CAP(d): cid 0x004d len 14 [psm 3]
RFCOMM(s): PN CMD: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8
dlci 18 frame_type 0 credit_flow 15 pri 7 ack_timer 0
frame_size 667 max_retrans 0 credits 7
> ACL data: handle 12 flags 0x02 dlen 16
> ACL data: handle 12 flags 0x01 dlen 2
L2CAP(d): cid 0x0040 len 14 [psm 3]
RFCOMM(s): PN RSP: cr 0 dlci 0 pf 0 ilen 10 fcs 0xaa mcc_len 8
dlci 18 frame_type 0 credit_flow 14 pri 7 ack_timer 0
frame_size 667 max_retrans 0 credits 3
< ACL data: handle 12 flags 0x02 dlen 8
L2CAP(d): cid 0x004d len 4 [psm 3]
RFCOMM(s): SABM: cr 1 dlci 18 pf 1 ilen 0 fcs 0x32
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 12 packets 2
===> I accept the connection on the phone right here
> ACL data: handle 12 flags 0x02 dlen 8
L2CAP(d): cid 0x0040 len 4 [psm 3]
RFCOMM(s): UA: cr 1 dlci 18 pf 1 ilen 0 fcs 0xf9
< ACL data: handle 12 flags 0x02 dlen 12
L2CAP(d): cid 0x004d len 8 [psm 3]
RFCOMM(s): MSC CMD: cr 1 dlci 0 pf 0 ilen 4 fcs 0x70 mcc_len 2
dlci 18 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 1 b2 1 b3 0 len 0
> ACL data: handle 12 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 18 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 1 b2 1 b3 0 len 0
< ACL data: handle 12 flags 0x02 dlen 12
L2CAP(d): cid 0x004d len 8 [psm 3]
RFCOMM(s): MSC RSP: cr 1 dlci 0 pf 0 ilen 4 fcs 0x70 mcc_len 2
dlci 18 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 1 b2 1 b3 0 len 0
> ACL data: handle 12 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 18 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 1 b2 1 b3 0 len 0
< ACL data: handle 12 flags 0x02 dlen 9
L2CAP(d): cid 0x004d len 5 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 18 pf 1 ilen 0 fcs 0xd2 credits 33
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 12 packets 3
===> I start my OBEX push on /dev/rfcomm0 now.
< ACL data: handle 12 flags 0x02 dlen 15
L2CAP(d): cid 0x004d len 11 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 18 pf 0 ilen 7 fcs 0xce
0000: 80 00 07 10 00 20 00 ..... .
> ACL data: handle 12 flags 0x02 dlen 9
L2CAP(d): cid 0x0040 len 5 [psm 3]
RFCOMM(d): UIH: cr 0 dlci 18 pf 1 ilen 0 fcs 0x8 credits 4
> ACL data: handle 12 flags 0x02 dlen 16
L2CAP(d): cid 0x0040 len 12 [psm 3]
RFCOMM(d): UIH: cr 0 dlci 18 pf 1 ilen 7 fcs 0x8 credits 1
0000: a0 00 07 10 00 07 fc .......
< ACL data: handle 12 flags 0x02 dlen 9
L2CAP(d): cid 0x004d len 5 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 18 pf 0 ilen 1 fcs 0xce
0000: a0 .
< ACL data: handle 12 flags 0x02 dlen 9
L2CAP(d): cid 0x004d len 5 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 18 pf 0 ilen 1 fcs 0xce
0000: 5e ^
< ACL data: handle 12 flags 0x02 dlen 9
L2CAP(d): cid 0x004d len 5 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 18 pf 0 ilen 1 fcs 0xce
0000: 40 @
< ACL data: handle 12 flags 0x02 dlen 9
L2CAP(d): cid 0x004d len 5 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 18 pf 0 ilen 1 fcs 0xce
0000: 5e ^
< ACL data: handle 12 flags 0x02 dlen 9
L2CAP(d): cid 0x004d len 5 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 18 pf 0 ilen 1 fcs 0xce
0000: 47 G
< ACL data: handle 12 flags 0x02 dlen 9
L2CAP(d): cid 0x004d len 5 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 18 pf 0 ilen 1 fcs 0xce
0000: 5e ^
< ACL data: handle 12 flags 0x02 dlen 9
L2CAP(d): cid 0x004d len 5 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 18 pf 0 ilen 1 fcs 0xce
0000: 50 P
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 12 packets 4
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 12 packets 4
> ACL data: handle 12 flags 0x02 dlen 8
L2CAP(d): cid 0x0040 len 4 [psm 3]
RFCOMM(s): DISC: cr 0 dlci 18 pf 1 ilen 0 fcs 0xb2
< ACL data: handle 12 flags 0x02 dlen 8
L2CAP(d): cid 0x004d len 4 [psm 3]
RFCOMM(s): UA: cr 0 dlci 18 pf 1 ilen 0 fcs 0x98
< ACL data: handle 12 flags 0x02 dlen 8
L2CAP(d): cid 0x004d len 4 [psm 3]
RFCOMM(s): DISC: cr 1 dlci 0 pf 1 ilen 0 fcs 0xfd
< ACL data: handle 12 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x004d scid 0x0040
> ACL data: handle 12 flags 0x02 dlen 8
L2CAP(d): cid 0x0040 len 4 [psm 3]
RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7
> ACL data: handle 12 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x004d scid 0x0040
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 12 packets 3
< HCI Command: Disconnect (0x01|0x0006) plen 3
handle 12 reason 0x13
Reason: Remote User Terminated Connection
> HCI Event: Command Status (0x0f) plen 4
Disconnect (0x01|0x0006) status 0x00 ncmd 1
> HCI Event: Disconn Complete (0x05) plen 4
status 0x00 handle 12 reason 0x16
Reason: Connection Terminated by Local Host
Any help or hint very welcome...
Regards,
Pierre-Yves
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Hi Pierre-Yves,
> > > > in case please to "hcidump -X -V --obex=9". I am not going to decide
> > > > OBEX by hand if I don't have to.
> >
> > please check that their OPP service is still on channel 9. The channel
> > numbers might have changed and you connect to the wrong channel.
>
> I just checked, but it is not the case: OPP is still on the channel 9. I
> get the prompt to accept the incoming object, but past that point it
> always does behave like in the log I posted earlier. If I was on the
> wrong channel, how could I get this as I do?
>
>
> > ACL data: handle 12 flags 0x02 dlen 16
> L2CAP(d): cid 0x0040 len 12 [psm 3]
> RFCOMM(d): UIH: cr 0 dlci 18 pf 1 ilen 7 fcs 0x8 credits 1
> OBEX: Connect rsp(f): status 200 len 7 version 1.0 flags 0 mtu
> 2044
> Status 200 = Success
>
>
> I did the same test on another phone (SE k750i), and the log looks alike
> (with the endless list of 0's at the end too). Here it is:
I have no clue. Maybe you wanna make sure to recompile every library. It
looks like a nasty bug or error in your code.
Regards
Marcel
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Hi marcel,
> > > in case please to "hcidump -X -V --obex=9". I am not going to decide
> > > OBEX by hand if I don't have to.
>
> please check that their OPP service is still on channel 9. The channel
> numbers might have changed and you connect to the wrong channel.
I just checked, but it is not the case: OPP is still on the channel 9. I
get the prompt to accept the incoming object, but past that point it
always does behave like in the log I posted earlier. If I was on the
wrong channel, how could I get this as I do?
> ACL data: handle 12 flags 0x02 dlen 16
L2CAP(d): cid 0x0040 len 12 [psm 3]
RFCOMM(d): UIH: cr 0 dlci 18 pf 1 ilen 7 fcs 0x8 credits 1
OBEX: Connect rsp(f): status 200 len 7 version 1.0 flags 0 mtu
2044
Status 200 = Success
I did the same test on another phone (SE k750i), and the log looks alike
(with the endless list of 0's at the end too). Here it is:
HCI sniffer - Bluetooth packet analyzer ver 1.31
device: hci0 snap_len: 1028 filter: 0xffffffff
< ACL data: handle 12 flags 0x02 dlen 8
L2CAP(d): cid 0x0040 len 4 [psm 0]
0000: 2b 53 01 6d +S.m
> ACL data: handle 12 flags 0x02 dlen 8
L2CAP(d): cid 0x0040 len 4 [psm 0]
0000: 2b 73 01 47 +s.G
< ACL data: handle 12 flags 0x02 dlen 8
L2CAP(d): cid 0x0040 len 4 [psm 0]
0000: 03 53 01 fd .S..
< ACL data: handle 12 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
> ACL data: handle 12 flags 0x02 dlen 8
L2CAP(d): cid 0x0040 len 4 [psm 0]
0000: 03 73 01 d7 .s..
> ACL data: handle 12 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
> HCI Event: Number of Completed Packets (0x13) plen 5
0000: 01 0c 00 03 00 .....
< HCI Command: Disconnect (0x01|0x0006) plen 3
0000: 0c 00 13 ...
> HCI Event: Command Status (0x0f) plen 4
0000: 00 01 06 04 ....
> HCI Event: Disconn Complete (0x05) plen 4
0000: 00 0c 00 16 ....
< HCI Command: Create Connection (0x01|0x0005) plen 13
0000: 0b bf 2c 20 16 00 18 cc 02 00 00 00 01 .., .........
> HCI Event: Command Status (0x0f) plen 4
0000: 00 01 05 04 ....
> HCI Event: Connect Complete (0x03) plen 11
0000: 00 0c 00 0b bf 2c 20 16 00 01 00 ....., ....
< ACL data: handle 12 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 3 scid 0x0040
< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
0000: 0c 00 0f 00 ....
> HCI Event: Command Complete (0x0e) plen 6
0000: 01 0d 08 00 0c 00 ......
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
0000: 0b bf 2c 20 16 00 02 00 00 00 .., ......
> HCI Event: Command Status (0x0f) plen 4
0000: 00 01 19 04 ....
> HCI Event: Max Slots Change (0x1b) plen 3
0000: 0c 00 05 ...
> ACL data: handle 12 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 1 status 0
Connection pending - No futher information available
> HCI Event: Remote Name Req Complete (0x07) plen 255
0000: 00 0b bf 2c 20 16 00 4b 37 35 30 69 00 00 00
00 ..., ..K750i....
0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 ................
0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 ................
0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 ................
0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 ................
0050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 ................
0060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 ................
0070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 ................
0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 ................
0090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 ................
00a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 ................
00b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 ................
00c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 ................
00d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 ................
00e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 ................
00f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 ...............
> ACL data: handle 12 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
Connection successful
< ACL data: handle 12 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
MTU 1013
> ACL data: handle 12 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
Success
> ACL data: handle 12 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
MTU 1013
< ACL data: handle 12 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
Success
< ACL data: handle 12 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
> HCI Event: Number of Completed Packets (0x13) plen 5
0000: 01 0c 00 04 00 .....
> ACL data: handle 12 flags 0x02 dlen 8
L2CAP(d): cid 0x0040 len 4 [psm 3]
RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7
< ACL data: handle 12 flags 0x02 dlen 18
L2CAP(d): cid 0x0040 len 14 [psm 3]
RFCOMM(s): PN CMD: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8
dlci 10 frame_type 0 credit_flow 15 pri 7 ack_timer 0
frame_size 1008 max_retrans 0 credits 7
> ACL data: handle 12 flags 0x02 dlen 19
L2CAP(d): cid 0x0040 len 15 [psm 3]
RFCOMM(s): PN RSP: cr 0 dlci 0 pf 0 ilen 10 fcs 0xaa mcc_len 8
dlci 10 frame_type 0 credit_flow 14 pri 7 ack_timer 0
frame_size 329 max_retrans 0 credits 0
< ACL data: handle 12 flags 0x02 dlen 8
L2CAP(d): cid 0x0040 len 4 [psm 3]
RFCOMM(s): SABM: cr 1 dlci 10 pf 1 ilen 0 fcs 0x8c
> ACL data: handle 12 flags 0x02 dlen 8
L2CAP(d): cid 0x0040 len 4 [psm 3]
RFCOMM(s): UA: cr 1 dlci 10 pf 1 ilen 0 fcs 0x47
< ACL data: handle 12 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 10 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 0 b2 0 b3 0 len 0
> ACL data: handle 12 flags 0x02 dlen 9
L2CAP(d): cid 0x0040 len 5 [psm 3]
RFCOMM(d): UIH: cr 0 dlci 10 pf 1 ilen 0 fcs 0x76 credits 20
> ACL data: handle 12 flags 0x02 dlen 13
L2CAP(d): cid 0x0040 len 9 [psm 3]
RFCOMM(s): MSC CMD: cr 0 dlci 0 pf 0 ilen 4 fcs 0xaa mcc_len 2
dlci 10 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 0 b2 0 b3 0 len 0
< ACL data: handle 12 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 10 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 0 b2 0 b3 0 len 0
> ACL data: handle 12 flags 0x02 dlen 13
L2CAP(d): cid 0x0040 len 9 [psm 3]
RFCOMM(s): MSC RSP: cr 0 dlci 0 pf 0 ilen 4 fcs 0xaa mcc_len 2
dlci 10 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 0 b2 0 b3 0 len 0
< ACL data: handle 12 flags 0x02 dlen 9
L2CAP(d): cid 0x0040 len 5 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 10 pf 1 ilen 0 fcs 0xac credits 33
> HCI Event: Number of Completed Packets (0x13) plen 5
0000: 01 0c 00 04 00 .....
> ACL data: handle 12 flags 0x02 dlen 12
L2CAP(d): cid 0x0040 len 8 [psm 3]
RFCOMM(s): RPN CMD: cr 0 dlci 0 pf 0 ilen 3 fcs 0xaa mcc_len 1
dlci 10 br 170 db 2 sb 0 p 1 pt 2 xi 0 xo 0
rtri 0 rtro 0 rtci 0 rtco 0 xon 73 xoff 1 pm 0x0000
< ACL data: handle 12 flags 0x02 dlen 18
L2CAP(d): cid 0x0040 len 14 [psm 3]
RFCOMM(s): RPN RSP: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8
dlci 10 br 7 db 3 sb 0 p 0 pt 0 xi 0 xo 0
rtri 0 rtro 0 rtci 0 rtco 0 xon 17 xoff 19 pm 0x3f7f
> ACL data: handle 12 flags 0x02 dlen 12
L2CAP(d): cid 0x0040 len 8 [psm 3]
RFCOMM(s): RPN CMD: cr 0 dlci 0 pf 0 ilen 3 fcs 0xaa mcc_len 1
dlci 10 br 170 db 0 sb 0 p 0 pt 0 xi 1 xo 0
rtri 0 rtro 0 rtci 1 rtco 0 xon 19 xoff 127 pm 0x703f
< ACL data: handle 12 flags 0x02 dlen 18
L2CAP(d): cid 0x0040 len 14 [psm 3]
RFCOMM(s): RPN RSP: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8
dlci 10 br 7 db 3 sb 0 p 0 pt 0 xi 0 xo 0
rtri 0 rtro 0 rtci 0 rtco 0 xon 17 xoff 19 pm 0x3f7f
> HCI Event: Number of Completed Packets (0x13) plen 5
0000: 01 0c 00 03 00 .....
< ACL data: handle 12 flags 0x02 dlen 15
L2CAP(d): cid 0x0040 len 11 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 10 pf 0 ilen 7 fcs 0xb0
OBEX: Connect cmd(f): len 7 version 1.0 flags 0 mtu 8192
> HCI Event: Number of Completed Packets (0x13) plen 5
0000: 01 0c 00 01 00 .....
> ACL data: handle 12 flags 0x02 dlen 16
L2CAP(d): cid 0x0040 len 12 [psm 3]
RFCOMM(d): UIH: cr 0 dlci 10 pf 1 ilen 7 fcs 0x76 credits 1
OBEX: Connect rsp(f): status 200 len 7 version 1.0 flags 0 mtu
4096
< ACL data: handle 12 flags 0x02 dlen 9
L2CAP(d): cid 0x0040 len 5 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 10 pf 0 ilen 1 fcs 0xb0
OBEX: Connect rsp(f): status 200 len 0 version 0.0 flags 0 mtu
8192
Count (0x00) = Unicode length 65533
0000: 00 00 11 00 00 00 00 00 00 00 00 10 00 00 00
00 ................
0010: 00 00 61 0b 02 00 00 00 00 00 00 00 00 00 00
00 ..a.............
0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 ................
0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 ................
0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 ................
0050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 ................
0060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 ................
0070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 ................
0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 ................
(and it does go on the same way)
Any hint will be very welcome.
Best Regards,
Pierre-Yves
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
HI Pierre-Yves,
> > in case please to "hcidump -X -V --obex=9". I am not going to decide
> > OBEX by hand if I don't have to.
please check that their OPP service is still on channel 9. The channel
numbers might have changed and you connect to the wrong channel.
Regards
Marcel
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Hello Marcel,
> in case please to "hcidump -X -V --obex=9". I am not going to decide
> OBEX by hand if I don't have to.
Sorry, here it is:
HCI sniffer - Bluetooth packet analyzer ver 1.31
device: hci0 snap_len: 1028 filter: 0xffffffff
< HCI Command: Create Connection (0x01|0x0005) plen 13
bdaddr 00:60:57:BB:4D:92 ptype 0xcc18 rswitch 0x01 clkoffset 0x0000
Packet type: DM1 DM3 DM5 DH1 DH3 DH5
> HCI Event: Command Status (0x0f) plen 4
Create Connection (0x01|0x0005) status 0x00 ncmd 1
> HCI Event: Connect Complete (0x03) plen 11
status 0x00 handle 12 bdaddr 00:60:57:BB:4D:92 type ACL encrypt 0x00
< ACL data: handle 12 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 3 scid 0x0040
< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
handle 12 policy 0x0f
Link policy: RSWITCH HOLD SNIFF PARK
> HCI Event: Command Complete (0x0e) plen 6
Write Link Policy Settings (0x02|0x000d) ncmd 1
status 0x00 handle 12
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
bdaddr 00:60:57:BB:4D:92 mode 2 clkoffset 0x0000
> HCI Event: Command Status (0x0f) plen 4
Remote Name Request (0x01|0x0019) status 0x00 ncmd 1
> HCI Event: Max Slots Change (0x1b) plen 3
handle 12 slots 5
> HCI Event: Remote Name Req Complete (0x07) plen 255
status 0x00 bdaddr 00:60:57:BB:4D:92 name 'N-Gage'
> HCI Event: QoS Setup Complete (0x0d) plen 21
status 0x00 handle 12 flags 0
Service type: 1
Token rate: 44800
Peak bandwith: 0
Latency: 5000
Delay variation: -1
> ACL data: handle 12 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0000 scid 0x0040 result 1 status 2
Connection pending - Authorization pending
> ACL data: handle 12 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0052 scid 0x0040 result 0 status 0
Connection successful
< ACL data: handle 12 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0052 flags 0x00 clen 4
MTU 1013
> ACL data: handle 12 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 0
< ACL data: handle 12 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0052 flags 0x00 result 0 clen 0
Success
> ACL data: handle 12 flags 0x02 dlen 18
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 4
Success
MTU 1013
< ACL data: handle 12 flags 0x02 dlen 8
L2CAP(d): cid 0x0052 len 4 [psm 3]
RFCOMM(s): SABM: cr 1 dlci 0 pf 1 ilen 0 fcs 0x1c
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 12 packets 4
> ACL data: handle 12 flags 0x02 dlen 8
L2CAP(d): cid 0x0040 len 4 [psm 3]
RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7
< ACL data: handle 12 flags 0x02 dlen 18
L2CAP(d): cid 0x0052 len 14 [psm 3]
RFCOMM(s): PN CMD: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8
dlci 18 frame_type 0 credit_flow 15 pri 7 ack_timer 0
frame_size 667 max_retrans 0 credits 7
> ACL data: handle 12 flags 0x02 dlen 18
L2CAP(d): cid 0x0040 len 14 [psm 3]
RFCOMM(s): PN RSP: cr 0 dlci 0 pf 0 ilen 10 fcs 0xaa mcc_len 8
dlci 18 frame_type 0 credit_flow 14 pri 7 ack_timer 0
frame_size 667 max_retrans 0 credits 3
< ACL data: handle 12 flags 0x02 dlen 8
L2CAP(d): cid 0x0052 len 4 [psm 3]
RFCOMM(s): SABM: cr 1 dlci 18 pf 1 ilen 0 fcs 0x32
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 12 packets 2
> ACL data: handle 12 flags 0x02 dlen 8
L2CAP(d): cid 0x0040 len 4 [psm 3]
RFCOMM(s): UA: cr 1 dlci 18 pf 1 ilen 0 fcs 0xf9
< ACL data: handle 12 flags 0x02 dlen 12
L2CAP(d): cid 0x0052 len 8 [psm 3]
RFCOMM(s): MSC CMD: cr 1 dlci 0 pf 0 ilen 4 fcs 0x70 mcc_len 2
dlci 18 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 1 b2 0 b3 0 len 0
> ACL data: handle 12 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 18 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 1 b2 0 b3 0 len 0
< ACL data: handle 12 flags 0x02 dlen 12
L2CAP(d): cid 0x0052 len 8 [psm 3]
RFCOMM(s): MSC RSP: cr 1 dlci 0 pf 0 ilen 4 fcs 0x70 mcc_len 2
dlci 18 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 1 b2 0 b3 0 len 0
> ACL data: handle 12 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 18 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 1 b2 0 b3 0 len 0
< ACL data: handle 12 flags 0x02 dlen 9
L2CAP(d): cid 0x0052 len 5 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 18 pf 1 ilen 0 fcs 0xd2 credits 33
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 12 packets 3
< ACL data: handle 12 flags 0x02 dlen 15
L2CAP(d): cid 0x0052 len 11 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 18 pf 0 ilen 7 fcs 0xce
OBEX: Connect cmd(f): len 7 version 1.0 flags 0 mtu 8192
> ACL data: handle 12 flags 0x02 dlen 9
L2CAP(d): cid 0x0040 len 5 [psm 3]
RFCOMM(d): UIH: cr 0 dlci 18 pf 1 ilen 0 fcs 0x8 credits 4
> ACL data: handle 12 flags 0x02 dlen 16
L2CAP(d): cid 0x0040 len 12 [psm 3]
RFCOMM(d): UIH: cr 0 dlci 18 pf 1 ilen 7 fcs 0x8 credits 1
OBEX: Connect rsp(f): status 200 len 7 version 1.0 flags 0 mtu
2044
Status 200 = Success
< ACL data: handle 12 flags 0x02 dlen 9
L2CAP(d): cid 0x0052 len 5 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 18 pf 0 ilen 1 fcs 0xce
OBEX: Connect rsp(f): status 200 len 0 version 0.0 flags 0 mtu
8192
Status 200 = Success
Unknown (0x20) = Unicode length 18508
0000: 4c 44 11 00 00 00 00 00 00 00 00 07 fc 20 00 00
LD........... ..
0010: 00 00 61 0b 02 00 00 00 00 00 00 00 00 00 00
00 ..a.............
0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 ................
0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 ................
0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 ................
0050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 ................
0060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 ................
Then, about 8000 times (the full log including what's above is 8203
lines long) the same line full of 0's, before hcidump does crash with a
segfault
Regards,
Pierre-Yves
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Hi Pierre-Yves,
> After getting a java OBEX implementation to work last week, it suddenly
> stopped working. Now, every time I try, the RFCOMM connection gets
> disconnected shortly. It seems that for some reason the target (n-gage
> cell phone) is disconnecting. My code is virtually untouched (I reverted
> back to a backup revision, but due to some mistake on my part I'm only
> 95% positive it is exactly the version which was working previoulsy).
>
> Just before it stopped working, my usb HUB fried (got lots of error on
> the bus). Now this bad device is out of the game, and no more errors
> have been reported in the system logs. Maybe it damaged my dongles,
in case please to "hcidump -X -V --obex=9". I am not going to decide
OBEX by hand if I don't have to.
Regards
Marcel
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel