Re: [gnokii] writephonebook command on a nokia 6303i, with various different connections. it fails more or less with all

Athanasios Silis <[email protected]> Mon, 25 Jul 2016 01:18:43 +0300
Newsgroups gmane.linux.drivers.gnokii
Message-ID <CADgchnuYq_oJjjo8wy6VENaX4_gMheR_HAB9GoOTsphFSbM0yA@mail.gmail.com>
ok running with the "phonet" driver, I managed to copy all data from the
specific vCard (this was not possible before), still it says that the
command has "failed" at the end.


# cat test.cvf | gnokii --phone 5 --writephonebook -m ME -n 833 -v
GNOKII Version 0.6.31
LOG: debug mask is 0x1
Config read from file /root/.gnokiirc.
phone instance config:
model = 6510
port = usbpn0
connection = phonet
initlength = default
serial_baudrate = 19200
serial_write_usleep = -1
handshake = software
require_dcd = 0
smsc_timeout = 10
rfcomm_channel = 0
sm_retry = 0
Connecting
overrun: 1010 0
Serial device: opening device usbpn0
Getting model...
Message sent: 0x1b / 0x0006
00 01 00 07 01 00                               |
Message received: 0x1b / 0x003a
00 00 00 08 00 01 58 34 00 30 56 20 30 37 2e 31 |       X4 0V 07.1
30 0a 32 35 2d 30 33 2d 31 30 0a 52 4d 2d 36 33 | 0 25-03-10 RM-63
38 0a 28 63 29 20 4e 6f 6b 69 61 20 20 20 20 20 | 8 (c) Nokia
20 20 20 20 20 20 20 0a 48 00                   |         H
Received message type 1b
model length: 6
Received model RM-638
strings[0] = BEGIN:VCARD
strings[1] = VERSION:2.1
strings[2] = FN:Test Tester
strings[3] = N:Tester;Test;;;
strings[4] = EMAIL;TYPE=INTERNET:[email protected]
strings[5] = TEL;TYPE=CELL:+450123456789
strings[6] = TEL;TYPE=CELL:+950123456789
strings[7] = item1.URL:http\://www.google.com/profiles/546513246513249897654
strings[8] = item1.X-ABLabel:PROFILE
strings[9] = END:VCARD
Reading phonebook location 833 from memory 0x05
Message sent: 0x03 / 0x0012
00 01 00 07 01 01 00 01 02 05 00 00 00 00 03 41 |                A
00 00                                           |
Message received: 0x03 / 0x000e
45 0d 00 08 00 01 0f 00 00 08 33 00 00 00       | E         3
Received message type 03
Writing phonebook entry Test Tester...
Message sent: 0x03 / 0x00b2
00 01 00 0b 00 01 01 00 00 10 02 05 03 41 00 00 |              A
00 00 00 00 00 05 07 00 00 1c ff 16 00 54 00 65 |              T e
00 73 00 74 00 20 00 54 00 65 00 73 00 74 00 65 |  s t   T e s t e
00 72 1e 00 00 08 ff 01 00 55 08 00 00 30 ff 2a |  r       U   0 *
00 74 00 65 00 73 00 74 00 2e 00 74 00 65 00 73 |  t e s t . t e s
00 74 00 65 00 72 00 40 00 67 00 6d 00 61 00 69 |  t e r @ g m a i
00 6c 00 2e 00 63 00 6f 00 6d 0b 00 00 24 ff 03 |  l . c o m   $
00 00 00 1a 00 2b 00 34 00 35 00 30 00 31 00 32 |      + 4 5 0 1 2
00 33 00 34 00 35 00 36 00 37 00 38 00 39 0b 00 |  3 4 5 6 7 8 9
00 24 ff 03 00 00 00 1a 00 2b 00 39 00 35 00 30 |  $       + 9 5 0
00 31 00 32 00 33 00 34 00 35 00 36 00 37 00 38 |  1 2 3 4 5 6 7 8
00 39                                           |  9
Message received: 0x03 / 0x000e
00 00 00 0c 00 01 0f 00 00 08 3d 00 00 00       |           =
Received message type 03
response 0x10 error 0x3d
Writing failed. Falling back to a new method.
Misconfiguration in the phone table detected.
Please report to gnokii ml ([email protected]).
Model (null) ((null)) is series40 3rd+ Edition.
Writing phonebook entry Test Tester...
Message sent: 0x03 / 0x00ae
00 01 00 0b 00 01 01 00 00 10 02 05 03 41 00 00 |              A
00 00 00 00 00 05 47 00 00 12 ff 0c 00 54 00 65 |       G      T e
00 73 00 74 00 65 00 72 46 00 00 0e ff 08 00 54 |  s t e rF      T
00 65 00 73 00 74 08 00 00 30 ff 2a 00 74 00 65 |  e s t   0 * t e
00 73 00 74 00 2e 00 74 00 65 00 73 00 74 00 65 |  s t . t e s t e
00 72 00 40 00 67 00 6d 00 61 00 69 00 6c 00 2e |  r @ g m a i l .
00 63 00 6f 00 6d 0b 00 00 24 ff 03 00 00 00 1a |  c o m   $
00 2b 00 34 00 35 00 30 00 31 00 32 00 33 00 34 |  + 4 5 0 1 2 3 4
00 35 00 36 00 37 00 38 00 39 0b 00 00 24 ff 03 |  5 6 7 8 9   $
00 00 00 1a 00 2b 00 39 00 35 00 30 00 31 00 32 |      + 9 5 0 1 2
00 33 00 34 00 35 00 36 00 37 00 38 00 39       |  3 4 5 6 7 8 9
Message received: 0x03 / 0x001e
00 00 00 0c 00 02 04 00 00 10 04 00 03 41 00 00 |              A
08 7f 05 00 00 00 7e 00 00 08 00 00 00 03       |       ~
Received message type 03
Write Succeeded: memory type: ME, loc: 833, name: Test Tester, number:
Write failed (Data format is not valid.): memory type: ME, loc: 834, name:
, number:
Serial device: closing device
root@stargaze:/home/nass/workstuff/dev/gnokii/gnokii#


by removing the same kernel modules and executing the same command with
dku2libusb

# cat test.cvf | gnokii --phone 2 --writephonebook -m ME -n 832 -v
GNOKII Version 0.6.31
LOG: debug mask is 0x1
Config read from file /root/.gnokiirc.
phone instance config:
model = 6510
port = 1
connection = dku2libusb
initlength = default
serial_baudrate = 19200
serial_write_usleep = -1
handshake = software
require_dcd = 0
smsc_timeout = 10
rfcomm_channel = 0
sm_retry = 0
Connecting
overrun: 1010 0
Serial device: opening device USB
Ignoring extra header, type 171, length 5
Found FBUS interface
Ignoring extra header, type 171, length 5
Found FBUS interface
Ignoring extra header, type 171, length 5
Found FBUS interface
Getting model...
Message sent: 0x1b / 0x0006
00 01 00 07 01 00                               |
Message sent: 0x1b / 0x0006
00 01 00 07 01 00                               |
Message sent: 0x1b / 0x0006
00 01 00 07 01 00                               |
Serial device: closing device
Telephone interface init failed: Command timed out.
Quitting.
Command timed out.

still no luck (if I use the command correctly)

On Mon, Jul 25, 2016 at 12:49 AM, Athanasios Silis <
[email protected]> wrote:

> Hi there,
> before proceeding with what you suggest, I need to know if the steps I
> have performed so far are correct.
> For example did I remove the correct modules iin order to test dku2libusb?
> is there something else I should do?
>
> thank you
>
> On Sun, Jul 24, 2016 at 10:18 PM, Daniele Forsi <[email protected]> wrote:
>
>> 2016-07-24 19:01 GMT+02:00 Athanasios Silis:
>>
>> > gnokii --version = 0.6.31
>>
>> > and the command and command output (omitting the huge log dump)
>>
>> relased version and no log -> retry with the git version
>> http://gnokii.org/git.shtml and show log if it doesn't work
>>
>> there is also a file-based tool called phonebook_convert with which
>> you can check if libgnokii is able to read and write the information
>> you are interested in; use this too with the git version of libngnokii
>>
>>
>> http://git.savannah.gnu.org/cgit/gnokii/gnokii-extras.git/tree/snippets/phonebook
>>
>> --
>> Daniele Forsi
>>
>> _______________________________________________
>> gnokii-users mailing list
>> [email protected]
>> https://lists.nongnu.org/mailman/listinfo/gnokii-users
>>
>
>

_______________________________________________
gnokii-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/gnokii-users