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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Athanasios Silis
Hello there,
this is my first attempt to use gnokii and have not have luck with the write command. Note that I have seen in the wiki that Nokia 6303i seems to fail when writing to, but I am stuck even before that.

what I have:
slackware64 v14.0, with kernel 3.2.29.
gnokii --version = 0.6.31

I have been trying several different access methods:

$HOME/.gnokiirc
[global]
model =  6510
port = 1
connection = dku2libusb

[phone_1]
model = AT
connection = serial
port = /dev/ttyACM0

[phone_2]
model = 6510
connection = dku2libusb
port = 1

[phone_3]
model = series40
connection = dku2libusb
port = 1

[phone_4]
#to use do: ifconfig usbpn0 up , before you exec gnokii
port = usbpn0

model = series40
connection = phonet

[phone_5]
#to use do: ifconfig usbpn0 up , before you exec gnokii
port = usbpn0
model = 6510
connection = phonet

[logging]
debug = on

with [phone_1] I can identify correctly the phone over a CA-101 nokia usb cable. I can also read the phonebook contents. unfortunately trying to write a single vCard to the nokia6303i phone fails.

The vCard is the following
BEGIN:VCARD
VERSION:2.1
FN:Name Surname
N:Surname;Name
EMAIL;CHARSET=UTF-8;ENCODING=[hidden email]
TEL;TYPE=CELL:+10123456789
TEL;TYPE=CELL:+19876543210
END:VCARD
and the command and command output (omitting the huge log dump)
# cat testVCard.vcf | gnokii --phone 1 --writephonebook -m ME -f -v
....
..after a while..
....
Write Succeeded: memory type: ME, loc: 834, name: Name Surname, number:

Write failed (Data format is not valid.): memory type: ME, loc: 2, name: , number:
Serial device: closing device

In the end the contact seems to have been created in the phone's list, but it is empty (ie no fields such as numbers and emails have been created). I have seen they had problems writing to phonebook in the gnokii Nokia6303Config site as well.
 
With phone_4 configuration (phonet) and phone_5 , I receive the same error in the end of the command , but this time the 1st phonenumber HAS been saved in the phonebook ! ( i wish more would...). so it looks like there is support for basic phonebook over the "phonet" connection. Is that a correct conclusion? In such a case, how can I use "enhanced" phonebook funcctionality?

Now I am trying to get the dku2libusb to work.
I assume I have to remove the "acm" and "phonet" modules first: "modprobe -r cdc_acm , cdc_phonet , phonet" , and then

# gnokii --phone 2 --identify
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.


what is going on with dku2libusband It does not work? Am I using it wrongly in some way?
Any ideas ?

Please note that with "gammu" and the "at" connection, I have managed to copy a contact along with its 1st (only) phonenumber, ie the same thing I managed with "gnokii --phone [4|5]" connections. but here I am using the phonet driver.

What is even more frustrating is that in a windows PC with nokia PC suite I have managed to copy this vCard correctly and fully to the phone. Is there a way to do the same using linux and gnokii ??

Thank you in advance for your help






_______________________________________________
gnokii-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/gnokii-users
Reply | Threaded
Open this post in threaded view
|

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

Daniele Forsi-2
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
[hidden email]
https://lists.nongnu.org/mailman/listinfo/gnokii-users
Reply | Threaded
Open this post in threaded view
|

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

Athanasios Silis
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 <[hidden email]> 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
[hidden email]
https://lists.nongnu.org/mailman/listinfo/gnokii-users


_______________________________________________
gnokii-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/gnokii-users
Reply | Threaded
Open this post in threaded view
|

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

Athanasios Silis
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=[hidden email]
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 ([hidden email]).
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 <[hidden email]> 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 <[hidden email]> 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
[hidden email]
https://lists.nongnu.org/mailman/listinfo/gnokii-users



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