Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 05-18-2019, 01:22 AM   #1
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 869
Karma: 2676800
Join Date: Sep 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
[Alpha] Kobo-UNCaGED - Calibre wireless connection

Hi Folks,

I've been working on this on and off for a while now, and I thought it's probably about time to let the public have a go to try and break it (won't be hard ).

Introducing Kobo-UNCaGED, an implementation of the Calibre wireless protocol for Kobo devices. You can now stop looking longingly at those pesky Android readers and their Calibre Companion app, as this program lets us Kobo eink users join the wireless fun too!

This is an initial public alpha release of the software. There will be bugs. Probably lots of bugs. It shouldn't brick your Kobo though. If you are worried about data loss, I would recommend backing up your user partition first.

NiLuJe helped me with some early testing, and hopefully between us we've found most of the show-stopper issues. Along the way, NiLuJe fixed my shell scripts for me too. Thanks NiLuJe!

I'll let my readme explain more details: https://github.com/shermp/Kobo-UNCaGED

Release archive can be found at github

Please test and provide feedback. I also welcome pull-requests, if anyone wants to help improve it. I'm under no illusions that my code is perfect, or even particularly clean, so any assistance is very much appreciated.

Have fun!

Last edited by sherman; 04-24-2024 at 01:47 AM.
sherman is offline   Reply With Quote
Old 05-18-2019, 05:02 AM   #2
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
In particular, as this relies on some finicky FBInk bits, I expect some wonkiness on my usual suspect, the H20²r1 .

So, if the USB pop-up never gets "clicked", I'll have to dust-off my old thread about that .

In the same vein, this definitely won't work with NightMode enabled, and patched rotations *may* also be an issue .

Last edited by NiLuJe; 05-18-2019 at 05:44 AM.
NiLuJe is offline   Reply With Quote
Advert
Old 05-18-2019, 05:22 PM   #3
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 869
Karma: 2676800
Join Date: Sep 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
Quote:
Originally Posted by NiLuJe View Post
In particular, as this relies on some finicky FBInk bits, I expect some wonkiness on my usual suspect, the H20²r1 .

So, if the USB pop-up never gets "clicked", I'll have to dust-off my old thread about that .

In the same vein, this definitely won't work with NightMode enabled, and patched rotations *may* also be an issue .
Hmmm, IIRC Kobo added a "connect automatically" feature in the last few versions of the FW, activated by changing an option in the
Kobo ereader.conf"

Maybe Kobo-UNCaGED could detect that option as a fallback/alternative.
sherman is offline   Reply With Quote
Old 05-18-2019, 06:32 PM   #4
ICDeadPpl
Enthusiast
ICDeadPpl began at the beginning.
 
ICDeadPpl's Avatar
 
Posts: 35
Karma: 10
Join Date: Mar 2010
Location: Sweden
Device: Kobo Libra 2
How about having the books transferred to the sd card?
I tried to transfer one book, and it ended up in the root of the internal storage.
ICDeadPpl is offline   Reply With Quote
Old 05-18-2019, 07:06 PM   #5
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 869
Karma: 2676800
Join Date: Sep 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
Quote:
Originally Posted by ICDeadPpl View Post
How about having the books transferred to the sd card?
I tried to transfer one book, and it ended up in the root of the internal storage.
That's on the TODO list. I think I have it mostly plumbed in already, but I can't be sure until I a) do testing, and b) Figure out the best way to let the user choose which to use.

Note, from what I can tell from the calibre wireless protocol, it doesn't appear to allow using multiple storage devices simultaneously.
sherman is offline   Reply With Quote
Advert
Old 05-18-2019, 09:56 PM   #6
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@sherman: That'd help with the touch shenanigans, but not with the processing pass detection . (In other words, that'd help on the Touch/H2O²r1, but do nothing for nightmode).
NiLuJe is offline   Reply With Quote
Old 05-18-2019, 10:39 PM   #7
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 869
Karma: 2676800
Join Date: Sep 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
Quote:
Originally Posted by NiLuJe View Post
@sherman: That'd help with the touch shenanigans, but not with the processing pass detection . (In other words, that'd help on the Touch/H2O²r1, but do nothing for nightmode).
Having never used nightmode before, is it a) detectable, and b) does it just invert everything?

Maybe button_scan can detect night-mode and behave accordingly?
sherman is offline   Reply With Quote
Old 05-19-2019, 04:33 AM   #8
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
There's unfortunately a bunch of different implementations, so it's annoying to check for everything ;/.

One semi foolproof way would be to trigger an update and sniff the ioctl to check the flags, but that's somewhat non-trivial to do, as I don't really feel like reimplementing a subset of strace ;/.
NiLuJe is offline   Reply With Quote
Old 05-19-2019, 04:52 AM   #9
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 869
Karma: 2676800
Join Date: Sep 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
Quote:
Originally Posted by NiLuJe View Post
There's unfortunately a bunch of different implementations, so it's annoying to check for everything ;/.

One semi foolproof way would be to trigger an update and sniff the ioctl to check the flags, but that's somewhat non-trivial to do, as I don't really feel like reimplementing a subset of strace ;/.
Aww crap Never mind.

I guess another option is to have an option that the user can manually select if they have a nightmode hack enabled I suppose.
sherman is offline   Reply With Quote
Old 05-19-2019, 12:18 PM   #10
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
I can probably fairly easily detect Nickel's own implementation, at least, which would be better than nothing .
NiLuJe is offline   Reply With Quote
Old 05-19-2019, 01:01 PM   #11
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Err, I just had a light-bulb moment after a good nap: hardware inversion doesn't actually affect framebuffer content. So, in effect, nightmode isn't an issue at all. Yay \o/.

(Unless you want to account for legacy nightmode hack implementations that did it in software, which was terrible).
NiLuJe is offline   Reply With Quote
Old 07-19-2019, 05:46 PM   #12
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 869
Karma: 2676800
Join Date: Sep 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
v0.3.0 Released

Announcing the v0.3.0 public release! A couple of new features, and lots of code improvements in this one.

Release archives are available from https://github.com/shermp/Kobo-UNCaG...ses/tag/v0.3.0

I'll regurgitate my release notes from Github below:

Introducing the second public release of Kobo-UNCaGED. Lots of internal code refactoring and bug fixes in this one, but a couple of new features as well
  • External SD card support. If you have an SD card inserted into your Kobo, you can tell Kobo-UNCaGED to prefer saving books to/from it. Note, you may only use one of internal storage or SD card at any given time, as the wireless driver does not allow for multiple simultaneous storage locations. Set preferSDCard = true in ku.toml to enable this.
  • Improved image thumbnail generation. Massive thanks to @NiLuJe and @geek1011 for helping to implement image thumbnail improvements. The changes make the process both faster, and more correct. There are some options in ku.toml to customize this to some extent
  • Shell script fixes and improvements
  • Lots of internal code refactoring by myself and @geek1011

Note, if using an external SD card, it is highly recommended to upgrade kfmon to 1.3.0 to avoid issues.

An upgrade archive is now provided, which only upgrades the shell scripts, default config file, and binary. You may also upgrade using the full release if desired.

Again, huge thanks to @geek1011 and @NiLuJe for their help.
sherman is offline   Reply With Quote
Old 02-19-2020, 04:00 AM   #13
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 869
Karma: 2676800
Join Date: Sep 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
v0.4.0 Released

What's this? A new release?

At long last, I've done some more work on this. Mostly internal refactoring.

The one new feature is KU now has the option of updating metadata via a database trigger now, similar to how Kepubify does it. The pro's are no need to connect to the database the second time to update metadata. The main con is that it extends the Kobo database schema, although in practice, this should have no effect on the operation of the device.

As always, the new release can be found on the GitHub releases page.
sherman is offline   Reply With Quote
Old 02-20-2020, 07:04 AM   #14
church mouse
Evangelist
church mouse ought to be getting tired of karma fortunes by now.church mouse ought to be getting tired of karma fortunes by now.church mouse ought to be getting tired of karma fortunes by now.church mouse ought to be getting tired of karma fortunes by now.church mouse ought to be getting tired of karma fortunes by now.church mouse ought to be getting tired of karma fortunes by now.church mouse ought to be getting tired of karma fortunes by now.church mouse ought to be getting tired of karma fortunes by now.church mouse ought to be getting tired of karma fortunes by now.church mouse ought to be getting tired of karma fortunes by now.church mouse ought to be getting tired of karma fortunes by now.
 
church mouse's Avatar
 
Posts: 484
Karma: 5277078
Join Date: Oct 2009
Location: UK
Device: Kobo Clara HD, Boox Poke 2, PocketBook Verse Pro (634)
I'm not sure if anyone can help me on this, but trying this on my Clara HD I seem to have an issue in running this;

I am getting as far as "USBMS mode entered . . ." messaging on my Clara, followed by a flash screen for Kobo-Uncaged v0.4

Then immediately it enters the dismount process of "Leaving USBMS . . .","Disabling WiFi" etc without ever connecting to Calibre on my network.

Finally, after a few seconds I will get a message "Something strange happened ku:2;BS:61"

Any ideas where I am going wrong?
church mouse is offline   Reply With Quote
Old 02-20-2020, 07:48 AM   #15
Carmelocotonto
Connoisseur
Carmelocotonto began at the beginning.
 
Carmelocotonto's Avatar
 
Posts: 94
Karma: 12
Join Date: Nov 2018
Location: Salamanca
Device: kobo Clara HD, Onyxboox C67
Quote:
Originally Posted by church mouse View Post
I'm not sure if anyone can help me on this, but trying this on my Clara HD I seem to have an issue in running this;

I am getting as far as "USBMS mode entered . . ." messaging on my Clara, followed by a flash screen for Kobo-Uncaged v0.4

Then immediately it enters the dismount process of "Leaving USBMS . . .","Disabling WiFi" etc without ever connecting to Calibre on my network.

Finally, after a few seconds I will get a message "Something strange happened ku:2;BS:61"

Any ideas where I am going wrong?
Same to me. This happened because I did not have calibre activated at office. At home I'll try again.
Carmelocotonto is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PDF compressed when sent with Calibre Wireless Connection zorrodee666 KOReader 1 03-23-2019 11:50 PM
connecting Calibre to Calibre without wireless connection TomSpot Calibre Companion 1 07-10-2018 07:07 AM
Wireless connection to calibre. sorg Kindle Developer's Corner 33 07-16-2015 12:49 PM
Calibre Companion and wireless connection taratears Calibre Companion 13 03-28-2015 06:32 PM
Nook Touch/Calibre wireless connection? tigersfan Devices 8 01-10-2012 03:51 PM


All times are GMT -4. The time now is 04:39 AM.


MobileRead.com is a privately owned, operated and funded community.