gnokii-users
[Top][All Lists]
Advanced

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

Re: Bluetooth + 6820 + 6310i


From: Pawel Kot
Subject: Re: Bluetooth + 6820 + 6310i
Date: Wed, 12 Jan 2005 21:42:17 +0100 (CET)

On Wed, 12 Jan 2005, Pere Martinez wrote:

> the very firsts entries are writed quick but over 20 and up (I have
> 375 entries) are sloooow, until the timeout is raised. At entry ~40.

Any debug log to see what's happening? I have stable transfer to my 6310.

> Changed the timeout in /usr/bin/gnokii from 30 -> 300. Now the timeout
> is raised at ~140.

Oh, you have debian. Ignore /usr/bin/gnokii. Use the gnokii binary.

> I think is due to -f for find a free slot. Without the -f all entries
> are writed over slot 1.

You may give a desired location witin vCard file. But indeed -f is
currently a bit silly.

> Now my solution is a python program:
>
> # Programa per gravar KABC --> 6820
>
> fitemp = '/home/pere/temp.vcf' # If exists is deleted !
> fivcf = '/home/pere/.kde/share/apps/kabc/std.vcf'
> gnokii = 'iconv -f utf8 -t iso8859-15 '+ fitemp + '| gnokii
> --writephonebook -o -m ME -n %s -v'
>
> os.system('gnokii --deletephonebook ME 1 end')
> pos = 1
> fitobert = False
> f = open(fivcf)
> for lin in f.readlines():
>     if lin[0:11] == 'BEGIN:VCARD':
>         # Borro fit. temp. Obro de nou
>         g = open(fitemp, 'w')
>         fitobert = True
>     if fitobert:
>         g.write(lin)
>     if lin[0:9] == 'END:VCARD':
>         # Tanco fitxer. Llenço gnokii. Incremento pos
>         g.close()
>         fitobert = False
>         os.system(gnokii % str(pos))
>         pos = pos+1
> f.close()
>
>
> but this is also slooow due to connect/disconnect for each card.

If you can remove all entries and then write them all, add the
sequent position in vcf.

pkot
-- 
p k o t a t b e z s e n s u d o t p l
http://www.gnokii.org/




reply via email to

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