Nokia C2-01 address book backup

I had to backup the address book of a Nokia C2-01 phone recently, and I used gnokii to accomplish this task.



Connecting the phone via USB cable works if you select "PC Suite" as "USB data cable mode" setting. dmesg will show the following:

usb 2-1.2: new full-speed USB device number 16 using ehci-pci
usb 2-1.2: New USB device found, idVendor=0421, idProduct=054b
usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-1.2: Product: Nokia C2-01
usb 2-1.2: Manufacturer: Nokia
usb 2-1.2: SerialNumber: 351936058689621
cdc_acm 2-1.2:1.4: ttyACM0: USB ACM device

Put the following configuration into ~/.config/gnokii/config:

port = /dev/ttyACM0
model = AT
connection = serial

Test the connection with $ gnokii --identify.


You can connect the phone via bluetooth to the computer. Use the following configuration:

model = AT
connection = bluetooth
port = AA:BB:CC:DD:EE:FF

Test the connection with $ gnokii --identify.

Phone book download

I found the following phone book memory types to be supported:

Phone's own number storage
SIM card number storage
Calls: Dialled numbers
Calls: Missed numbers
Calls: Received numbers
Calls: Fixed numbers

Downloading is possible in multiple formats. The normal format is plain text:

$ gnokii --getphonebook ME 1 end
1. Name: Foo Bar
Caller group: None
Number: 0123456789

Use --vcard to get the data in a re-usable format:

$ gnokii --getphonebook ME 1 end --vcard
FN:Foo Bar
N:Foo Bar

Only the first number of an address book entry will be exported. You will lose the others if a contact has multiple numbers.

--raw phonebook export does not help.

gnokii generally supports multiple numbers per contact, so I suspected an issue with the phone itself. Debugging did reveal that the phone simply does only send the first number for each contact. I added the following debug settings to gnokiirc:

debug = on
rlpdebug = on
xdebug = on

Find more information on the gnokii wiki Nokia C2-01 page.

Full phone backup

Losing data was no option, so I went another route to obtain the full address book: A full phone backup.

For this I had to insert a MicroSD card into the phone and could then use Settings -> Sync and Backup -> Create backup.

Creating the backup with all the SMS messages took some 30 minutes, but in the end I had a .vcf file for each contact within the /predefhiddenfolder/backup/WIP/32/contacts/ folder in the backup .zip file.

Then I created a big file with all of the contacts and uploaded it to ownCloud as before (note that you will get duplicates, so better clean the ownCloud address book before):

$ cd /predefhiddenfolder/backup/WIP/32/contacts/
$ cat *.vcf > ~/all-phone-contacts.vcf

Written by Christian Weiske.

Comments? Please send an e-mail.