gnokii-users
[Top][All Lists]
Advanced

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

Re: gnokii 0.5.10, 6310i, 3 bugs regarding vcard format


From: Costin Grigoras
Subject: Re: gnokii 0.5.10, 6310i, 3 bugs regarding vcard format
Date: Sun, 15 Feb 2004 15:21:31 +0200
User-agent: KMail/1.6

1. 
# gnokii --getphonebook ME 1 1 -v > 1.vcf
GNOKII Version 0.5.10
Opened configuration file /root/.gnokiirc
Added new section global
Adding key/value port//dev/ircomm0
Adding key/value model/6510
Adding key/value initlength/default
Adding key/value connection/irda
Adding key/value bindir//usr/sbin/
Adding key/value use_locking/yes
Adding key/value serial_baudrate/115200
Adding key/value require_dcd/0
Adding key/value smsc_timeout/10
Added new section connect_script
Adding key/value TELEPHONE/12345678
Added new section disconnect_script
phone instance config:
model: 6510
port_device: /dev/ircomm0
connection_type: 4
init_length: 0
serial_baudrate: 115200
serial_write_usleep: -1
hardware_handshake: 0
require_dcd: 0
smsc_timeout: 100
connect_script:
disconnect_script:
Connecting
Serial device: opening device /dev/ircomm0
Nokia 6310i     6ac2
Getting model...
Message sent: 0x1b / 0x0006
00 01 00 07 01 00                               |
Message received: 0x1b / 0x0032
01 2f 00 08 00 01 58 2d 00 26 56 20 35 2e 35 30 |  /    X- &V 5.50
20 20 20 20 20 0a 30 33 2d 30 33 2d 30 33 0a 4e |       03-03-03 N
50 4c 2d 31 0a 28 63 29 20 4e 4d 50 2e 0a 42 00 | PL-1 (c) NMP. B
00 00                                           |
Received message type 1b
model length: 5
Received model NPL-1
Reading phonebook location (1)
Message sent: 0x03 / 0x0012
00 01 00 07 01 01 00 01 02 05 00 00 00 00 00 01 |
00 00                                           |
Message received: 0x03 / 0x005e
01 52 00 08 00 01 01 00 00 10 00 05 00 01 00 00 |  R
00 00 00 00 00 03 07 00 00 20 01 1a 00 41 00 63 |              A c
00 61 00 73 00 61 00 20 00 2d 00 20 00 6d 00 61 |  a s a   -   m a
00 6d 00 61 00 00 1e 00 00 08 02 01 00 00 0b 00 |  m a
00 20 03 03 00 00 00 16 00 30 00 37 00 32 00 33 |          0 7 2 3
00 36 00 31 00 30 00 35 00 38 00 30 00 00       |  6 1 0 5 8 0
Received message type 03
Received phonebook info
Blockstart: 0x07
   Name: Acasa - mama
Blockstart: 0x1e
   Group: 0
Blockstart: 0x0b
   Type: 3 (03)
   Number: 0723610580
Serial device: closing device


# cat 1.vcf
BEGIN:VCARD
VERSION:3.0
FN:Acasa - mama
TEL;VOICE:0723610580
X_GSM_STORE_AT:ME1
X_GSM_CALLERGROUP:0
TEL;CELL:0723610580
END:VCARD


# gnokii --writephonebook -v < 1.vcf
GNOKII Version 0.5.10
Opened configuration file /root/.gnokiirc
Added new section global
Adding key/value port//dev/ircomm0
Adding key/value model/6510
Adding key/value initlength/default
Adding key/value connection/irda
Adding key/value bindir//usr/sbin/
Adding key/value use_locking/yes
Adding key/value serial_baudrate/115200
Adding key/value require_dcd/0
Adding key/value smsc_timeout/10
Added new section connect_script
Adding key/value TELEPHONE/12345678
Added new section disconnect_script
phone instance config:
model: 6510
port_device: /dev/ircomm0
connection_type: 4
init_length: 0
serial_baudrate: 115200
serial_write_usleep: -1
hardware_handshake: 0
require_dcd: 0
smsc_timeout: 100
connect_script:
disconnect_script:
Connecting
Serial device: opening device /dev/ircomm0
Nokia 6310i     6ac2
Getting model...
Message sent: 0x1b / 0x0006
00 01 00 07 01 00                               |
Message received: 0x1b / 0x0032
01 2f 00 08 00 01 58 2d 00 26 56 20 35 2e 35 30 |  /    X- &V 5.50
20 20 20 20 20 0a 30 33 2d 30 33 2d 30 33 0a 4e |       03-03-03 N
50 4c 2d 31 0a 28 63 29 20 4e 4d 50 2e 0a 42 00 | PL-1 (c) NMP. B
00 00                                           |
Received message type 1b
model length: 5
Received model NPL-1
Reading phonebook location (0)
Message sent: 0x03 / 0x0012
00 01 00 07 01 01 00 01 02 ff 00 00 00 00 00 00 |
00 00                                           |
Message received: 0x03 / 0x000e
01 52 00 08 00 01 0f 00 00 08 31 00 00 00       |  R        1
Received message type 03
Error (Unknown error - well better than nothing!!)
Serial device: closing device


if instead of "-v" i use the raw format everything si just fine :


# cat 1.raw
Acasa - mama;0723610580;ME;1;0;11;3;3;0723610580

# gnokii --writephonebook -o < 1.raw
GNOKII Version 0.5.10
Opened configuration file /root/.gnokiirc
Added new section global
Adding key/value port//dev/ircomm0
Adding key/value model/6510
Adding key/value initlength/default
Adding key/value connection/irda
Adding key/value bindir//usr/sbin/
Adding key/value use_locking/yes
Adding key/value serial_baudrate/115200
Adding key/value require_dcd/0
Adding key/value smsc_timeout/10
Added new section connect_script
Adding key/value TELEPHONE/12345678
Added new section disconnect_script
phone instance config:
model: 6510
port_device: /dev/ircomm0
connection_type: 4
init_length: 0
serial_baudrate: 115200
serial_write_usleep: -1
hardware_handshake: 0
require_dcd: 0
smsc_timeout: 100
connect_script:
disconnect_script:
Connecting
Serial device: opening device /dev/ircomm0
Nokia 6310i     6ac2
Getting model...
Message sent: 0x1b / 0x0006
00 01 00 07 01 00                               |
Message received: 0x1b / 0x0032
01 2f 00 08 00 01 58 2d 00 26 56 20 35 2e 35 30 |  /    X- &V 5.50
20 20 20 20 20 0a 30 33 2d 30 33 2d 30 33 0a 4e |       03-03-03 N
50 4c 2d 31 0a 28 63 29 20 4e 4d 50 2e 0a 42 00 | PL-1 (c) NMP. B
00 00                                           |
Received message type 1b
model length: 5
Received model NPL-1
Writing phonebook entry Acasa - mama...
Message sent: 0x03 / 0x005a
00 01 00 0b 00 01 01 00 00 10 02 05 00 01 00 00 |
00 00 00 00 00 03 07 00 00 1e ff 18 00 41 00 63 |              A c
00 61 00 73 00 61 00 20 00 2d 00 20 00 6d 00 61 |  a s a   -   m a
00 6d 00 61 1e 00 00 08 ff 01 00 55 0b 00 00 1e |  m a       U
ff 03 00 00 00 14 00 30 00 37 00 32 00 33 00 36 |        0 7 2 3 6
00 31 00 30 00 35 00 38 00 30                   |  1 0 5 8 0
Message received: 0x03 / 0x0016
01 52 00 0c 00 01 04 00 00 10 03 00 00 01 00 00 |  R
00 00 05 00 00 00                               |
Received message type 03
Write Succeeded: memory type: Internal memory, loc: 1, name: Acasa - mama, 
number: 0723610580
Serial device: closing device





2. 
# gnokii --getcalendarnote 1 1 -v > 1.vcf
GNOKII Version 0.5.10
Opened configuration file /root/.gnokiirc
Added new section global
Adding key/value port//dev/ircomm0
Adding key/value model/6510
Adding key/value initlength/default
Adding key/value connection/irda
Adding key/value bindir//usr/sbin/
Adding key/value use_locking/yes
Adding key/value serial_baudrate/115200
Adding key/value require_dcd/0
Adding key/value smsc_timeout/10
Added new section connect_script
Adding key/value TELEPHONE/12345678
Added new section disconnect_script
phone instance config:
model: 6510
port_device: /dev/ircomm0
connection_type: 4
init_length: 0
serial_baudrate: 115200
serial_write_usleep: -1
hardware_handshake: 0
require_dcd: 0
smsc_timeout: 100
connect_script:
disconnect_script:
Connecting
Serial device: opening device /dev/ircomm0
Nokia 6310i     6ac2
Getting model...
Message sent: 0x1b / 0x0006
00 01 00 07 01 00                               |
Message received: 0x1b / 0x0032
01 2f 00 08 00 01 58 2d 00 26 56 20 35 2e 35 30 |  /    X- &V 5.50
20 20 20 20 20 0a 30 33 2d 30 33 2d 30 33 0a 4e |       03-03-03 N
50 4c 2d 31 0a 28 63 29 20 4e 4d 50 2e 0a 42 00 | PL-1 (c) NMP. B
00 00                                           |
Received message type 1b
model length: 5
Received model NPL-1
Getting calendar note...
Read 0 of 0 calendar entries
Message sent: 0x13 / 0x0006
00 01 00 3a ff fe                               |    :
Message received: 0x13 / 0x002e
01 4a 00 3b 00 13 13 07 00 2c 00 06 00 07 00 08 |  J ;     ,
00 09 00 12 00 0a 00 10 00 24 00 21 00 22 00 23 |          $ ! " #
00 25 00 0b 00 0e 00 0c 00 26 00 11 00 0d       |  %       &
Received message type 13
Calendar Notes Info received!
 Total count: 19
Location of Notes: 44 6 7 8 9 18 10 16 36 33 34 35 37 11 14 12 38 17 13
Message sent: 0x19 / 0x0004
00 01 00 0a                                     |
Message received: 0x19 / 0x0016
01 28 00 0b 01 02 01 0c 01 03 07 d4 02 0f 0f 10 |  (
26 00 04 04 01 00                               | &
Received message type 19
Incoming clock!
Date/Time received!
Message sent: 0x13 / 0x0006
00 01 00 19 00 2c                               |      ,
Message received: 0x13 / 0x0026
01 4a 00 1a 00 2c 04 00 07 d0 02 17 00 00 00 00 |  J   ,
c4 de 07 8e 00 08 00 42 00 75 00 6e 00 69 00 20 |        B u n i
00 41 00 6e 00 69                               |  A n i
Received message type 13
alarm: 50398
Serial device: closing device


# cat 1.vcf
BEGIN:VCALENDAR
VERSION:1.0
BEGIN:VEVENT
CATEGORIES:SPECIAL OCCASION
SUMMARY:Buni Ani
DTSTART:19340223T000000
AALARM:20000223T075902
END:VEVENT
END:VCALENDAR

# gnokii --writecalendarnote 1.vcf 1
GNOKII Version 0.5.10
Opened configuration file /root/.gnokiirc
Added new section global
Adding key/value port//dev/ircomm0
Adding key/value model/6510
Adding key/value initlength/default
Adding key/value connection/irda
Adding key/value bindir//usr/sbin/
Adding key/value use_locking/yes
Adding key/value serial_baudrate/115200
Adding key/value require_dcd/0
Adding key/value smsc_timeout/10
Added new section connect_script
Adding key/value TELEPHONE/12345678
Added new section disconnect_script
phone instance config:
model: 6510
port_device: /dev/ircomm0
connection_type: 4
init_length: 0
serial_baudrate: 115200
serial_write_usleep: -1
hardware_handshake: 0
require_dcd: 0
smsc_timeout: 100
connect_script:
disconnect_script:
Connecting
Serial device: opening device /dev/ircomm0
Nokia 6310i     6ac2
Getting model...
Message sent: 0x1b / 0x0006
00 01 00 07 01 00                               |
Message received: 0x1b / 0x0032
01 2f 00 08 00 01 58 2d 00 26 56 20 35 2e 35 30 |  /    X- &V 5.50
20 20 20 20 20 0a 30 33 2d 30 33 2d 30 33 0a 4e |       03-03-03 N
50 4c 2d 31 0a 28 63 29 20 4e 4d 50 2e 0a 42 00 | PL-1 (c) NMP. B
00 00                                           |
Received message type 1b
model length: 5
Received model NPL-1
Text: Buni Ani
Message sent: 0x13 / 0x0004
00 01 00 31                                     |    1
Message received: 0x13 / 0x000a
01 4a 00 32 00 32 00 00 00 32                   |  J 2 2   2
Received message type 13
First free position received: 50!
Count after padding = 32
Message sent: 0x13 / 0x0020
00 01 00 07 00 32 08 00 07 8e 02 17 00 00 08 00 |      2
00 42 00 75 00 6e 00 69 00 20 00 41 00 6e 00 69
Message received: 0x13 / 0x000a
01 4a 00 08 00 32 01 00 00 32                   |  J   2   2
Received message type 13
Attempt to write calendar note at 50. Status: 0
Failed to write calendar note: Command failed.
Serial device: closing device

the fix for 2. is :
> but, if I change OCCASION to OCASSION then the upload works ok


thank you,

.costin


On Sunday 15 February 2004 14:40, address@hidden wrote:
> Hi Costin,
>
> I'll review th eproblems you described, but I'd appreciate if you'd send
> debug output when trying to write things.
>
> > 4. (i don't know if this is a gnokii or kdepim problem but)
> > synchronization between kaddressbook (kde 3.2) and the phone is broken,
> > kaddressbook segfaults when trying to synchronize.
>
> This may be either some bug in implementing it in KDE or library
> incompatibility. Or something. Backtracing the kaddressbook core would say
> you where the problem lies. You may also try knokiisync to do the job.
>
> pkot




reply via email to

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