View Single Post
Old 12-24-2020, 05:35 AM   #2052
Barruel
Enthusiast
Barruel began at the beginning.
 
Posts: 47
Karma: 10
Join Date: Jan 2020
Device: 3 x Kobo Clara HD, Kindle Paperwhite 3 Manga Edition
Quote:
Originally Posted by davidfor View Post
The plugin gets the serial number from the file "version" in the .kobo directory on the device. This also has other information such a the firmware version. The firmware does update this and I'm surprised it hasn't for the cloned device. It might only happen during an sync, or periodically. But, if you delete it, the device should recreate it with the current serial number. Which is what should be displayed in the Device information page of the settings.

The UUID is from the deviceinfo.metadata file. This is created by calibre when the device is first seen. If you copy it to another device, it should be used with no problems. When you add the device in the plugins configuration, it also stores the serial number. If you delete the deviceinfo.metadata file, calibre will create a new one with a different UUID the next time the device is connected. Then, delete the existing devices from the plugins configuration and add them again. That should get the plugin seeing them as separate devices.

The auto-backup should be using the serial number from the version file. It is possible it is using the one from the configuration, but, I don't think so. I'll check when I have a chance.
Thank you very much, David.

I updated the firmware after flashing the sd image and the version file had the correct serial number, so it had to be file deviceinfo.metadata (which I found in the root of the device as driveinfo.metadata). I just deleted that file and now all 3 Claras are detected as different devices.

It seems that the plugin is looking at that file and saving the settings as belonging to the uuid in it. After it has it saved to Kobo utilities.json, it just reads driveinfo.metadata and looks at the version file only when saving the backup, but not at plugin startup. That explains why the backups had the correct s/n but 2 of my devices were being detected as the same device having the same s/n. Is it possible?

Last edited by Barruel; 12-24-2020 at 05:42 AM.
Barruel is offline