Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Found 0 USB OBEX interfaces

Help
2008-08-11
2013-05-01
  • Erik Sjölund
    Erik Sjölund
    2008-08-11

    I connected my Nokia 6020 mobile phone to an Ubuntu 8.04 computer with a CA-42 usb-adaptor. Transfering files with obexftp doesn't seem to work, as I get the message: "Found 0 USB OBEX interfaces".

    Nokia 6020 is supported according to
    http://dev.zuckschwerdt.org/openobex/wiki/SupportedPhonesNokia

    root@otto:~# obexftp -u
    Found 0 USB OBEX interfaces
    Use '-u interface_number' to connect
    Nothing to do. Use --help for help.
    root@otto:~# lsusb | grep -i nokia
    Bus 004 Device 006: ID 0421:0802 Nokia Mobile Phones
    root@otto:~# cat /etc/issue
    Ubuntu 8.04.1 \n \l
    root@otto:~# cat /proc/cpuinfo  | grep "model name" | head -1
    model name    : Intel(R) Pentium(R) 4 CPU 2.80GHz
    root@otto:~# uname -r
    2.6.24-19-generic
    root@otto:~# uname -v
    #1 SMP Fri Jul 11 23:41:49 UTC 2008

    Do you have any ideas?

    cheers,
    Erik Sjölund

     
    • There are two ways to use a usb cable. Direct USB connection (very few phones support this) or tty emulation. Try something like obexftp -t /dev/ttyACM0 and let me know if it works.

       
      • Erik Sjölund
        Erik Sjölund
        2008-08-13

        root@otto:~# obexftp -t /dev/ttyACM0
        Nothing to do. Use --help for help.
        root@otto:~# obexftp -t /dev/ttyACM0 -l /
        Connecting...failed: connect
        Still trying to connect
        Connecting...failed: connect
        Still trying to connect
        Connecting...failed: connect
        Still trying to connect
        root@otto:~#

        Another thing:
        Yesterday I installed Nokia PC Suite on a Windows XP computer. WIth that software I was able to
        download some photos I had taken with the Nokia 6020 mobile phone. So I conclude that the hardware is working.

         
        • Are you sure ttyACM0 is the right device? If not post the output of

          dmesg | tail

          shortly after plugging in the cable.

           
          • Erik Sjölund
            Erik Sjölund
            2008-08-15

            I get the following:

            [668735.648420] usb 4-2: new full speed USB device using uhci_hcd and address 12
            [668735.806318] usb 4-2: configuration #1 chosen from 1 choice
            [668735.811222] /build/buildd/linux-2.6.24/drivers/usb/class/cdc-acm.c: This device cannot do calls on its own. It is no modem.
            [668735.811248] cdc_acm 4-2:1.0: ttyACM0: USB ACM device

             
            • Looks good. Check permission on the device

              ls -al /dev/ttyACM0

              Then try debugging obexftp. See the README, e.g.
              remove all ObexFTP installations from your system. Get latest release and build it using
              CFLAGS="-DOBEXFTP_DEBUG=5" ./configure ; make clean ; make

               
              • Erik Sjölund
                Erik Sjölund
                2008-08-16

                I built two different obexftp:

                Test 1
                source code obexftp-0.22 built against
                prepackaged
                libopenobex1    ( 1.3-3ubuntu1   )

                Test 2
                source code obexftp from subversion /trunk
                source code openobex from subversion /trunk

                The results look very much the same though:
                ---------------------------------------
                Test 1:
                ---------------------------------------
                erik@desktop:~$ ls -l /dev/ttyACM0
                crw-rw---- 1 root dialout 166, 0 Aug 16 11:20 /dev/ttyACM0
                erik@desktop:~$ id
                uid=1000(erik) gid=1000(erik) groups=4(adm),20(dialout),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),107(fuse),109(lpadmin),115(admin),1000(erik)
                erik@desktop:~$ obexftp -t /dev/ttyACM0 -l
                obexftp_open()
                obexftp_connect_src()
                Connecting...cobex_connect()
                bfb_io_open()
                Checking for transparent OBEX mode
                Write ok, reading back
                bfb_io_read() No data (timeout: 2)
                do_at_cmd() Sending 4: ATZ
                do_at_cmd() tmpbuf=1: A
                do_at_cmd() tmpbuf=3: ATZ
                do_at_cmd() tmpbuf=4: ATZ
                do_at_cmd() tmpbuf=5: ATZ
                do_at_cmd() tmpbuf=6: ATZ

                do_at_cmd() tmpbuf=10: ATZ
                OK

                do_at_cmd() Answer (size=2): OK

                do_at_cmd() Sending 7: AT+GMI
                do_at_cmd() tmpbuf=1: A
                do_at_cmd() tmpbuf=2: AT
                do_at_cmd() tmpbuf=3: AT+
                do_at_cmd() tmpbuf=7: AT+GMI
                do_at_cmd() tmpbuf=13: AT+GMI
                Noki
                do_at_cmd() tmpbuf=18: AT+GMI
                Nokia

                do_at_cmd() tmpbuf=22: AT+GMI
                Nokia

                OK

                do_at_cmd() Answer (size=5): Nokia

                OK

                AT+GMI: Nokia
                No Siemens detected. Trying generic.
                do_at_cmd() Sending 11: AT+CPROT=0
                do_at_cmd() tmpbuf=1: A
                do_at_cmd() tmpbuf=2: AT
                do_at_cmd() tmpbuf=3: AT+
                do_at_cmd() tmpbuf=9: AT+CPROT=
                do_at_cmd() tmpbuf=13: AT+CPROT=0

                do_at_cmd() tmpbuf=19: AT+CPROT=0
                ERROR
                do_at_cmd() Answer (size=5): ERROR

                Error doing AT+CPROT=0 (ERROR)
                bfb_io_close()
                cobex_connect() bfb_io_open returned -1, 29024
                obexftp_connect_src() TC -1
                failed: connect
                error on connect(): Success
                Still trying to connect
                obexftp_connect_src()
                Connecting...cobex_connect()
                bfb_io_open()
                Checking for transparent OBEX mode
                Write ok, reading back
                bfb_io_read() No data (timeout: 2)
                do_at_cmd() Sending 4: ATZ
                do_at_cmd() tmpbuf=1: A
                do_at_cmd() tmpbuf=3: ATZ
                do_at_cmd() tmpbuf=4: ATZ
                do_at_cmd() tmpbuf=5: ATZ
                do_at_cmd() tmpbuf=6: ATZ

                do_at_cmd() tmpbuf=10: ATZ
                OK

                do_at_cmd() Answer (size=2): OK

                do_at_cmd() Sending 7: AT+GMI
                do_at_cmd() tmpbuf=1: A
                do_at_cmd() tmpbuf=2: AT
                do_at_cmd() tmpbuf=3: AT+
                do_at_cmd() tmpbuf=7: AT+GMI
                do_at_cmd() tmpbuf=12: AT+GMI
                Nok
                do_at_cmd() tmpbuf=18: AT+GMI
                Nokia

                do_at_cmd() tmpbuf=22: AT+GMI
                Nokia

                OK

                do_at_cmd() Answer (size=5): Nokia

                OK

                AT+GMI: Nokia
                No Siemens detected. Trying generic.
                do_at_cmd() Sending 11: AT+CPROT=0
                do_at_cmd() tmpbuf=1: A
                do_at_cmd() tmpbuf=2: AT
                do_at_cmd() tmpbuf=3: AT+
                do_at_cmd() tmpbuf=8: AT+CPROT
                do_at_cmd() tmpbuf=13: AT+CPROT=0

                do_at_cmd() tmpbuf=18: AT+CPROT=0
                ERROR
                do_at_cmd() tmpbuf=20: AT+CPROT=0
                ERROR

                do_at_cmd() Answer (size=5): ERROR

                Error doing AT+CPROT=0 (ERROR)
                bfb_io_close()
                cobex_connect() bfb_io_open returned -1, -1208916608
                obexftp_connect_src() TC -1
                failed: connect
                error on connect(): Success
                Still trying to connect
                obexftp_connect_src()
                Connecting...cobex_connect()
                bfb_io_open()
                Checking for transparent OBEX mode
                Write ok, reading back
                bfb_io_read() No data (timeout: 2)
                do_at_cmd() Sending 4: ATZ
                do_at_cmd() tmpbuf=1: A
                do_at_cmd() tmpbuf=2: AT
                do_at_cmd() tmpbuf=4: ATZ
                do_at_cmd() tmpbuf=5: ATZ
                do_at_cmd() tmpbuf=6: ATZ

                do_at_cmd() tmpbuf=10: ATZ
                OK

                do_at_cmd() Answer (size=2): OK

                do_at_cmd() Sending 7: AT+GMI
                do_at_cmd() tmpbuf=1: A
                do_at_cmd() tmpbuf=2: AT
                do_at_cmd() tmpbuf=3: AT+
                do_at_cmd() tmpbuf=7: AT+GMI
                do_at_cmd() tmpbuf=11: AT+GMI
                No
                do_at_cmd() tmpbuf=17: AT+GMI
                Nokia

                do_at_cmd() tmpbuf=22: AT+GMI
                Nokia

                OK

                do_at_cmd() Answer (size=5): Nokia

                OK

                AT+GMI: Nokia
                No Siemens detected. Trying generic.
                do_at_cmd() Sending 11: AT+CPROT=0
                do_at_cmd() tmpbuf=1: A
                do_at_cmd() tmpbuf=2: AT
                do_at_cmd() tmpbuf=3: AT+
                do_at_cmd() tmpbuf=8: AT+CPROT
                do_at_cmd() tmpbuf=12: AT+CPROT=0
                do_at_cmd() tmpbuf=18: AT+CPROT=0
                ERROR
                do_at_cmd() tmpbuf=20: AT+CPROT=0
                ERROR

                do_at_cmd() Answer (size=5): ERROR

                Error doing AT+CPROT=0 (ERROR)
                bfb_io_close()
                cobex_connect() bfb_io_open returned -1, -1208916608
                obexftp_connect_src() TC -1
                failed: connect
                error on connect(): Success
                Still trying to connect
                obexftp_close()
                cobex_disconnect()

                ------------------------------------------
                Test 2
                ------------------------------------------
                erik@desktop:~$ obexftp -t /dev/ttyACM0 -l
                obexftp_open()
                obexftp_connect_src()
                Connecting...cobex_connect()
                bfb_io_open()
                Checking for transparent OBEX mode
                Write ok, reading back
                bfb_io_read() No data (timeout: 2)
                do_at_cmd() Sending 4: ATZ
                do_at_cmd() tmpbuf=1: A
                do_at_cmd() tmpbuf=3: ATZ
                do_at_cmd() tmpbuf=4: ATZ
                do_at_cmd() tmpbuf=5: ATZ
                do_at_cmd() tmpbuf=6: ATZ

                do_at_cmd() tmpbuf=10: ATZ
                OK

                do_at_cmd() Answer (size=2): OK

                do_at_cmd() Sending 7: AT+GMI
                do_at_cmd() tmpbuf=1: A
                do_at_cmd() tmpbuf=2: AT
                do_at_cmd() tmpbuf=3: AT+
                do_at_cmd() tmpbuf=7: AT+GMI
                do_at_cmd() tmpbuf=12: AT+GMI
                Nok
                do_at_cmd() tmpbuf=18: AT+GMI
                Nokia

                do_at_cmd() tmpbuf=22: AT+GMI
                Nokia

                OK

                do_at_cmd() Answer (size=5): Nokia

                OK

                AT+GMI: Nokia
                No Siemens detected. Trying generic.
                do_at_cmd() Sending 11: AT+CPROT=0
                do_at_cmd() tmpbuf=1: A
                do_at_cmd() tmpbuf=2: AT
                do_at_cmd() tmpbuf=3: AT+
                do_at_cmd() tmpbuf=8: AT+CPROT
                do_at_cmd() tmpbuf=13: AT+CPROT=0

                do_at_cmd() tmpbuf=18: AT+CPROT=0
                ERROR
                do_at_cmd() tmpbuf=20: AT+CPROT=0
                ERROR

                do_at_cmd() Answer (size=5): ERROR

                Error doing AT+CPROT=0 (ERROR)
                bfb_io_close()
                cobex_connect() bfb_io_open returned -1, 29872
                obexftp_connect_src() TC -1
                failed: connect
                Tried to connect for 465ms
                error on connect(): Success
                Still trying to connect
                obexftp_connect_src()
                Connecting...cobex_connect()
                bfb_io_open()
                Checking for transparent OBEX mode
                Write ok, reading back
                bfb_io_read() No data (timeout: 2)
                do_at_cmd() Sending 4: ATZ
                do_at_cmd() tmpbuf=1: A
                do_at_cmd() tmpbuf=2: AT
                do_at_cmd() tmpbuf=4: ATZ
                do_at_cmd() tmpbuf=5: ATZ
                do_at_cmd() tmpbuf=6: ATZ

                do_at_cmd() tmpbuf=10: ATZ
                OK

                do_at_cmd() Answer (size=2): OK

                do_at_cmd() Sending 7: AT+GMI
                do_at_cmd() tmpbuf=1: A
                do_at_cmd() tmpbuf=2: AT
                do_at_cmd() tmpbuf=3: AT+
                do_at_cmd() tmpbuf=7: AT+GMI
                do_at_cmd() tmpbuf=11: AT+GMI
                No
                do_at_cmd() tmpbuf=17: AT+GMI
                Nokia

                do_at_cmd() tmpbuf=22: AT+GMI
                Nokia

                OK

                do_at_cmd() Answer (size=5): Nokia

                OK

                AT+GMI: Nokia
                No Siemens detected. Trying generic.
                do_at_cmd() Sending 11: AT+CPROT=0
                do_at_cmd() tmpbuf=1: A
                do_at_cmd() tmpbuf=2: AT
                do_at_cmd() tmpbuf=3: AT+
                do_at_cmd() tmpbuf=7: AT+CPRO
                do_at_cmd() tmpbuf=12: AT+CPROT=0
                do_at_cmd() tmpbuf=18: AT+CPROT=0
                ERROR
                do_at_cmd() tmpbuf=20: AT+CPROT=0
                ERROR

                do_at_cmd() Answer (size=5): ERROR

                Error doing AT+CPROT=0 (ERROR)
                bfb_io_close()
                cobex_connect() bfb_io_open returned -1, -1208756864
                obexftp_connect_src() TC -1
                failed: connect
                Tried to connect for 460ms
                error on connect(): Success
                Still trying to connect
                obexftp_connect_src()
                Connecting...cobex_connect()
                bfb_io_open()
                Checking for transparent OBEX mode
                Write ok, reading back
                bfb_io_read() No data (timeout: 2)
                do_at_cmd() Sending 4: ATZ
                do_at_cmd() tmpbuf=1: A
                do_at_cmd() tmpbuf=2: AT
                do_at_cmd() tmpbuf=4: ATZ
                do_at_cmd() tmpbuf=5: ATZ
                do_at_cmd() tmpbuf=6: ATZ

                do_at_cmd() tmpbuf=10: ATZ
                OK

                do_at_cmd() Answer (size=2): OK

                do_at_cmd() Sending 7: AT+GMI
                do_at_cmd() tmpbuf=1: A
                do_at_cmd() tmpbuf=2: AT
                do_at_cmd() tmpbuf=7: AT+GMI
                do_at_cmd() tmpbuf=11: AT+GMI
                No
                do_at_cmd() tmpbuf=16: AT+GMI
                Nokia

                do_at_cmd() tmpbuf=22: AT+GMI
                Nokia

                OK

                do_at_cmd() Answer (size=5): Nokia

                OK

                AT+GMI: Nokia
                No Siemens detected. Trying generic.
                do_at_cmd() Sending 11: AT+CPROT=0
                do_at_cmd() tmpbuf=1: A
                do_at_cmd() tmpbuf=2: AT
                do_at_cmd() tmpbuf=3: AT+
                do_at_cmd() tmpbuf=7: AT+CPRO
                do_at_cmd() tmpbuf=12: AT+CPROT=0
                do_at_cmd() tmpbuf=17: AT+CPROT=0
                ERRO
                do_at_cmd() tmpbuf=20: AT+CPROT=0
                ERROR

                do_at_cmd() Answer (size=5): ERROR

                Error doing AT+CPROT=0 (ERROR)
                bfb_io_close()
                cobex_connect() bfb_io_open returned -1, -1208756864
                obexftp_connect_src() TC -1
                failed: connect
                Tried to connect for 440ms
                error on connect(): Success
                Still trying to connect
                obexftp_close()
                cobex_disconnect()

                 
                • Well, looks like the generic OBEX connection is not supported by Nokia. If you know the required connection command (like AT+CPROT=0 above) I'll add that. Maybe you can find it on the net or get it from the windows software.

                   
    • Alex Kanavin
      Alex Kanavin
      2008-08-12

      The wiki page does not say that the phone is supported specifically over USB. It probably means it was tested over Bluetooth. CA-42 cables are cables with a serial-to-USB converter chip, so this means the phone can't have proper USB OBEX interfaces if it's using such a cable.