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 02-20-2020, 04:31 PM   #31
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: 850
Karma: 2641698
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
Hmm, for the meantime, I'm thinking of skipping the parse epub/kepub metadata step entirely, and just use whatever metadata is available in the Kobo database until I can find/create a more robust solution.
sherman is offline   Reply With Quote
Old 02-20-2020, 04:33 PM   #32
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,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@sherman: Well, -61 is ENODATA (as thrown by fbink_wait_for_usbms_processing), which *sorts of* makes sense ^^.

Now I see what you meant in the PR about dealing with Go Panics in a human-readable way, though :/.
NiLuJe is offline   Reply With Quote
Advert
Old 02-20-2020, 05:23 PM   #33
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: 850
Karma: 2641698
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
I've attached a test version of KU to this post.

It bypasses the parsing epub/kepub stage, and added some more error checking to run-ku.sh, including logging to .adds/kobo-uncaged/error_log.txt

@church mouse could you try this one please?

Just extract the contents of the zip to the root of your kobo, and replace any existing files.


EDIT: The issues are resolved in v0.4.1 (in post #47). Test version removed.

Last edited by sherman; 03-06-2020 at 04:26 PM.
sherman is offline   Reply With Quote
Old 02-21-2020, 02:05 AM   #34
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: 482
Karma: 5277078
Join Date: Oct 2009
Location: UK
Device: Kindle Voyage, Kobo Clara HD, Kobo H2O, Boox Poke 2
Quote:
Originally Posted by sherman View Post
I've attached a test version of KU to this post.

It bypasses the parsing epub/kepub stage, and added some more error checking to run-ku.sh, including logging to .adds/kobo-uncaged/error_log.txt

@church mouse could you try this one please?

Just extract the contents of the zip to the root of your kobo, and replace any existing files.
sherman, I can report some success.

If I run without a password on Calibre wireless it all seems to work. If I run with a password for Calibre, then I get one of two results:

1. Report of no password found (I am never asked for one, nor does putting my password in the ku.toml make any difference). OR

2. It reports that there is no instance of Calibre detected.

A secondary behaviour I have noted is that if I connect the Kobo to a computer by USB (for instance, to amend the ku.toml to add my Calibre password), when I eject the reader it seems to fire off part of KU resulting in a message "Failed to find/press the Connect button".
church mouse is offline   Reply With Quote
Old 02-21-2020, 02:27 AM   #35
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: 850
Karma: 2641698
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
It should work via adding the password by the config file. That's the only way to do it, as I don't want to get into dealing with touch input (it's a PITA on Kobo's). I shall double check this, as I made changes, and could have broken it...

I sometimes get the no calibre found myself, not quite sure what causes it, but stopping/starting the wireless service in calibre usually fixes it.

As for the last item, that shouldn't happen. I'm not quite sure what might be causing that.

I would recommend restarting your kobo to make sure you are in a "clean" state. Simply hold the power button until it says it is powered off, wait a few seconds, press and hold again to turn back on.
sherman is offline   Reply With Quote
Advert
Old 02-21-2020, 02:39 AM   #36
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: 850
Karma: 2641698
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
Just tested with a password in ku.toml, connects fine. I suspect your issue is a more generic connection issue.

I may have to see if I can make that initiating connection more robust. It uses UDP, so there is no guarantee that Calibre 'sees' the hello packet I send, or that KU 'sees' the reply. I may have to try multiple attempts.
sherman is offline   Reply With Quote
Old 02-21-2020, 06:28 AM   #37
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: 482
Karma: 5277078
Join Date: Oct 2009
Location: UK
Device: Kindle Voyage, Kobo Clara HD, Kobo H2O, Boox Poke 2
Quote:
Originally Posted by sherman View Post
Just tested with a password in ku.toml, connects fine. I suspect your issue is a more generic connection issue.

I may have to see if I can make that initiating connection more robust. It uses UDP, so there is no guarantee that Calibre 'sees' the hello packet I send, or that KU 'sees' the reply. I may have to try multiple attempts.
I now have it working with or without a password.

I decided to remove and re-instal KU and the update. I then rebooted my Clara and have tested it successfully with and without a Calibre password.

I still get the "failed to find/press...." message if/when I eject my Clara on a USB connection, but that causes no issues.

Many thanks for your work.
church mouse is offline   Reply With Quote
Old 02-21-2020, 12:05 PM   #38
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,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@church mouse: About the USB eject thing, does it happen on *every* USB eject?

(i.e., if you cold boot the device, and do a simple connect/eject session without having ever touched KU in that boot session)?

I assume you don't have anything else installed that would be messing with udev rules?

Mind posting the KFMon log *after* the next time that happens? (tap KFMon's "book", it'll flood your screen, and copy the log to .adds/kfmon/log/kfmon_dump.log).
NiLuJe is offline   Reply With Quote
Old 02-21-2020, 01:21 PM   #39
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: 482
Karma: 5277078
Join Date: Oct 2009
Location: UK
Device: Kindle Voyage, Kobo Clara HD, Kobo H2O, Boox Poke 2
Quote:
Originally Posted by NiLuJe View Post
@church mouse: About the USB eject thing, does it happen on *every* USB eject?

(i.e., if you cold boot the device, and do a simple connect/eject session without having ever touched KU in that boot session)?

I assume you don't have anything else installed that would be messing with udev rules?

Mind posting the KFMon log *after* the next time that happens? (tap KFMon's "book", it'll flood your screen, and copy the log to .adds/kfmon/log/kfmon_dump.log).
1 I did not get the error when my Clara was connected and ejected on USB after a fresh reboot (tested several times). However, after I then ran KU, a USB connection/eject produced the error message. (It seemed to be looking to run the KU update metadata process - FYI, the laptop I connect to for testing does not have my Calibre installation to avoid any chance of a Calibre USB connection spooking it.)

2. Once KU has been run, then the error message pops up after each USB ejection.

3. I am not sure what could be impacting on udev rules. I do have my Kobo patched with some of the "standard" patch changes, but nothing that impacts on USB as far as I know. I also have Koreader installed to run via KFmon, but I have nothing set there to mess with USB.

4. I attach a txt file of tonight's data from the KFMon log, as per your request. I hope it may be of use.

Regards,
Attached Files
File Type: txt KFMON_Log.txt (11.1 KB, 293 views)
church mouse is offline   Reply With Quote
Old 02-21-2020, 01:51 PM   #40
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: 482
Karma: 5277078
Join Date: Oct 2009
Location: UK
Device: Kindle Voyage, Kobo Clara HD, Kobo H2O, Boox Poke 2
I need to qualify point 2 above. On further testing I am getting the error message the first time I use USB after running KU. Subsequent USB use did not generate the message, unless/until I used KU again.

I can't test more tonight but will do so over the weekend.
church mouse is offline   Reply With Quote
Old 02-21-2020, 01:57 PM   #41
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,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@church mouse: I can see a cold boot, two (apparently sane) ejects (a minute apart each), a sane KU run, and the log dump.

Does that track?

Is the KU run actually a spurious one here? Did one actually happen? (Ideally, I'd need a log *after* a spurious KU run on eject ).

(I mean, that one is sufficiently far apart from the eject that it *looks* user-triggered?).

Last edited by NiLuJe; 02-21-2020 at 01:59 PM.
NiLuJe is offline   Reply With Quote
Old 02-21-2020, 02:36 PM   #42
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: 482
Karma: 5277078
Join Date: Oct 2009
Location: UK
Device: Kindle Voyage, Kobo Clara HD, Kobo H2O, Boox Poke 2
Quote:
Originally Posted by NiLuJe View Post
@church mouse: I can see a cold boot, two (apparently sane) ejects (a minute apart each), a sane KU run, and the log dump.

Does that track?

Is the KU run actually a spurious one here? Did one actually happen? (Ideally, I'd need a log *after* a spurious KU run on eject ).

(I mean, that one is sufficiently far apart from the eject that it *looks* user-triggered?).
After the sane KU run there was a short delay before I carried a USB connect/eject, followed by the spurious message, then I generated the log dump.

Over the weekend I will try the process a few more times with longer delays between each step. Tonight, I feel I kind of rushed everything, which isn't fair to you, or a real world scenario.
church mouse is offline   Reply With Quote
Old 02-21-2020, 02:43 PM   #43
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: 850
Karma: 2641698
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
Ahh.. That might explain some of the weirdness, and it's something I might need to fix. @NiLuJe I use button_scan in wait for content mode to exit USBMS mode. If KU exits without requiring a restart, that means that BS could be potentially still running when the (physical) USB is inserted. I think BS will wait for around 10 seconds before deciding it hasn't found the importing content screen and exits.

That could confuse things...

Methinks that bit of the shell script could use a little reworking.
sherman is offline   Reply With Quote
Old 02-21-2020, 04:50 PM   #44
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,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
That's entirely possible, we'll ideally need the matching syslog to cross-reference (ideally w/ BS logging to syslog, too), because what I can tell from the KFMon log is that the KU shell script ultimately exited sanely 2 minutes after it was started, but there was no actual unmount in that period of time .

(So something hanging around for a while seems likely).

Last edited by NiLuJe; 02-21-2020 at 04:53 PM.
NiLuJe is offline   Reply With Quote
Old 02-21-2020, 04:52 PM   #45
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: 850
Karma: 2641698
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
I'm in the process of changing the shell script to only use button_scan for USBMS removal if it's actually needed. That should hopefully eliminate button_scan from silently lingering without the user realising it.
sherman 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 01:45 PM.


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