mireq / KOReader-usbnet-connect-to-calibre

Automatically connect KOReader to Calibre using USBNet on Kindle
3 stars 0 forks source link

Windows 10: The device does not appear in Calibre #1

Open Phibonacci opened 1 year ago

Phibonacci commented 1 year ago

After installing the plugin and configuring KOReader the device does not appear in Calibre.

I have:

Here is precisely what I did:

I can connect to Calibre from KOReader using the Wifi.

My Kindle Firmware can connect to Calibre without KOReader running.

mireq commented 1 year ago

@Phibonacci network connection working? Can you access kindle with ssh? I forgot to mention in the README that the USB network connection must be configured.

Phibonacci commented 1 year ago

The network connection is working, I can connect to Calibre from KOReader using the wifi.

I can also connect to KOReader through SSH.

What is the "USB network connection" ?

mireq commented 1 year ago

@Phibonacci this package is intended for connection using USB net for paranoid users who don't want enable WiFi connection. If you are using WiFi, it's useless for you. All functions are already available by default.

Phibonacci commented 1 year ago

this package is intended for connection using USB net for paranoid users who don't want enable WiFi

That would be me. I currently disabled Internet access at the router level but it's not a long term satisfying solution.

How can I configure the USB network connection?

mireq commented 1 year ago

@Phibonacci i don't know, i don't have windows. I have just installed USB network hack (https://www.mobileread.com/forums/showthread.php?t=225030), connected cable and assigned IP 192.168.15.243/24 to new network device. Kindle has pre-configured address 192.168.15.244.

Then i have configured koreader and calibre:

kindle_1 kindle_2

mireq commented 1 year ago

@Phibonacci any news? It's working now?

Phibonacci commented 1 year ago

I could not make it work.

I installed the USBNetworkHack Update_usbnet_0.22.N_install_pw2_and_up.bin through MRPI. I can still connect to Calibre from KOReader through wifi but nothing happens when I try it with an USB cable.

mireq commented 1 year ago

@Phibonacci do you see new network card in Windows? Is network card configured. Static IP address should be anything in 192.168.15.xxx/24 range except of 192.168.15.244. I am using 192.168.15.243.

Phibonacci commented 1 year ago

No I don't. I guess I should see a new adapter in Control Panel\All Control Panel Items\Network Connections. How is it working on Linux, is Calibre taking care of creating a new interface?

After reading a little about it, it looks like the Linux Kernel handles it.

mireq commented 1 year ago

@Phibonacci this interface is handled by kernel and visible as new network interface:

0525:a4a2 Netchip Technology, Inc. Linux-USB Ethernet/RNDIS Gadget

eth_kindle: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.15.243  netmask 255.255.255.0  broadcast 0.0.0.0
        inet6 ...  prefixlen 64  scopeid 0x20<link>
        ether ...  txqueuelen 1000  (Ethernet)
        RX packets 166  bytes 12900 (12.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 179  bytes 15516 (15.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0```
Phibonacci commented 1 year ago

There does not seem to be any support for USB/IP in Windows. However the project which added support for it to the Linux kernel was also targeting Windows, as a client only.

I found this fork which intend to provide both client and server but after binding successfully my Kindle PW2 by following their README.md section on the server install, I did not see it appear in Calibre.

mireq commented 1 year ago

@Phibonacci usbip will not help, it's just USB device sharing over network. You need driver for USB device: 0525:a4a2 Netchip Technology, Inc. Linux-USB Ethernet/RNDIS Gadget

mireq commented 1 year ago

@Phibonacci guide to install wndows driver is on mobileread forum. I have added link to README.