Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 05-18-2019, 12:22 AM   #1
sherman
Fanatic
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: 533
Karma: 1185069
Join Date: Aug 2008
Location: Auckland - NZ
Device: Sony PRS-505/SC, B&N Nook, Sony PRS-650/BC, Kobo Glo, Kobo Aura H2O
[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!
sherman is offline   Reply With Quote
Old 05-18-2019, 04: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: 8,648
Karma: 12901336
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
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 04:44 AM.
NiLuJe is offline   Reply With Quote
Advert
Old 05-18-2019, 04:22 PM   #3
sherman
Fanatic
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: 533
Karma: 1185069
Join Date: Aug 2008
Location: Auckland - NZ
Device: Sony PRS-505/SC, B&N Nook, Sony PRS-650/BC, Kobo Glo, Kobo Aura H2O
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, 05:32 PM   #4
ICDeadPpl
Member
ICDeadPpl began at the beginning.
 
ICDeadPpl's Avatar
 
Posts: 18
Karma: 10
Join Date: Mar 2010
Location: Sweden
Device: Kobo Aura H2O
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, 06:06 PM   #5
sherman
Fanatic
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: 533
Karma: 1185069
Join Date: Aug 2008
Location: Auckland - NZ
Device: Sony PRS-505/SC, B&N Nook, Sony PRS-650/BC, Kobo Glo, Kobo Aura H2O
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, 08: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: 8,648
Karma: 12901336
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
@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, 09:39 PM   #7
sherman
Fanatic
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: 533
Karma: 1185069
Join Date: Aug 2008
Location: Auckland - NZ
Device: Sony PRS-505/SC, B&N Nook, Sony PRS-650/BC, Kobo Glo, Kobo Aura H2O
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, 03: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: 8,648
Karma: 12901336
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
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, 03:52 AM   #9
sherman
Fanatic
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: 533
Karma: 1185069
Join Date: Aug 2008
Location: Auckland - NZ
Device: Sony PRS-505/SC, B&N Nook, Sony PRS-650/BC, Kobo Glo, Kobo Aura H2O
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, 11:18 AM   #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: 8,648
Karma: 12901336
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
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, 12: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: 8,648
Karma: 12901336
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
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
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:50 PM
connecting Calibre to Calibre without wireless connection TomSpot Calibre Companion 1 07-10-2018 06:07 AM
Wireless connection to calibre. sorg Kindle Developer's Corner 33 07-16-2015 11:49 AM
Calibre Companion and wireless connection taratears Calibre Companion 13 03-28-2015 05:32 PM
Nook Touch/Calibre wireless connection? tigersfan Devices 8 01-10-2012 02:51 PM


All times are GMT -4. The time now is 06:40 PM.


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