Skip to contentSkip to conversation

business card transfer problem

Bluez-devel franz keuner 3 participants 4 messages Apr 20, 2004 – Apr 21, 2004 1 message not in the archive Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

hi marcel,

for quite a while i had no questions concerning bluez and my Sony Ericsson P900 ;-)
with your help i made a lot of progress.

now i'm trying to send and receive businesscards (version2.1) between the linux computer with bluez and the mobile phone.

i installed the openobex package for suse 9.0 and the openobex applications.

i can send a businesscard from the linux computer to the mobile phone using the obextest tool from the applications package.

but if i try to receive a businesscard from the mobile phone on the linux computer with the opd program the phone reports a failure trying to transfer the businesscard to the linux computer.

but it works if i try to send the same businesscard from the phone to a pda. the pda receives the businesscard correctly.

and if try to receive the businesscard from the pda on the linux computer with the opd program this is also working.

i'm sure i'm listening on the right channels. maybe the problem is that the phone can't communicate with the opd program waiting for a connection...

do you have any ideas or hints?

regards,

franz

hcidump shows the following trying to the send from the phone to the linux computer:

hcidump r
HCIDump - HCI packet analyzer ver 1.5
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: Page Scan Repetition Mode Change(0x20) plen 7 HCI Event: Command Complete(0x0e) plen 6

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

Quoted 3 lines

HCI Event: Command Status(0x0f) plen 4
HCI Event: Connection Packet Type Changed(0x1d) plen 5 ACL data: handle 0x0028 flags 0x02 dlen 12

    L2CAP(s): Connect req: psm 1 scid 0x0054
< ACL data: handle 0x0028 flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0054 result 0 status 0
Quoted 3 lines

HCI Event: Max Slots Change(0x1b) plen 3 HCI Event: Number of Completed Packets(0x13) plen 5 ACL data: handle 0x0028 flags 0x02 dlen 12

    L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
< ACL data: handle 0x0028 flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x0054 flags 0x0000 result 0 clen 0
< ACL data: handle 0x0028 flags 0x02 dlen 12
    L2CAP(s): Config req: dcid 0x0054 flags 0x0000 clen 0
Quoted 1 line

ACL data: handle 0x0028 flags 0x02 dlen 12

    L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
< ACL data: handle 0x0028 flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x0054 flags 0x0000 result 0 clen 0
< ACL data: handle 0x0028 flags 0x02 dlen 12
    L2CAP(s): Config req: dcid 0x0054 flags 0x0000 clen 0
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 2 lines

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 17

    L2CAP(d): cid 0x40 len 13 [psm 1]
        SDP SS Req: tid 0x1 len 0x8
          pat uuid-16 0x1105 (OBEXObjPush)
          max 0xffff
          cont 00
< ACL data: handle 0x0028 flags 0x02 dlen 22
    L2CAP(d): cid 0x54 len 18 [psm 1]
        SDP SS Rsp: tid 0x1 len 0xd
          cur 0x2 tot 0x2 hndl 0x804d490 0x804d5f8
          cont 00
Quoted 1 line

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 16

    L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 4
    MTU 672
< ACL data: handle 0x0028 flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x0054 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 0x0028 flags 0x02 dlen 12

    L2CAP(s): Connect req: psm 1 scid 0x0055
< ACL data: handle 0x0028 flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0041 scid 0x0055 result 0 status 0
Quoted 1 line

ACL data: handle 0x0028 flags 0x02 dlen 12

    L2CAP(s): Connect req: psm 1 scid 0x0055
< ACL data: handle 0x0028 flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0000 scid 0x0055 result 4 status 0
Quoted 3 lines

HCI Event: Number of Completed Packets(0x13) plen 5 HCI Event: Number of Completed Packets(0x13) plen 5 HCI Event: Disconn Complete(0x05) plen 4

Signature · 14 lines
NEU : GMX Internet.FreeDSL
Ab sofort DSL-Tarif ohne Grundgebühr: http://www.gmx.net/dsl



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
#1 lore raw

Hi Franz,
Make sure you have the correct class-of-device setting on the Linux box. (See hciconfig(8).) Phones and PDAs often don't even bother doing an SDP search if the device-class obtained by device discovery doesn't contain the correct hint bits.

Cheers,
Steve

Quoted 106 lines · franz keuner

hi marcel,

for quite a while i had no questions concerning bluez and my Sony Ericsson P900 ;-)
with your help i made a lot of progress.

now i'm trying to send and receive businesscards (version2.1) between the linux computer with bluez and the mobile phone.

i installed the openobex package for suse 9.0 and the openobex applications.

i can send a businesscard from the linux computer to the mobile phone using the obextest tool from the applications package.

but if i try to receive a businesscard from the mobile phone on the linux computer with the opd program the phone reports a failure trying to transfer the businesscard to the linux computer.

but it works if i try to send the same businesscard from the phone to a pda. the pda receives the businesscard correctly.

and if try to receive the businesscard from the pda on the linux computer with the opd program this is also working.

i'm sure i'm listening on the right channels. maybe the problem is that the phone can't communicate with the opd program waiting for a connection...

do you have any ideas or hints?

regards,

franz

hcidump shows the following trying to the send from the phone to the linux computer:

hcidump r
HCIDump - HCI packet analyzer ver 1.5
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: Page Scan Repetition Mode Change(0x20) plen 7 HCI Event: Command Complete(0x0e) plen 6

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

Quoted 3 lines

HCI Event: Command Status(0x0f) plen 4
HCI Event: Connection Packet Type Changed(0x1d) plen 5 ACL data: handle 0x0028 flags 0x02 dlen 12

    L2CAP(s): Connect req: psm 1 scid 0x0054
< ACL data: handle 0x0028 flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0054 result 0 status 0
Quoted 3 lines

HCI Event: Max Slots Change(0x1b) plen 3 HCI Event: Number of Completed Packets(0x13) plen 5 ACL data: handle 0x0028 flags 0x02 dlen 12

    L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
< ACL data: handle 0x0028 flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x0054 flags 0x0000 result 0 clen 0
< ACL data: handle 0x0028 flags 0x02 dlen 12
    L2CAP(s): Config req: dcid 0x0054 flags 0x0000 clen 0
Quoted 1 line

ACL data: handle 0x0028 flags 0x02 dlen 12

    L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
< ACL data: handle 0x0028 flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x0054 flags 0x0000 result 0 clen 0
< ACL data: handle 0x0028 flags 0x02 dlen 12
    L2CAP(s): Config req: dcid 0x0054 flags 0x0000 clen 0
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 2 lines

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 17

    L2CAP(d): cid 0x40 len 13 [psm 1]
        SDP SS Req: tid 0x1 len 0x8
          pat uuid-16 0x1105 (OBEXObjPush)
          max 0xffff
          cont 00
< ACL data: handle 0x0028 flags 0x02 dlen 22
    L2CAP(d): cid 0x54 len 18 [psm 1]
        SDP SS Rsp: tid 0x1 len 0xd
          cur 0x2 tot 0x2 hndl 0x804d490 0x804d5f8
          cont 00
Quoted 1 line

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 16

    L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 4
    MTU 672
< ACL data: handle 0x0028 flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x0054 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 0x0028 flags 0x02 dlen 12

    L2CAP(s): Connect req: psm 1 scid 0x0055
< ACL data: handle 0x0028 flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0041 scid 0x0055 result 0 status 0
Quoted 1 line

ACL data: handle 0x0028 flags 0x02 dlen 12

    L2CAP(s): Connect req: psm 1 scid 0x0055
< ACL data: handle 0x0028 flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0000 scid 0x0055 result 4 status 0
Quoted 3 lines

HCI Event: Number of Completed Packets(0x13) plen 5 HCI Event: Number of Completed Packets(0x13) plen 5 HCI Event: Disconn Complete(0x05) plen 4

Signature · 14 lines
Stephen Crane, Rococo Software Ltd. http://www.rococosoft.com
[email protected] +353-1-6601315 (ext 209)



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
maintainer
#2 lore raw
In reply to franz keuner

Hi Franz,

Quoted 63 lines

hcidump shows the following trying to the send from the phone to the linux computer:

hcidump r
HCIDump - HCI packet analyzer ver 1.5
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: Page Scan Repetition Mode Change(0x20) plen 7 HCI Event: Command Complete(0x0e) plen 6

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

Quoted 3 lines

HCI Event: Command Status(0x0f) plen 4
HCI Event: Connection Packet Type Changed(0x1d) plen 5 ACL data: handle 0x0028 flags 0x02 dlen 12

    L2CAP(s): Connect req: psm 1 scid 0x0054
< ACL data: handle 0x0028 flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0054 result 0 status 0
Quoted 3 lines

HCI Event: Max Slots Change(0x1b) plen 3 HCI Event: Number of Completed Packets(0x13) plen 5 ACL data: handle 0x0028 flags 0x02 dlen 12

    L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
< ACL data: handle 0x0028 flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x0054 flags 0x0000 result 0 clen 0
< ACL data: handle 0x0028 flags 0x02 dlen 12
    L2CAP(s): Config req: dcid 0x0054 flags 0x0000 clen 0
Quoted 1 line

ACL data: handle 0x0028 flags 0x02 dlen 12

    L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
< ACL data: handle 0x0028 flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x0054 flags 0x0000 result 0 clen 0
< ACL data: handle 0x0028 flags 0x02 dlen 12
    L2CAP(s): Config req: dcid 0x0054 flags 0x0000 clen 0
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 2 lines

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 17

    L2CAP(d): cid 0x40 len 13 [psm 1]
        SDP SS Req: tid 0x1 len 0x8
          pat uuid-16 0x1105 (OBEXObjPush)
          max 0xffff
          cont 00
< ACL data: handle 0x0028 flags 0x02 dlen 22
    L2CAP(d): cid 0x54 len 18 [psm 1]
        SDP SS Rsp: tid 0x1 len 0xd
          cur 0x2 tot 0x2 hndl 0x804d490 0x804d5f8
          cont 00
Quoted 1 line

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 16

    L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 4
    MTU 672
< ACL data: handle 0x0028 flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x0054 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 0x0028 flags 0x02 dlen 12

Quoted 10 lines
    L2CAP(s): Connect req: psm 1 scid 0x0055
< ACL data: handle 0x0028 flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0041 scid 0x0055 result 0 status 0
Quoted 1 line

ACL data: handle 0x0028 flags 0x02 dlen 12

    L2CAP(s): Connect req: psm 1 scid 0x0055
< ACL data: handle 0x0028 flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0000 scid 0x0055 result 4 status 0
Quoted 3 lines

HCI Event: Number of Completed Packets(0x13) plen 5 HCI Event: Number of Completed Packets(0x13) plen 5 HCI Event: Disconn Complete(0x05) plen 4

the L2CAP config request/response is totally weird. I thing that the Bluetooth stack of the P900 is buggy. What Linux kernel do you use?

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#4 lore raw
In reply to a message not in the archive

Hi Franz,

Quoted 1 line

i'm using suse9.0 with the linux-2.4.21-99 kernel.

this is a vendor kernel and I don't know which Bluetooth patches are applied and which are not. You should better install a plain vanilla 2.4.26 from www.kernel.org.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel