libobexftp.so not found in Debian Etch

Help
angel i
2008-07-23
2013-05-01
  • angel i

    angel i - 2008-07-23

    Hi,
    After installing the neccessary libraries (openobex, obexftp and dev libraries) I am still unable to find the libobexftp.so in my debian etch system in order to compile the c example.
    I saw that the etch version does not contain this file anymore?
    Thanks.

     
    • Christian W. Zuckschwerdt

      the debian maintainer told me, that the Debian Etch package libobexftp-dev  contains the libs _statically_ linked. See http://packages.debian.org/etch/ia64/libobexftp-dev/filelist

      Linking your program with -lobexftp -lmulticobex -lbfb should work. You should also include all other libs like openobex and bluez.
      In Debian Lenny the packages will most likely be dynamically linked.

       
      • angel i

        angel i - 2008-07-23

        Thanks , I got it working finnaly, after compiling the obexftp from source.
        Anyway, I have another problem now, when I try to send a file to a remote mobile phone I got the confirmation on the phone, but as soon as I accept the connection I receive an "Error opening obexftp-client" error.
        Tried that with 2 mobile phones, same errors.
        Any way to debug this?
        Thanks

        Cristian

         
        • Christian W. Zuckschwerdt

          The README has a section on debugging. You need to uninstall the obexftp package, the configure, compile and install. If there is not enough debug info you need to uninstall openobex then configure that for debugging, compile, install.

          Also please try the obexftp application (maybe in PUSH) mode.

           
          • angel i

            angel i - 2008-07-23

            Hi,
            I tried the obexftp utility with the following command "obexftp -v -b 00:18:8D:65:52:3F -p ./tuxcase.jpg" and got the following hcidump report:

            NSLU:~# hcidump
            HCI sniffer - Bluetooth packet analyzer ver 1.32
            device: hci0 snap_len: 1028 filter: 0xffffffff
            < HCI Command: Create Connection (0x01|0x0005) plen 13
            > HCI Event: Command Status (0x0f) plen 4
            > HCI Event: Connect Complete (0x03) plen 11
            < ACL data: handle 12 flags 0x02 dlen 12
                L2CAP(s): Connect req: psm 1 scid 0x0040
            < HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
            > HCI Event: Command Status (0x0f) plen 4
            < HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
            > HCI Event: Read Remote Supported Features (0x0b) plen 11
            > HCI Event: Command Complete (0x0e) plen 6
            > HCI Event: Max Slots Change (0x1b) plen 3
            > ACL data: handle 12 flags 0x02 dlen 17
            > ACL data: handle 12 flags 0x01 dlen 11
                L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 1 status 2
                  Connection pending - Authorization pending
                L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
                  Connection successful
            < 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 10
                L2CAP(s): Info req: type 2
            < ACL data: handle 12 flags 0x02 dlen 12
                L2CAP(s): Info rsp: type 2 result 1
                  Not supported
            > ACL data: handle 12 flags 0x02 dlen 18
                L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 4
                  Success
                  MTU 672
            > 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 0x0040 flags 0x00 result 0 clen 0
                  Success
            > HCI Event: Number of Completed Packets (0x13) plen 5
            < HCI Command: Remote Name Request (0x01|0x0019) plen 10
            > HCI Event: Command Status (0x0f) plen 4
            > HCI Event: Remote Name Req Complete (0x07) plen 255
            < ACL data: handle 12 flags 0x02 dlen 36
                L2CAP(d): cid 0x0040 len 32 [psm 1]
                    SDP SSA Req: tid 0x0 len 0x1b
                      pat uuid-128 00005005-0000-1000-8000-0002ee000001
                      max 65535
                      aid(s) 0x0004 (ProtocolDescList)
                      cont 00
            > ACL data: handle 12 flags 0x02 dlen 38
                L2CAP(d): cid 0x0040 len 34 [psm 1]
                    SDP SSA Rsp: tid 0x0 len 0x1d
                      count 26
                      record #0
                          aid 0x0004 (ProtocolDescList)
                             < < uuid-16 0x0100 (L2CAP) > <
                             uuid-16 0x0003 (RFCOMM) uint 0xc > <
                             uuid-16 0x0008 (OBEX) > >
                      cont 00
            > HCI Event: Number of Completed Packets (0x13) plen 5
            < ACL data: handle 12 flags 0x02 dlen 12
                L2CAP(s): Connect req: psm 3 scid 0x0041
            > ACL data: handle 12 flags 0x02 dlen 36
                L2CAP(s): Connect rsp: dcid 0x0041 scid 0x0041 result 1 status 2
                  Connection pending - Authorization pending
                L2CAP(s): Connect rsp: dcid 0x0041 scid 0x0041 result 0 status 0
                  Connection successful
                L2CAP(s): Config req: dcid 0x0041 flags 0x00 clen 0
            < ACL data: handle 12 flags 0x02 dlen 16
                L2CAP(s): Config req: dcid 0x0041 flags 0x00 clen 4
                  MTU 1013
            < ACL data: handle 12 flags 0x02 dlen 14
                L2CAP(s): Config rsp: scid 0x0041 flags 0x00 result 0 clen 0
                  Success
            > ACL data: handle 12 flags 0x02 dlen 18
                L2CAP(s): Config rsp: scid 0x0041 flags 0x00 result 0 clen 4
                  Success
                  MTU 672
            < ACL data: handle 12 flags 0x02 dlen 8
                L2CAP(d): cid 0x0041 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
            > ACL data: handle 12 flags 0x02 dlen 8
                L2CAP(d): cid 0x0041 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 0x0041 len 14 [psm 3]
                  RFCOMM(s): PN CMD: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8
                  dlci 24 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 0x0041 len 14 [psm 3]
                  RFCOMM(s): PN RSP: cr 0 dlci 0 pf 0 ilen 10 fcs 0xaa mcc_len 8
                  dlci 24 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 0x0041 len 4 [psm 3]
                  RFCOMM(s): SABM: cr 1 dlci 24 pf 1 ilen 0 fcs 0xa2
            > HCI Event: Link Key Request (0x17) plen 6
            < HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
            > HCI Event: Command Complete (0x0e) plen 10
            > HCI Event: Number of Completed Packets (0x13) plen 5
            > HCI Event: Encrypt Change (0x08) plen 4
            > ACL data: handle 12 flags 0x02 dlen 8
                L2CAP(d): cid 0x0041 len 4 [psm 3]
                  RFCOMM(s): UA: cr 1 dlci 24 pf 1 ilen 0 fcs 0x69
            < ACL data: handle 12 flags 0x02 dlen 12
                L2CAP(d): cid 0x0041 len 8 [psm 3]
                  RFCOMM(s): MSC CMD: cr 1 dlci 0 pf 0 ilen 4 fcs 0x70 mcc_len 2
                  dlci 24 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 0 b2 0 b3 1 len 1
            > ACL data: handle 12 flags 0x02 dlen 12
                L2CAP(d): cid 0x0041 len 8 [psm 3]
                  RFCOMM(s): MSC CMD: cr 0 dlci 0 pf 0 ilen 4 fcs 0xaa mcc_len 2
                  dlci 24 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 0 b2 0 b3 1 len 1
            < ACL data: handle 12 flags 0x02 dlen 12
                L2CAP(d): cid 0x0041 len 8 [psm 3]
                  RFCOMM(s): MSC RSP: cr 1 dlci 0 pf 0 ilen 4 fcs 0x70 mcc_len 2
                  dlci 24 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 0 b2 0 b3 1 len 1
            > ACL data: handle 12 flags 0x02 dlen 12
                L2CAP(d): cid 0x0041 len 8 [psm 3]
                  RFCOMM(s): MSC RSP: cr 0 dlci 0 pf 0 ilen 4 fcs 0xaa mcc_len 2
                  dlci 24 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 0 b2 0 b3 1 len 1
            < ACL data: handle 12 flags 0x02 dlen 9
                L2CAP(d): cid 0x0041 len 5 [psm 3]
                  RFCOMM(d): UIH: cr 1 dlci 24 pf 1 ilen 0 fcs 0x12 credits 33
            < ACL data: handle 12 flags 0x02 dlen 34
                L2CAP(d): cid 0x0041 len 30 [psm 3]
                  RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 26 fcs 0xe
                    OBEX: Connect cmd(f): len 26 version 1.0 flags 0 mtu 1024
                    Target (0x46) = Sequence length 16
            > HCI Event: Number of Completed Packets (0x13) plen 5
            > ACL data: handle 12 flags 0x02 dlen 9
                L2CAP(d): cid 0x0041 len 5 [psm 3]
                  RFCOMM(d): UIH: cr 0 dlci 24 pf 1 ilen 0 fcs 0xc8 credits 4
            > ACL data: handle 12 flags 0x02 dlen 40
                L2CAP(d): cid 0x0041 len 36 [psm 3]
                  RFCOMM(d): UIH: cr 0 dlci 24 pf 1 ilen 31 fcs 0xc8 credits 1
                    OBEX: Connect rsp(f): status 200 len 31 version 1.0 flags 0 mtu 65535
                    Connection ID (0xcb) = 3272582550
                    Who (0x4a) = Sequence length 16
            < ACL data: handle 12 flags 0x02 dlen 676
                L2CAP(d): cid 0x0041 len 672 [psm 3]
                  RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 667 fcs 0xe
            < ACL data: handle 12 flags 0x02 dlen 366
                L2CAP(d): cid 0x0041 len 362 [psm 3]
                  RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 357 fcs 0xe
                    OBEX: Put cmd(c): len 1024
                    Connection ID (0xcb) = 3272582550
                    Name (0x01) = Unicode length 24
                    Length (0xc3) = 4710
                    Body (0x48) = Sequence length 981
            > ACL data: handle 12 flags 0x02 dlen 12
                L2CAP(d): cid 0x0041 len 8 [psm 3]
                  RFCOMM(d): UIH: cr 0 dlci 24 pf 1 ilen 3 fcs 0xc8 credits 2
                    OBEX: Put rsp(f): status 100 len 3< ACL data: handle 12 flags 0x02 dlen 676
                L2CAP(d): cid 0x0041 len 672 [psm 3]
                  RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 667 fcs 0xe
            < ACL data: handle 12 flags 0x02 dlen 366
                L2CAP(d): cid 0x0041 len 362 [psm 3]
                  RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 357 fcs 0xe
                    OBEX: Put cmd(c): len 1024 (continue)
                    Body (0x48) = Sequence length 1018
            > HCI Event: Number of Completed Packets (0x13) plen 5
            > ACL data: handle 12 flags 0x02 dlen 12
                L2CAP(d): cid 0x0041 len 8 [psm 3]
                  RFCOMM(d): UIH: cr 0 dlci 24 pf 1 ilen 3 fcs 0xc8 credits 2
                    OBEX: Put rsp(f): status 100 len 3< ACL data: handle 12 flags 0x02 dlen 676
                L2CAP(d): cid 0x0041 len 672 [psm 3]
                  RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 667 fcs 0xe
            < ACL data: handle 12 flags 0x02 dlen 366
                L2CAP(d): cid 0x0041 len 362 [psm 3]
                  RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 357 fcs 0xe
                    OBEX: Put cmd(c): len 1024 (continue)
                    Body (0x48) = Sequence length 1018
            > ACL data: handle 12 flags 0x02 dlen 12
                L2CAP(d): cid 0x0041 len 8 [psm 3]
                  RFCOMM(d): UIH: cr 0 dlci 24 pf 1 ilen 3 fcs 0xc8 credits 2
                    OBEX: Put rsp(f): status 100 len 3< ACL data: handle 12 flags 0x02 dlen 676
                L2CAP(d): cid 0x0041 len 672 [psm 3]
                  RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 667 fcs 0xe
            < ACL data: handle 12 flags 0x02 dlen 366
                L2CAP(d): cid 0x0041 len 362 [psm 3]
                  RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 357 fcs 0xe
                    OBEX: Put cmd(c): len 1024 (continue)
                    Body (0x48) = Sequence length 1018
            > HCI Event: Number of Completed Packets (0x13) plen 5
            > ACL data: handle 12 flags 0x02 dlen 12
                L2CAP(d): cid 0x0041 len 8 [psm 3]
                  RFCOMM(d): UIH: cr 0 dlci 24 pf 1 ilen 3 fcs 0xc8 credits 2
                    OBEX: Put rsp(f): status 100 len 3< ACL data: handle 12 flags 0x02 dlen 676
                L2CAP(d): cid 0x0041 len 672 [psm 3]
                  RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 667 fcs 0xe
            < ACL data: handle 12 flags 0x02 dlen 22
                L2CAP(d): cid 0x0041 len 18 [psm 3]
                  RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 14 fcs 0xe
                    OBEX: Put cmd(f): len 681 (continue)
                    End of Body (0x49) = Sequence length 675
            > ACL data: handle 12 flags 0x02 dlen 12
                L2CAP(d): cid 0x0041 len 8 [psm 3]
                  RFCOMM(d): UIH: cr 0 dlci 24 pf 1 ilen 3 fcs 0xc8 credits 2
                    OBEX: Put rsp(f): status 404 len 3< ACL data: handle 12 flags 0x02 dlen 16
                L2CAP(d): cid 0x0041 len 12 [psm 3]
                  RFCOMM(d): UIH: cr 1 dlci 24 pf 0 ilen 8 fcs 0xe
                    OBEX: Disconnect cmd(f): len 8
                    Connection ID (0xcb) = 3272582550
            > ACL data: handle 12 flags 0x02 dlen 12
                L2CAP(d): cid 0x0041 len 8 [psm 3]
                  RFCOMM(d): UIH: cr 0 dlci 24 pf 1 ilen 3 fcs 0xc8 credits 1
                    OBEX: Disconnect rsp(f): status 200 len 3< ACL data: handle 12 flags 0x02 dlen 8
                L2CAP(d): cid 0x0041 len 4 [psm 3]
                  RFCOMM(s): DISC: cr 1 dlci 24 pf 1 ilen 0 fcs 0x43
            < ACL data: handle 12 flags 0x02 dlen 12
                L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
            > HCI Event: Number of Completed Packets (0x13) plen 5
            > ACL data: handle 12 flags 0x02 dlen 8
                L2CAP(d): cid 0x0041 len 4 [psm 3]
                  RFCOMM(s): UA: cr 1 dlci 24 pf 1 ilen 0 fcs 0x69
            < ACL data: handle 12 flags 0x02 dlen 8
                L2CAP(d): cid 0x0041 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 0x0041 scid 0x0041
            > ACL data: handle 12 flags 0x02 dlen 12
                L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
            > ACL data: handle 12 flags 0x02 dlen 12
                L2CAP(s): Disconn rsp: dcid 0x0041 scid 0x0041
            > HCI Event: Number of Completed Packets (0x13) plen 5
            < HCI Command: Disconnect (0x01|0x0006) plen 3
            > HCI Event: Command Status (0x0f) plen 4
            > HCI Event: Disconn Complete (0x05) plen 4

            The response from obexftp is:

            NSLU:~/bluetooth# obexftp -v -b 00:18:8D:65:52:3F -p ./tuxcase.jpg
            Browsing 00:18:8D:65:52:3F ...
            Connecting...done
            Sending "./tuxcase.jpg"...-failed: ./tuxcase.jpg
            Disconnecting...done

            So it seems that even with obexftp I am unable to send the file to my mobile.
            Any toughts?
            Thanks a lot for your time!

            Cristian

             
            • Christian W. Zuckschwerdt

              Try adding "-u none", also try setting the channel with "-B <chan>". Get a channel browse with sdptool.

               
              • angel i

                angel i - 2008-07-24

                Hi Christian,
                I got it working with the ftp push example (http://dev.zuckschwerdt.org/openobex/wiki/ObexFtpExamplePushC).
                Thanks for the prompt reply!

                Cristian

                 

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks