Post Reply 
[A60] New: 1.6-0.2.0
2013-09-05, 08:05 GMT
Post: #51
RE: New: 1.6-0.2.0
(2013-09-05 07:04 GMT)yoshi314 Wrote:  
(2013-09-03 07:29 GMT)polipo1970 Wrote:  ciao,
there is a possibility to see a new update / versions?
I suppose original author dropped the project. I've started looking at it since, getting to know it better.

i'm making small hacks on it, but don't expect miracles - this will take a while, since i am not very familiar with qt4.
[.......]

That sound good.
I use the 1.7 whithout any problem.
I hope you will succeed.
Find all posts by this user
Quote this message in a reply
2013-09-27, 19:55 GMT (This post was last modified: 2013-09-30 07:07 GMT by yoshi314.)
Post: #52
RE: New: 1.6-0.2.0
i've just made a new build based on current booxsdk + boox-opensource git.

Seems to work. Most important things:

- updated coolreader,
- there is an rss-reader app introduced with recent boox-opensource projects, but i never ran it, and i think i did not add it to explorer's applications menu.
- you can integrate your own fonts into the firmware itself.

make a dir extras/fonts in the rootfs dir and put your font files there. make sure not to go too wild with it, i don't know how much free space there is on device.

i've added maybe 5-10 mb of decent eink fonts on my own, didn't seem to break things. I am not sure about their licensing, websites state they are free for use, but font files themselves state otherwise. At least for the fonts i tried - so by default there are no extra fonts provided in the repository.

problems :
- some system messages started to display in Polish (usb connection within coolreader). not a problem for me, but not sure if my build environment didn't influence this.
- i didn't test much else, except for usb connection, and poweron/off yet.

There is no guarantee that it will work at all. I've just reflashed my boox with it, and launched coolreader. Seems to work.

The neat thing is, this coolreader version *should* keep its cache and settings on memcard, not internal flash (which it wrote to a lot), but i have no certainty that it's stable or anything. You will probably have to remove its existing settings first. [ edit : it doesn't seem to work yet. not sure why ]

For brave souls, clone my git copy of the repository : https://github.com/yoshi314/openbooxproj...ree/test01

and prepare your build environment like in the previous version :

http://sourceforge.net/apps/mediawiki/op...nvironment

enter 'rootfs' and run 'make'. It will hopefully proceed without issues, although had one patch i had to redo to make it work, for some odd reason. and building qt once locked up my laptop (maybe it overheated Wink) and corrupted my build.

Make sure to dewolder your device, if you haven't done so already (should be somewhere on the forums). Updating from previous openboox doesn't require dewoldering.

I'd rather not publish a build, since it's still pretty risky. If someone really wants one, i'll provide it, maybe via PM or something.

I also have a few tweaks to explorer's database schema, but not sure if they are beneficial (they did look so in sqlite analyzer). If possible, can you post measurements of how long does it take to navigate the book database on your installs, and how many books do you have in database?

known bugs:

- wifi doesn't work from explorer. to have telnet access, start a web browser. i'll have to investigate that, but there is definitely something about the sdk changes i had to shuffle around.
- some apps provided with onyx binaries will crash on exit. device works from telnet, but doesn't respond to buttons.


- things lock up sometimes. however, the device does not lock up, only the user interface (next thing i'm going to do is to figure this out). if you want to try it out, set device to auto shutdown after a specific amount of time (e.g. 15 minutes). even if ui stops responding, you don't have to reset, simply wait till it shuts down. this way book progress in coolreader is preserved and there is no potential data loss (as far as i can tell).
Find all posts by this user
Quote this message in a reply
2013-10-01, 17:34 GMT (This post was last modified: 2013-10-04 12:07 GMT by yoshi314.)
Post: #53
RE: New: 1.6-0.2.0
I've added a few useful things to explorer
- updated sqlite library
- added ability to clean up the database from books that no longer exist on the card
- added a few indexes to db, which dramatically speeds it up (esp. when opening "Books" menu, when app runs at least 6 queries, and each scans entire books database).

experimentally i also added a vacuum call after cleaning up the db. should work.

If it's stable enough, i'll provide a build against current openboox (not my testing one), for trying out.

I've also noticed that explorer incorrectly parses calibre metadata from recent calibre versions. Maybe something changed in calibre recently, but it does not pick up series nor series index from the books.

for those who know what they are doing - https://github.com/yoshi314/boox-explorer/tree/test01

edit:
- i've modified how calibre data is being read, now all books that have series defined will be available in "by series" listings, also with correct reading of series index numbers (although numbers are multiplied by 10 for now).
- most book listings will display author, read count, and which book of the series they are. it still needs some ironing out, but seems to work fine.

i have to supress those messages if book has no series defined. this change will reinitialize the book database and will require a rescan of books database on first run of the new version.

- book names are prepended by their series index (if defined) in all views. maybe i should make it into an option.


some more ideas i'm planning to do:
- automatically add book metadata into database if it's not found upon opening it (otherwise you won't see the book in 'recently read'. also, an option to update book metadata when it's being opened automatically.
- automatically open last read book on startup.

if someone feels like trying out, i think i'll make a build for openboox 1.6-0.2.0 soonish. now i am trying to do some major debugging on why exactly do various things lock up on updated booxsdk (esp wifi dialog, which also keeps forgetting passwords every time).
Find all posts by this user
Quote this message in a reply
2013-10-07, 08:43 GMT
Post: #54
RE: New: 1.6-0.2.0
I'm waiting. Big Grin

For the moment.... tank you Wink
Find all posts by this user
Quote this message in a reply
2013-10-07, 10:03 GMT
Post: #55
RE: New: 1.6-0.2.0
(2013-10-07 08:43 GMT)polipo1970 Wrote:  I'm waiting. Big Grin

For the moment.... tank you Wink

i'm currently investigating on how to implement the "automatically open last book on startup", but that will require turning over a bit of code in the app to implement an extra settings dialog for it. or maybe i should just force it on by default?

i should make a build of obx_explorer against old openboox in a few days, right now i am investigating funky behavior of wifi on current booxsdk, but if the wifi network connection keeps randomly dying, remote debugging gets a bit problematic :/

if it fails, i'll just stick to older booxsdk and keep experimenting on that base.
Find all posts by this user
Quote this message in a reply
2013-10-07, 10:17 GMT
Post: #56
RE: New: 1.6-0.2.0
Ciao, for me you can make a firmawere without WIFI, I think the WIFI in the A60 it is to much slower for an web use. The A60 is a really ebook reader.
In my opinion the most important points are:
Better management of the library
Ability to take notes (pdf, epub ...)
battery
automatically open last book on startup
Find all posts by this user
Quote this message in a reply
2013-10-07, 11:17 GMT (This post was last modified: 2013-10-07 11:58 GMT by yoshi314.)
Post: #57
RE: New: 1.6-0.2.0
(2013-10-07 10:17 GMT)polipo1970 Wrote:  Ciao, for me you can make a firmawere without WIFI, I think the WIFI in the A60 it is to much slower for an web use. The A60 is a really ebook reader.
In my opinion the most important points are:
Better management of the library
Ability to take notes (pdf, epub ...)
battery
automatically open last book on startup

during build of openboox, you can disable most of wifi tools and exclude them from the build. plus, you can simply keep the wifi switch off, if you do not need it.

taking notes is probably not something i can influence, depends on the reader of choice.

edit: i might have found a way to use a serial console on boox, this might help with debugging. if works (i don't have the reader around atm), i'll include it in explorer and firmware.

as for auto opening of last book - i am still thinking on how to do it right. i'm thinking of new option in settings with Yes/No dialog that will save settings somewhere in database. if someone has more elegant solution, i'd be glad to hear it.


edit: i've hacked together a basic code for opening last read book. i haven't tested it yet.
Find all posts by this user
Quote this message in a reply
2013-10-07, 20:09 GMT
Post: #58
RE: New: 1.6-0.2.0
Okay, it seems to be working more or less. Here goes:

download link for prebuilt binary :
https://dl.dropboxusercontent.com/u/3873...x_explorer

for testing :
- put on the sd card,
- make a startup script like so :

somefile.oar (it must have .oar extension) :
Code:
#!/bin/sh
/media/sd/obx_explorer 2>&1 > /media/sd/explorer.log

navigate to sd card on boox, launch the .oar file. Your book database will be wiped clean. It will be wiped everytime you will switch between old and new explorer.

Short log of operations will be created on sd card, although i removed some logging from it.

Note: in this mode, there is no automatic opening of last book read - the option is hidden. I made it on purpose for testing. If the explorer is the main running explorer (installed on the device), it will present this option and feature should be active (see note later, it could be a bit buggy).

For permanent installation of explorer in your firmware.

- make a file install.oar and put with downloaded obx_explorer on sd card. run on your boox, and restart device.
Code:
#!/bin/sh
[ -e "/media/sd/obx_explorer.backup" ] || cp /opt/onyx/arm/bin/obx_explorer /media/sd/obx_explorer.backup
cp /media/sd/obx_explorer /opt/onyx/arm/bin

Older version of explorer will be copied as obx_explorer.backup to sd card. You can reuse this script to install it back, by renaming it to obx_explorer.


New things:
- navigating book database should be faster
- option to clean up database from non existant books
- hopefully better importing of series and series index on books.
- tooltip with author, series, read count and series index under book entry (if book is in database has has necessary data)
- books not existing in database will be added upon first opening, making them available from "Recently read" section, without having to add them to database by hand
- books listed in "By Series" will have their series index before the title. This might be annoying, esp. with the tooltips i added later. Will probably remove that.
- option of automatic opening of last read book (in settings, defaults to no)

Bugs:
- there is a chance that feature of opening last read book will not work, even if you enable it. The database entry did not create for me, somehow. If that happens to you, do this :

- download sqlite binary : https://dl.dropboxusercontent.com/u/3873935/obx/sqlite3
- put on sd card and make a file :

fix_settings.oar :

Code:
#!/bin/sh
/media/sd/sqlite3 /root/obx_explorer.db "INSERT INTO settings VALUES('loadlast','N','Y/N - open last read book on startup?')"

Run the script on boox, and enable opening of last read book again. This time it should start working from next reboot. Not sure what will happen on suspend/resume.

If something goes wrong and you cannot navigate your device at all - reinstall openboox firmware. I noticed that restoring defaults from explorer can sometimes do that. Will investigate this.
Find all posts by this user
Quote this message in a reply
2013-10-09, 08:24 GMT (This post was last modified: 2013-10-09 09:11 GMT by polipo1970.)
Post: #59
RE: New: 1.6-0.2.0
Okay, I try and it seems to be working.

When I launch the .oar file the clock icon continue and not stop. I restart the device and all is working. I installed the new explorer.

I not try the pening of last read book.

Ciao
<br />
Ciao, one request:

Is it possible to implement the search or indexing through tag?
Find all posts by this user
Quote this message in a reply
2013-10-09, 09:20 GMT
Post: #60
RE: New: 1.6-0.2.0
(2013-10-09 08:24 GMT)polipo1970 Wrote:  Okay, I try and it seems to be working.

When I launch the .oar file the clock icon continue and not stop. I restart the device and all is working. I installed the new explorer.

I not try the pening of last read book.

Ciao
<br />
Ciao, one request:

Is it possible to implement the search or indexing through tag?

the .oar scripts should exit cleanly, could be some bug. Weird. What script exactly caused that?

Can you give example of those tags? Do you mean the tags from calibre (e.g. genre tags) ?

Right now i am thinking on how to parse mobi metadata. Epubs and pdfs usually have embedded metadata, and if you copy books from calibre into separate directories, they will come with separate metadata.opf file. But it might as well be a file from a different book, or you could just drop multiple books into one directory by hand. Some intelligent solution to this would be nice.
Find all posts by this user
Quote this message in a reply
Post Reply