05-18-2019, 01:22 AM | #1 |
Guru
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. |
05-18-2019, 05:02 AM | #2 |
BLAM!
Posts: 13,499
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. |
Advert | |
|
05-18-2019, 05:22 PM | #3 | |
Guru
Posts: 869
Karma: 2676800
Join Date: Sep 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
Quote:
Kobo ereader.conf" Maybe Kobo-UNCaGED could detect that option as a fallback/alternative. |
|
05-18-2019, 06:32 PM | #4 |
Enthusiast
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. |
05-18-2019, 07:06 PM | #5 | |
Guru
Posts: 869
Karma: 2676800
Join Date: Sep 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
Quote:
Note, from what I can tell from the calibre wireless protocol, it doesn't appear to allow using multiple storage devices simultaneously. |
|
Advert | |
|
05-18-2019, 09:56 PM | #6 |
BLAM!
Posts: 13,499
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).
|
05-18-2019, 10:39 PM | #7 | |
Guru
Posts: 869
Karma: 2676800
Join Date: Sep 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
Quote:
Maybe button_scan can detect night-mode and behave accordingly? |
|
05-19-2019, 04:33 AM | #8 |
BLAM!
Posts: 13,499
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 ;/. |
05-19-2019, 04:52 AM | #9 | |
Guru
Posts: 869
Karma: 2676800
Join Date: Sep 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
Quote:
I guess another option is to have an option that the user can manually select if they have a nightmode hack enabled I suppose. |
|
05-19-2019, 12:18 PM | #10 |
BLAM!
Posts: 13,499
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 .
|
05-19-2019, 01:01 PM | #11 |
BLAM!
Posts: 13,499
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). |
07-19-2019, 05:46 PM | #12 |
Guru
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
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. |
02-19-2020, 04:00 AM | #13 |
Guru
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. |
02-20-2020, 07:04 AM | #14 |
Evangelist
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? |
02-20-2020, 07:48 AM | #15 | |
Connoisseur
Posts: 94
Karma: 12
Join Date: Nov 2018
Location: Salamanca
Device: kobo Clara HD, Onyxboox C67
|
Quote:
|
|
|
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 |