10-05-2011, 02:31 PM | #31 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
IIRC the driver scans only the calibre folder in the main memory. I've committed a version that scans the entire memory.
|
10-05-2011, 05:29 PM | #32 |
<Insert Wit Here>
Posts: 1,017
Karma: 1275899
Join Date: Jan 2008
Location: Puget Sound
Device: Kindle Oasis, Kobo Forma
|
I got the main branch checked out after a good couple hours of letting it run. Neither version of the generic driver finds any of the books for me either.
With as little time as I have, I won't really be investigating. The time is better spent interfacing with the DB so it won't have to scan the whole thing most of the time. |
Advert | |
|
10-05-2011, 06:41 PM | #33 |
Zealot
Posts: 108
Karma: 17102
Join Date: Sep 2010
Location: San Diego, CA
Device: PRS-505 600 300 350 T1 T2 Kindle PW1 PW2 KV Clara 2E Libra 2 Leaf 2
|
I figured out how to make it work.
What was happening is that the "metadata.calibre" file was being created when books were added to the reader, filled with the transferred book information. It was still there when calibre was shut down. Then when you fired up calibre again it would replace the contents of "metadata.calibre" with "[]" and show nothing for the device view. The solution was to use the Preferences > Advanced > Plugins > Device Interface plugins > User Defined USB driver (after first disabling the SONY PRST1 driver and using the "Customize plugin" procedure for the User Defined USB driver.) This also now recognizes the memory card and I'm now good to go. Now we need to get collections to work. I also noticed that you do not have to worry about thumbnails when creating a driver. What happens is that the Books.db is populated, along with a thumbnail being created by the Sony reader itself. This happens on the fly when viewing a book list by thumbnail on the reader for the first time. If you do not view the whole list, only the ones you view get generated and are available from then on whenever you view a book list. I'll try to find out how collections are created next and let you know if I discover anything useful. |
10-05-2011, 07:30 PM | #34 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I forgot to add SUPPORT_SUB_DIRS=True to the driver, now fixed.
|
10-05-2011, 07:50 PM | #35 | ||
<Insert Wit Here>
Posts: 1,017
Karma: 1275899
Join Date: Jan 2008
Location: Puget Sound
Device: Kindle Oasis, Kobo Forma
|
Quote:
My own investigations are really to see how close to parity to the 3/6/9xx driver it can be, before coding. And focus on the important stuff first. I'll probably be able to get started on something tonight. Quote:
Collection has the list of actual collections in it. Names and so on. Collections is a series of reference Ids that link books from the 'book' table to collections in the 'collection' table. The catch is that to make the link, the book has to be in the book table. So any driver needs to add the book to the book table, before it can add it to any collections. So the driver will have to be somewhat integrated with the database. This actually a good thing, as it will make the loading of books faster from unplugging, MUCH faster. Last edited by Kolenka; 10-05-2011 at 07:52 PM. |
||
Advert | |
|
10-05-2011, 08:35 PM | #36 |
Enthusiast
Posts: 30
Karma: 22318
Join Date: Oct 2011
Location: New York, USA
Device: Nook STR, Nook Tablet
|
I've also just bought a PRS-T1 and am looking forward to using it with my library of books in Calibre. Sorry for the simple question but which file on that Betas page do I need for Windows 7 (64-bit)?
|
10-05-2011, 11:01 PM | #37 |
...
Posts: 226
Karma: 514506
Join Date: Sep 2011
Device: Sony PRS-T1
|
I'm also interested in first class device driver support for the Sony PRS-T1.
Not sure about calibre architecture or how devices are implemented, and while I try to learn, I will try to help as much as possible testing/reverse engineering. I'm also willing to contribute towards a T1 for any developers committed to working on the driver that Kovid is comfortable with. Last edited by log; 10-06-2011 at 12:19 AM. Reason: rm section that was already in basic driver seems like |
10-06-2011, 12:22 AM | #38 |
<Insert Wit Here>
Posts: 1,017
Karma: 1275899
Join Date: Jan 2008
Location: Puget Sound
Device: Kindle Oasis, Kobo Forma
|
The Sony automatically adds downloads, but it also scans all of internal memory (and the SD card) after an unplug from USB.
|
10-06-2011, 08:36 AM | #39 |
Enthusiast
Posts: 30
Karma: 22318
Join Date: Oct 2011
Location: New York, USA
Device: Nook STR, Nook Tablet
|
Update to my post
I used the .msi file (calibre-0.8.21.msi) and it worked beautifully. Calibre recognized the Reader and I'm up and running. Thank you!
|
10-06-2011, 09:38 AM | #40 | |
...
Posts: 226
Karma: 514506
Join Date: Sep 2011
Device: Sony PRS-T1
|
Quote:
Didn't get a chance to poke around much last night and at work now so will continue this evening. Also did not get to try 0.8.21 beta yet. I didn't realize until now that it included updates after the official release version 0.8.21 so was wondering why calibre didn't detect my device with the basic driver out now |
|
10-06-2011, 11:12 AM | #41 |
<Insert Wit Here>
Posts: 1,017
Karma: 1275899
Join Date: Jan 2008
Location: Puget Sound
Device: Kindle Oasis, Kobo Forma
|
Yeah, deleted books are removed. This has been true of the Sony dating back to the 500/505. Their design is very well thought out. You can use their device withou the desktop software if you choose. Without any software, other than a way to copy/manage files.
I've got the beginnings of a driver on my own machine. It talks to the database to read books right now, and adds books to the database when uploading, although it looks like the entry will have to be complete enough or the Sony 'purges' it on rescanning and removes it from collections. Awesome. No collection support yet, as it is tough with so little time to learn the plugin model, the quirks of SQLite's syntax, and relearn python all at once. I'll also need to learn how the old Sony driver works a bit to understand what may be similar, if anything, in the data stored. Might be able to use some of the time stamp routines if the 650 uses the same time stamps for things. |
10-06-2011, 11:33 AM | #42 | |
Zealot
Posts: 145
Karma: 137186
Join Date: Mar 2009
Device: Sony Reader PRS-500, PRS-600, PRS-650, PRS-T1, PRS-T3
|
Quote:
|
|
10-06-2011, 11:38 AM | #43 |
<Insert Wit Here>
Posts: 1,017
Karma: 1275899
Join Date: Jan 2008
Location: Puget Sound
Device: Kindle Oasis, Kobo Forma
|
There is no XML on the new device, only SQLite databases.
I actually outline how the new stuff works in this thread. Probably have your answers in here already. |
10-06-2011, 08:42 PM | #44 |
...
Posts: 226
Karma: 514506
Join Date: Sep 2011
Device: Sony PRS-T1
|
This evening I've been trying the beta version with "basic" T1 driver support at it's nearly perfect for this device already. The primary use cases for managing books on a ereader work great.
Tested added and removing books to T1, and worked great even for the books I downloaded through Calibre Media Server last night and the status of all of them were "in sync" with my Calibre library. The only minor defect that I wanted to report is that there are actually two volumes that are mounted when enabling Data Transfer Mode on the T1, and only one is unmounted when using the "eject this device" option in calibre. READER and SETTING are the two volumes. READER is the primary volume that calibre is using, and the SETTING volume contains the desktop version of Reader software for Mac and PC. Right now only the READER volume gets unmounted when using "eject this device" in calbire. I think it's great that many want to get out full fledged driver as soon as possible, but to be honest I think most users will be very happy since the core functionality is already supported. Makes sense to take the time needed to get those features right since this Sony firmware, and this sqlite schema is brand new to everyone. |
10-06-2011, 09:10 PM | #45 | |
Zealot
Posts: 149
Karma: 1001622
Join Date: Dec 2009
Device: iPad Mini - Main Reader (iPad 3 backup, iPhone 4s back to my backup)
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Prs 505 Sony and calibre 0.8 | duduche33 | Devices | 3 | 05-12-2011 10:50 AM |
Calibre for Sony prs 350 | Rick1971 | Calibre | 4 | 12-26-2010 12:27 PM |
Calibre and Sony PRS-600 | Archergal5219 | Calibre | 2 | 07-25-2010 12:32 AM |
Sony PRS-505/Sony Connect/Calibre | thesweetone | Sony Reader | 26 | 09-30-2009 03:00 PM |
Calibre and Sony PRS-600 | lukasfikr | Calibre | 10 | 08-26-2009 09:11 PM |