|  09-11-2019, 02:36 PM | #1 | 
| Zealot            Posts: 136 Karma: 14644 Join Date: Sep 2015 Device: Kobo Elipsa, Poketbook Inkpad 3 & Boyue Likebook Minas | 
				
				Koreader > Calibre Wireless Device Connection
			 
			
			Hi, I've installed Koreader on my Boyue Likebook Mimas and I'm trying to use koreader's wireless connection to Calibre. I can successfully connect to Calibre from Koreader as long as I don't set a password and send eBooks to the device, but on reconnect Calibre can't see the eBooks I previously transmitted nor sync reading position. Is this normal behaviour or am I messing something up? | 
|   |   | 
|  09-11-2019, 05:11 PM | #2 | 
| BLAM!            Posts: 13,506 Karma: 26047202 Join Date: Jun 2010 Location: Paris, France Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E | 
			
			IIRC, yes, that's normal behavior. There's a couple of threads and/or issues about this, but your conclusions look sound, from what I can recall. | 
|   |   | 
| Advert | |
|  | 
|  10-17-2019, 11:45 AM | #3 | 
| Junior Member  Posts: 7 Karma: 10 Join Date: Oct 2019 Device: Kobo Aura HD | |
|   |   | 
|  10-18-2019, 05:41 AM | #4 | |
| Guru            Posts: 877 Karma: 2676800 Join Date: Aug 2008 Location: Taranaki - NZ Device: Kobo Aura H2O, Kobo Forma | Quote: 
 In other words, it would take some effort to "fix" it. I have no idea when or if anyone will do so (not a koreader dev, so can't speak for them). I don't know Lua, or the koreader architecture, but if anyone on the team wants to create a more complete implementation, I'm happy to share any of my own learning about the protocol. As a side-note, I was very grateful for the bare-bones Koreader implementation. It helped me figure out where to start with my own. | |
|   |   | 
|  10-18-2019, 10:09 AM | #5 | 
| BLAM!            Posts: 13,506 Karma: 26047202 Join Date: Jun 2010 Location: Paris, France Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E | 
			
			Yeah, the developer that came up with it (@chrox) is currently inactive, so I wouldn't get my hopes up   . I don't think any of the currently active contributors actually even *use* it, so, if someone's up to it, PRs welcome  . In the meantime, I highly recommend @sherman's own implementation  . | 
|   |   | 
| Advert | |
|  | 
|  10-18-2019, 03:54 PM | #6 | |
| Junior Member  Posts: 7 Karma: 10 Join Date: Oct 2019 Device: Kobo Aura HD | Quote: 
 | |
|   |   | 
|  10-18-2019, 04:14 PM | #7 | |
| Wizard            Posts: 1,784 Karma: 731691 Join Date: Oct 2014 Location: Antwerp Device: Kobo Aura H2O | Quote: 
   | |
|   |   | 
|  10-18-2019, 04:24 PM | #8 | 
| BLAM!            Posts: 13,506 Karma: 26047202 Join Date: Jun 2010 Location: Paris, France Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E | 
			
			I, err, meant the plugin, not Calibre itself ^^.
		 | 
|   |   | 
|  10-18-2019, 05:00 PM | #9 | |
| Guru            Posts: 877 Karma: 2676800 Join Date: Aug 2008 Location: Taranaki - NZ Device: Kobo Aura H2O, Kobo Forma | Quote: 
 As a sidenote, I sometimes hate working with Calibre emitted JSON. It seems to assume one is processing it with a dynamically typed language, so data types aren't always very... strict. For example, date/timestamp fields. If there is no date/time, one would expect the field to be non-existent, or null. What one doesn't expect is the string "None"  It makes unmarshalling into a Go struct an exercise in frustration   | |
|   |   | 
|  10-18-2019, 05:39 PM | #10 | 
| Wizard            Posts: 1,784 Karma: 731691 Join Date: Oct 2014 Location: Antwerp Device: Kobo Aura H2O | 
			
			None is Python null. You'd think the JSON library would convert it to null though, not string "None" (which isn't what "None" is, anyway). Edit: like so Code: >>> bla = None
>>> if bla == None: print('wee')
... 
wee
>>> bla = 'None'
>>> if bla == None: print('wee')
...
>>>Last edited by Frenzie; 10-18-2019 at 05:44 PM. | 
|   |   | 
|  10-18-2019, 05:45 PM | #11 | |
| Guru            Posts: 877 Karma: 2676800 Join Date: Aug 2008 Location: Taranaki - NZ Device: Kobo Aura H2O, Kobo Forma | Quote: 
 What's really annoying is that null is used elsewhere in the JSON. EDIT: Just thinking about it a bit more, the problem probably isn't with the JSON encoder, but rather that "None" may have been stored as a string in the metadata database. Last edited by sherman; 10-18-2019 at 05:53 PM. | |
|   |   | 
|  | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Calibre Companion works with content server but not wireless device connection | cd2013 | Calibre Companion | 3 | 02-27-2019 06:19 PM | 
| Wireless Device Connection Problem | HisLittleOne | Calibre Companion | 1 | 12-09-2014 02:53 AM | 
| Cannot start wireless device connection | bobbert1234 | Calibre | 3 | 06-18-2014 04:10 PM | 
| Books on device with wireless connection by CC | Purple Lady | Devices | 13 | 11-26-2013 03:50 AM | 
| Headless Calibre-Server enable "Wireless device connection" | mohataj | Devices | 11 | 10-11-2012 05:39 AM |