How to start with openobex ?

Help
2011-11-20
2013-05-01
  • shirishag75
    shirishag75
    2011-11-20

    Hi all,
      I have a Nokia C2-03 mobile phone http://www.gsmarena.com/nokia_c2_03-3995.php which I got sometime back. It comes with Nokia PC Suite or something which works only on MS-Windows :(

    I'm trying to get at least the SD storage accessible to the box. This is what comes when I plug it in my usb port :-

    T:  Bus=05 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
    D:  Ver= 2.00 Cls=02(commc) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
    P:  Vendor=0421 ProdID=08bb Rev=06.52
    S:  Manufacturer=Nokia
    S:  Product=C2-03
    C:  #Ifs=11 Cfg#= 1 Atr=c0 MxPwr=8mA
    I:  If#= 0 Alt= 0 #EPs= 0 Cls=02(commc) Sub=08 Prot=00 Driver=(none)
    I:  If#= 1 Alt= 0 #EPs= 0 Cls=02(commc) Sub=fe Prot=00 Driver=cdc_phonet
    /usr/bin/usb-devices: line 79: printf: 0a: invalid number
    I:  If#= 0 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 Driver=(none)
    I:  If#= 2 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_phonet
    I:  If#= 3 Alt= 0 #EPs= 1 Cls=02(commc) Sub=02 Prot=01 Driver=cdc_acm
    I:  If#= 4 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_acm
    I:  If#= 5 Alt= 0 #EPs= 0 Cls=02(commc) Sub=0b Prot=00 Driver=(none)
    I:  If#= 6 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 Driver=(none)
    I:  If#= 7 Alt= 0 #EPs= 1 Cls=02(commc) Sub=02 Prot=ff Driver=(none)
    /usr/bin/usb-devices: line 79: printf: 08: invalid octal number
    I:  If#= 0 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=(none)
    /usr/bin/usb-devices: line 79: printf: 09: invalid octal number
    I:  If#= 0 Alt= 0 #EPs= 0 Cls=02(commc) Sub=fd Prot=00 Driver=(none)
    

    This is something in dmesg :-

    [37016.068030] usb 5-1: new full speed USB device number 2 using uhci_hcd
    [37016.213044] usb 5-1: not running at top speed; connect to a high speed hub
    [37016.246043] usb 5-1: New USB device found, idVendor=0421, idProduct=08bb
    [37016.246049] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    [37016.246053] usb 5-1: Product: C2-03
    [37016.246057] usb 5-1: Manufacturer: Nokia
    [37017.584086] NET: Registered protocol family 35
    [37017.627734] usbcore: registered new interface driver cdc_phonet
    [37017.632175] cdc_acm 5-1:1.3: ttyACM0: USB ACM device
    [37017.634193] usbcore: registered new interface driver cdc_acm
    [37017.634198] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
    [37017.791069] usbcore: registered new interface driver cdc_ether
    [37017.791967] usb 5-1: bad CDC descriptors
    [37017.791986] usbcore: registered new interface driver rndis_host
    [37017.807761] cfg80211: Calling CRDA to update world regulatory domain
    [37017.823752] usb 5-1: bad CDC descriptors
    [37017.823788] usbcore: registered new interface driver rndis_wlan
    [37052.721501] [UFW BLOCK] IN=eth0 OUT= MAC= SRC=192.168.1.2 DST=xx.xx.xx.xx LEN=147 TOS=0x00 PREC=0x00 TTL=1 ID=0 DF PROTO=UDP SPT=43821 DPT=6771 LEN=127 
    The last line goes on repeating forever (the macid bit)
    

    Also in /var/log/messages :-

    Nov 20 05:05:13 deb-home kernel: [37016.068030] usb 5-1: new full speed USB device number 2 using uhci_hcd
    Nov 20 05:05:13 deb-home kernel: [37016.213044] usb 5-1: not running at top speed; connect to a high speed hub
    Nov 20 05:05:13 deb-home kernel: [37016.246043] usb 5-1: New USB device found, idVendor=0421, idProduct=08bb
    Nov 20 05:05:13 deb-home kernel: [37016.246049] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    Nov 20 05:05:13 deb-home kernel: [37016.246053] usb 5-1: Product: C2-03
    Nov 20 05:05:13 deb-home kernel: [37016.246057] usb 5-1: Manufacturer: Nokia
    Nov 20 05:05:13 deb-home mtp-probe: checking bus 5, device 2: "/sys/devices/pci0000:00/0000:00:1d.3/usb5/5-1"
    Nov 20 05:05:13 deb-home mtp-probe: bus: 5, device: 2 was not an MTP device
    Nov 20 05:05:14 deb-home kernel: [37017.584086] NET: Registered protocol family 35
    Nov 20 05:05:14 deb-home kernel: [37017.627734] usbcore: registered new interface driver cdc_phonet
    Nov 20 05:05:14 deb-home kernel: [37017.632175] cdc_acm 5-1:1.3: ttyACM0: USB ACM device
    Nov 20 05:05:14 deb-home kernel: [37017.634193] usbcore: registered new interface driver cdc_acm
    Nov 20 05:05:14 deb-home kernel: [37017.634198] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
    Nov 20 05:05:14 deb-home kernel: [37017.791069] usbcore: registered new interface driver cdc_ether
    Nov 20 05:05:14 deb-home kernel: [37017.791967] usb 5-1: bad CDC descriptors
    Nov 20 05:05:14 deb-home kernel: [37017.791986] usbcore: registered new interface driver rndis_host
    Nov 20 05:05:14 deb-home kernel: [37017.807761] cfg80211: Calling CRDA to update world regulatory domain
    Nov 20 05:05:14 deb-home kernel: [37017.823752] usb 5-1: bad CDC descriptors
    Nov 20 05:05:14 deb-home kernel: [37017.823788] usbcore: registered new interface driver rndis_wlan
    Nov 20 05:05:49 deb-home kernel: [37052.721501] [UFW BLOCK] IN=eth0 OUT= MAC= SRC=192.168.1.2 DST=xx.xx.xx.xx LEN=147 TOS=0x00 PREC=0x00 TTL=1 ID=0 DF PROTO=UDP SPT=43821 DPT=6771 LEN=127 
    The last line goes on repeating forever (the macid bit)
    

    Now googling for it, came to know about openobex-apps and installed it on my debian box.

    $ dpkg -l openobex-apps
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name                             Version                          Description
    +++-================================-================================-================================================================================
    ii  openobex-apps                    1.5-2                            Applications for OpenOBEX
    

    Now I tried running obex_test -u but came up empty :-

    $ obex_test -u
    Using USB transport, querying available interfaces
    Interface 0:   (null)
    Use 'obex_test -u interface_number' to run interactive OBEX test client
    

    No idea which interface number is to be used here.

    Similarly tried obexautofs

    $ obexautofs -IB
    IrDA searching not available.
    USB searching not available.
    TTY searching not available.
    fuse: missing mountpoint parameter
    

    No idea what mountpoint parameter needs to be added.

    Can anybody help ?

     
  • shirishag75
    shirishag75
    2011-11-20

    Addition at bottom :-

    $ lsusb
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 002 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply
    Bus 005 Device 002: ID 0421:08bb Nokia Mobile Phones
    
     
  • shirishag75
    shirishag75
    2011-11-20

    Something more but dunno where  it has saved the info. See this :-

    $ sudo syncml-ds-tool -u 0 --slow-sync text/plain notes --wbxml --identifier "PC Suite"
    ** Message: Remote device was successfully connected.
    ** Message: All alerts of the remote device were received.
    ** Message: All changes of the remote device were received.
    ** Message: Remote device was successfully disconnected.
    ** Message: SyncML session finished successfully.
    

    Have no idea what it did but my mobile phone came on when this command was run.

     
  • shirishag75
    shirishag75
    2011-11-20

    Ok, some part it was able to do, some part not…

    see

    $ sudo syncml-ds-tool -u 0 --identifier "PC Suite" --sync text/x-vcard Contacts /tmp/libsyncml/contacts
    ** Message: ERROR: An internal I/O error occured. Forbidden (0x43)
    

    While this it was able to do, dunno where it saved the things though or just displaying ?

    $ sudo syncml-ds-tool -u 0 --identifier "PC Suite" --sync text/x-vcard Contacts --sync text/x-vcalendar Calendar --wbxml
    ** Message: Remote device was successfully connected.
    ** Message: All alerts of the remote device were received.
    -----BEGIN CHANGE-----
    BEGIN:VCARD
    VERSION:2.1
    N;CHARSET=UTF-8;ENCODING=8BIT:Gupta;Chandan
    TEL;PREF;VOICE;ENCODING=8BIT:+xxxxxxxxx
    EMAIL;CHARSET=UTF-8;ENCODING=8BIT:xxxxxxxxx@gmail.com
    EMAIL;CHARSET=UTF-8;ENCODING=8BITxxxxxxx@linuxcandy.com
    END:VCARD
    -----END CHANGE-----
    

    ok, just put x's where the info. is/was for people's privacy. any ideas most welcome.

     
  • Try ObexFTP. BT transport should work, maybe USB too.