obexftp data for Nokia 6260

Bug #123387 reported by Leszek Koltunski
2
Affects Status Importance Assigned to Milestone
OBEX FTP Client for GNOME-VFS
Fix Committed
Undecided
James Henstridge

Bug Description

tajwan:/home/leszek/# obexftp --bluetooth 00:11:9F:83:EC:DC --capability
Browsing 00:11:9F:83:EC:DC ...
Channel: 10
Connecting...done
Receiving "(null)"... failed: (null)
Disconnecting...done
tajwan:/home/leszek/# obexftp --bluetooth 00:11:9F:83:EC:DC --list
Browsing 00:11:9F:83:EC:DC ...
Channel: 10
Connecting...done
Receiving "(null)"... <?xml version="1.0"?> <!DOCTYPE folder-listing SYSTEM "obex-folder-listing.dtd"> <folder-listing version="1.0"><file name = "charles.jpg" size="289188" modified="20061209T013459"/></folder-listing>done
Disconnecting...done
tajwan:/home/leszek/# obexftp --bluetooth 00:11:9F:83:EC:DC --channel 12 --list
Browsing 00:11:9F:83:EC:DC ...
Channel: 10
Connecting...done
Receiving "(null)"... <?xml version="1.0"?>
<!DOCTYPE folder-listing SYSTEM "obex-folder-listing.dtd"
  [ <!ATTLIST folder mem-type CDATA #IMPLIED>
  <!ATTLIST folder label CDATA #IMPLIED> ]>
<folder-listing version="1.0">
   <folder name="C:" user-perm="RW" mem-type="DEV" label="Phone memory"/>
   <folder name="E:" user-perm="RW" mem-type="MMC" label="Mcard"/>
</folder-listing>done
Disconnecting...done
tajwan:/home/leszek/# obexftp --bluetooth 00:11:9F:83:EC:DC --channel 12 --chdir E: --list
Browsing 00:11:9F:83:EC:DC ...
Channel: 10
Connecting...done
Sending "E:"... done
Receiving "(null)"... <?xml version="1.0"?>
<!DOCTYPE folder-listing SYSTEM "obex-folder-listing.dtd"
  [ <!ATTLIST folder mem-type CDATA #IMPLIED>
  <!ATTLIST folder label CDATA #IMPLIED> ]>
<folder-listing version="1.0">
   <parent-folder />
   <folder name="Images" modified="20050910T213326Z" user-perm="RWD" mem-type="MMC"/>
   <folder name="Others" modified="20060425T083302Z" user-perm="RWD" mem-type="MMC"/>
   <folder name="Sounds" modified="20050910T213326Z" user-perm="RWD" mem-type="MMC"/>
   <folder name="Videos" modified="20050912T092226Z" user-perm="RWD" mem-type="MMC"/>
   <folder name=".Trash-leszek" modified="20060425T083306Z" user-perm="RWD" mem-type="MMC"/>
</folder-listing>done
Disconnecting...done

Notice that 'obexftp' seems to have some bug with its '--channel' option: even though I write '--channel 12' it still responds with 'Channel: 10'.
Gnome-vfs-obexftp 0.4 works beautifully with this phone.

One remark: obex://[00:11:9F:83:EC:DC] in Nautilus shows two folders: 'C:' and 'E:', i.e. it uses the 'folder name' tag. It seems to me that in this case it should use the 'label' tag?

Revision history for this message
Leszek Koltunski (leszek-3miasto) wrote :

Oh, seems like the phone provides the capability object, just on channel 12:

tajwan:/home/leszek/# obexftp --bluetooth 00:11:9F:83:EC:DC --channel 12 --capability
Browsing 00:11:9F:83:EC:DC ...
Channel: 10
Connecting...done
Receiving "(null)"...|<?xml version="1.0" ?>
<!-- OBEX Capability Object -->
<!DOCTYPE Capability SYSTEM "obex-capability.dtd">
<Capability Version="1.0">
  <General>
    <Manufacturer>Nokia</Manufacturer>
    <Model>RM-25</Model>
    <SN>353794007599948</SN>
    <SW Version="V 3.0452.0ch" Date="20041220T000000Z"/>
    <Memory>
      <MemType>DEV</MemType>
      <Location>C:\</Location>
      <Free>1001070</Free>
      <Used>5154706</Used>
      <FileNLen>256</FileNLen>
    </Memory>
    <Memory>
      <MemType>MMC</MemType>
      <Location>E:\</Location>
      <Free>480583680</Free>
      <Used>32800768</Used>
      <FileNLen>256</FileNLen>
    </Memory>
  </General>

  <Service>
    <Name>SyncML</Name>
    <UUID>SYNCML-SYNC</UUID>
    <Version>1.1</Version>
    <Object>
      <Type>application/vnd.syncml+wbxml</Type>
    </Object>
  </Service>

  <Service>
    <Name>PCCS</Name>
    <UUID>F9EC7BC4-953c-11d2-984E-525400DC9E09</UUID>
    <Version>1.0</Version>
    <Ext>
      <XNam>Backup</XNam>
      <XVal>File=C:\System\backup.xml</XVal>
    </Ext>
  </Service>

  <Service>
    <Name>Folder-Browsing</Name>
    <UUID>F9EC7BC4-953c-11d2-984E-525400DC9E09</UUID>
    <Version>1.0</Version>
    <Object>
      <Type>x-obex/folder-listing</Type>
    </Object>
    <Ext>
      <XNam>Images</XNam>
      <XVal>Folder=C:\Nokia\Images\</XVal>
      <XVal>MemType=DEV</XVal>
    </Ext>
    <Ext>
      <XNam>Graphics</XNam>
      <XVal>Folder=C:\Nokia\Images\Backgrounds\</XVal>
      <XVal>MemType=DEV</XVal>
    </Ext>
    <Ext>
      <XNam>Tones</XNam>
      <XVal>Folder=C:\Nokia\Sounds\Digital\</XVal>
      <XVal>MemType=DEV</XVal>
    </Ext>
    <Ext>
      <XNam>Music</XNam>
      <XVal>Folder=C:\Nokia\Sounds\</XVal>
      <XVal>MemType=DEV</XVal>
    </Ext>
    <Ext>
      <XNam>Videos</XNam>
      <XVal>Folder=C:\Nokia\Videos\</XVal>
      <XVal>MemType=DEV</XVal>
    </Ext>
    <Ext>
      <XNam>Installs</XNam>
      <XVal>Folder=C:\Nokia\Installs\</XVal>
      <XVal>MemType=DEV</XVal>
    </Ext>
  </Service>

</Capability>
done
Disconnecting...done

Revision history for this message
James Henstridge (jamesh) wrote :

Thank you for the data. I guess you've got one of the weird Nokia phones that provides two OBEX FTP servers on different channels (where the one advertised under the standard service name is crippled).

Do the latest versions of gnome-vfs-obexftp (0.3 or 0.4) manage to correctly display the free space in Nautilus? I made a number of changes to the connection code and don't have access to a phone that acts like this.

Revision history for this message
Luis Gomes (lgomes) wrote :

My 6630 also needs to have the channel 12 specified, so I guess its one of the weird ones. I have 0.4-1 on gutsy.

Obex ftp shows:
    <Memory>
      <MemType>DEV</MemType>
      <Location>C:\</Location>
      <Free>2228224</Free>
      <Used>7806976</Used>
      <FileNLen>256</FileNLen>
    </Memory>
    <Memory>
      <MemType>MMC</MemType>
      <Location>E:\</Location>
      <Free>1630208</Free>
      <Used>62130176</Used>
      <FileNLen>256</FileNLen>
    </Memory>

When I enter the phone on nautilus it says I have 2.1 MB of free space, the same as when I enter "C:". When I enter "E:" it shows 1.6 MB of free space.

Both FExplorer and nokia's file manager show 2304/9928 KB for "C:" and 1720/62394 KB for "E:".

So I guess it's ok? Although I'm not sure what space it should show when you open the phone. If the combination from C + E or just the C as it is doing now.

Revision history for this message
Leszek Koltunski (leszek-3miasto) wrote :

Yes, 0.4 on Debian testing reports the free space correctly.

Revision history for this message
James Henstridge (jamesh) wrote :

Thanks Luis and Leszek.

It is good to know that I didn't screw up the service discovery :) The change in question was to use a single SDP query that would find both the standard OBEX FTP channel and the proprietary Nokia OBEX FTP channel, and favour the proprietary channel over the standard one if both were present on the device.

I am marking this bug fix committed since the 6260 data is in the test suite.

Changed in gnome-vfs-obexftp:
assignee: nobody → jamesh
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.