|Do you know where your variables are?|
Migrate phone numbers from Nokia 6303c to Nokia 216 then to CAT B30, or the quest for a sane phoneby ambrus (Abbot)
|on Nov 06, 2018 at 22:23 UTC||Need Help??|
For a very long time, I've been using a Nokia 6303 classic phone. I was very satisfied with that phone. the built-in camera made good photos, I could use the music player to listen to music through headphones, and the user interface was usable.
You may recall that back in 2016, I even wrote a perl script to decode the contact lists after that phone backs it up into a zip file (with .NBF extension) containing indivdual files for each contact. That script exports phonebook entries into a semicolon-separated file with lines like this:
That's a simple entry. Some lines list additional data, such as multiple phone numbers and possibly text notes in the same entry separated by a semicolon. I never figured out how to make a backup file that the phone could import though. In fact I once had to restore all the backups by hand.
In 2017-11, I bought a Nokia 216 as a spare phone, because I figured that if I lose my phone or it becomes non-functional, I'd like to have a spare phone at hand immediately. That one only has a much worse camera, but that didn't matter anymore, because I had a pretty good compact camera now. I charged the phone and verified that it worked, then put it in a drawer.
In <s>(2018-08)</s> 2018-06, I lost the Nokia 6303. I cleaned it with too much water, which in itself wouldn't have been a problem, but I then put the battery back in the phone before it dried properly. The phone turned on, but went off after a few seconds, and I couldn't revive it after drying. I'd like to add that this was the second time the phone got wet, it has survived falling into the toilet once before.
So I mourned for the old phone, but was happy that I had the foresight to have bought a replacement earlier. For a few days.
I actually also had the foresight to have most of the important phone numbers copied to the SIM card, so I could transfer those phone numbers to the new phone by copying from that, and entered a few more important ones from the dump of the backup, so I had like fifty important phone numbers in the phone. You may ask why I don't just transfer all phone numbers through SIM cards then, since SIM cards are pretty cheap, and I have several old spare ones in my drawer. The problem is that the contact list stored on SIM cards has some big limitations: names can't be longer than about 15 bytes (some characters take more than one byte, I don't know the exact rule), the card can only store 250 contacts (I already had more than that back then), and the card can't store additional information such as notes.
Anyway, I at least got a phone that I could use for a temporary basis, and transfering the whole contact list was something that could wait a few days. But since I actually tried to use the phone for other tasks, and it turned out to be a disaster.
It only took a few days to find out how terrible the user interface of the Nokia 216 was. How I raged!
The way button presses are assigned are bad everywhere, but especially for the main screen and locked state are terrible. Not only do I have to press much more buttons to do the same thing than on the 6303, but it's also close to impossible to use the phone without looking at it all the time. I specifically chose a phone with a keypad that isn't completely flat, so that I can type messages blindly. Finding that I have to constantly look at the display for much more operations than in the 6303 was bad.
The phone doesn't know how to assign separate ringtones for different people. It insists that I can only use one ringtone for everyone. On the 6303, I used four different ringtones, with different family members assigned to three different ones, and everyone else on a fourth ringtone by default.
The messages menu is terrible. You can accidentally get messages you are writing into a state where they're still in the phone, but all you can do with it is retry sending to an invalid phone number or delete, you can't view or edit the message, you have to retype it.
The music player is practically unusuable, because it can't play an album with the tracks in order, even in albums that I have encoded myself where all the music files have proper meta-information like album name and track number in it, and the filenames are consistent and differ only in a track number that I even zero-padded to two digits. Apparently the phone doesn't even make an effort to sort the tracks, it just plays them in the order they appear in the directory entry or something.
The volume control of the 6303 was bad if you tried to use it through headphones, in that you could listen to music through the headphones loud or very loud, but quietly, but the volume control of the 216 is even worse. It doesn't matter much for music, which I can't listen to anyway, but this also makes sure that I can't listen to radio and can't even conveniently make a phone call through the headphones in quiet environment without having to listen to a too loud voice.
The calendar is limited to 25 entries, and each entry can only have 39 characters of text to it. How am I supposed to write the location of a meeting in 39 characters? Use the notes list then, which in the 6303 I used to store shopping lists and other notes like that? You can, for the location and directions of the next meeting, but not for a shopping list, because each note can only be 100 character long. By the way, the contact list also doesn't take notes, you can only enter a name and one phone number to each entry. The name can be 30 character long in theory, but in practice you can use much less than that, because you can only see one line of the name when browsing the phonebook, and you can't scroll the names without trying to edit them. It's like they don't know how to use dynamic allocation for the flash memory, only they certainly do, because the phone still has a camera and can store photos of various sizes.
The phone also doesn't say "Nokia 216" anywhere, not in the sticker under the battery, nor in the interface. I think the phone manufacturers are so ashamed of this phone line that they tried to make sure people don't write bad reviews by releasing a whole line of phones that look confusingly similar to each other, and not writing the type on any of them.
There are only three good things I can say about the Nokia 216: it generally reacts quickly enough to keypresses, it accepts two SIM cards, and it's possible to import a contact list prepared on a computer.
Here's how I imported the contact list. After finding out the limitations of the phone, First, I edited the semicolon-separated backup file to shorten the names and otherwise clean up the list. While I was there, I fixed all the names to have the correct letters, because some of the entries actually had names inherited from one of the two even older phones, which didn't have a full character set, so they had characters like "ŕ" instead of "á" and "ö" instead of "ő" I never bothered to fix that on the 6303, even though that one already supported all letters of Hungarian, and I entered all the new names with the correct characters. Then I used a messy perl script to verify that the list of contacts looks fine, and convert them to the format that the 216 accepts, which I could reverse engineer from an exported contact list in a few tries. Here's the code, with a few details omitted.
This emits a single contacts file in vcard format with entries like this.
Two phone numbers in the same entry are handled by writing it as two entries, but extra notes are discarded.
You must copy that file to the SD card (either with an SD card reader or through a USB cable) as "/Backup/backup.dat", then restore the backup in the settings. Note that this will erase the existing contacts in the memory of the phone (but not the SIM card).
Note also that if you accidentally disconnect the USB cable before pressing the button on the phone to stop acting as a remote drive, then the phone freezes and you must reboot it; and that if you remove the battery of the phone to access the SD card to write it directly instead, then the phone forgets the date and time (on the 6303 you can remove or reinsert the SD card without removing the battery).
Anyway, I eventually set off to try to buy a better phone. That's not easy. It's hard to find reviews of cheap feature phones, or find copies that I can try without having to buy them.
I quickly bought a Nokia 150, which is a later phone in the same line, because the reasoning that I want to have a spare phone at hand just in case anyone happens to my phone still stood, but it turned out to be even worse than the 216, so I never used it as more than a spare. (Incidentally, the same contact list as for the 216 works for the Nokia 150, but there you have to use put the file as "/backup.dat" in the root directory of the SD card instead.)
Eventually in 2018-11, I bought a CAT B30 phone.
This is a spalsh-proof and shock-proof phone for rough handling, which is not a feature I need, but at least it meant that they weren't going for a fancy modern but unusable interface. I haven't used that phone enough to be able to tell how good it is. I know it won't be perfect (eg. it seems that the calendar will be hard to use for an entirely different reason: I can't configure it to display weeks with Monday first, and I never look at headings, I just assume the date number in the leftmost column means Monday), but it seems at least better than the Nokia 216.
So I had to figure out how to move the contact list to the CAT B30 phone.
This one looked easier. This phone actually also uses the vcard format, which sounded promising. I transferred the backup file from the Nokia 216 to the CAT B30 through Bluetooth on the subway ride first. That turns out to not work, because while both the Nokia 216 and the CAT B30 has a file browser that allows you to send files through Bluetooth or move or rename them, the rename function doesn't allow you to change the file extension, the Nokia 216 only writes contacts into files into "Backup\backup.dat", and the CAT B30 reads contacts from files with the extension ".vcf" anywhere on the card.
So I renamed the file extension on the SD card with a computer using the remote disk feature through an USB cable. That gets closer, but still doesn't work: you get the phone numbers imported, but the names are wrong whenever there's any character MIME-quoted in the vcard file, and even spaces are MIME-quoted, so basically all the names are wrong.
But I could fix the file format with a perl script in just one try this time.
Copy the file from the Nokia 216 to the computer. Here I used the default filename "backup.dat" (I actually save the backups in more sensible names including a date so I can distinguish backups, but this is just an example). Get the backup rewritten with this one-liner:
This outputs the records in the correct format for the CAT B30:
Copy the output file ("backup.vcf") onto the CAT B30, and this time you can use any filename and any directory, as long as the extension is ".vcf". Delete the existing phone numbers from the contacts list, because the CAT B30 doesn't do this automatically, it merges the contact list. Then import the contacts from the contacts menu by selecting that file on the SD card.
(This script doesn't handle assigning the custom ringtones to family members directly, I'll set those directly in the phone.)
Update 2019-02-25: I lost the good mobile phone on 2018-06, not on 2018-08 like the text used to state.
Update 2019-03-13: By the way, the CAT B30 is also pretty bad.
Despite the proper hardware of the keypad, it's very hard to type anything because of the stupid software. If you accidentally press another button while a button is already pressed, the second press isn't ignored by the software. That's proper behavior for keyboards, but it's very unusual for a keypad, even early calculators knew to ignore additional button presses while a button was held down, and with tiny keys like on these mobile phones, this is crippling. The contact list doesn't properly sort names (I didn't realize this one at first because the names were sorted when I imported them; it also doesn't just keep them in a fixed order, but I can't figure out the exact behavior). To find the names that aren't in sorted order, you have to scroll all the way to the end of the contact list, but this is difficult because scrolling wraps around from bottom to top but not from top to bottom. Searching in the contact list searches for an exact infix, rather than jump to the prefix or later in the list; and also ignores the first button press when you type your search string.
Update 2019-07-17: also the Bluetooth seems partly broken: the sound keeps cutting off randomly during calls if I try to use a Bluetooth headphone adapter.