gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get complete, recursive file list?


From: Pawel Kot
Subject: Re: Get complete, recursive file list?
Date: Tue, 3 Jun 2008 22:37:16 +0200

Hi,

On Tue, Jun 3, 2008 at 10:15 PM, Mariano Draghi <address@hidden> wrote:
> On Tue, Jun 3, 2008 at 4:24 PM, Pawel Kot <address@hidden> wrote:
>> Hi,
>>
>> On Tue, Jun 3, 2008 at 8:58 PM, Mariano Draghi <address@hidden> wrote:
>>> Hi Powel,
>>
>> Pawel that is :)
>
> Ok, Hi Pawel then :)
>
>>
>>> It's a Nokia 6131, and yes, I suppose it supports Obex protocol.
>>
>> For Nokia 6131 I think you can use "byid" gnokii commands. Please take
>> a look  for them -- they may be more suitable for your purpose. You
>> can just iterate by ids not parsing any strings.
>
> I haven't looked much into the "byid" commands... but I've tried them
> a couple of times, and I always got an error back. As the other
> commands work just fine, I assumed the "byid" commands don't work with
> this model.

I was using them with 6136 which should be similiar.

> Unfortunately I'm not at my box right now to give you the exact
> error... I'll try again later. Anyway, getting an Id back doesn't
> solve the issue of how to distinguish a regular file from a directory,
> or how to avoid doing the recursion myself, at least parsing gnokii
> stdout... unless I'm missing something?

If you can't use libgnokii directly, the easiest way would be to write
simple gnokii-like app that would just do file handling and output
just what you want. Writing such app is a couple of minutes of
copy&pasting from gnokii.

>>> Anyway, ┬┐would it be possible to read the filesystem using Obex, while
>>> the phone is connected with the USB cable in "standard" (*no*
>>> data-transfer) mode?
>>
>> I think so. If FBUS works, Obex should work as well. AFAIR for 6131
>> there's DKU-2 compatible phone. You may lsusb -vvv and see whether
>> Obex end-point is visible.
>
> I don't know if FBUS works. Last time I checked there's no reference

If you are using gnokii files commands, FBUS works.

> to FBUS in /var/log/messages when I plug the phone, but gnokii talks
> to the phone just fine.
> The cable is a CA-53, but yes, I'm using the dku2 "userland" (libusb)
> driver from gnokii.

dku2libusb means use using FBUS.

> On the other hand, I can transfer files from/to the phone using
> bluetooth from GNOME, and I *think* that uses Obex (over bluetooth, of
> course), so yes, the phone itself supports Obex.

Definitely. I mean for both. Bluetooth from GNOME uses Obex. And that
means that phone supports Obex :)

> I don't have any experience making python bindigs for C libraries.
> Using gnokii directly as a module from python would be awesome; my
> current approach (invoking gnokii as a subprocess, and parsing it's
> stdout) is not much fun :p, but I'm not sure if I want to add another
> sub-project to this project (the sub-project would be develop the
> python bindings for gnokii, learning how to do it in the process); at
> least for the time being this "playlist manager" is a personal itch,
> and if I don't see some usable results in the short term, I know I
> would lost the interest in doing it.
> But then again, maybe making the bindings is as easy as anything else
> in Python ;) I should investigate that a little.

To be honest Python bindings are longstanding on the TODO list and I'm
looking for someone who would lead development in that direction. The
other way around is helping in developing dbus daemon and exposing all
libgnokii functionality into dbus. That would make equally easy python
development.

take care,
pkot
-- 
Pawel Kot




reply via email to

[Prev in Thread] Current Thread [Next in Thread]