[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bluetooth + 6820 + 6310i
From: |
Pere Martinez |
Subject: |
Re: Bluetooth + 6820 + 6310i |
Date: |
Thu, 13 Jan 2005 09:47:44 +0100 |
Thanks Pawel for your work and assistance.
Go for include in each card a "X_GSM_STORE_AT" line...
On Wed, 12 Jan 2005 21:42:17 +0100 (CET), Pawel Kot <address@hidden> wrote:
> 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/
>