jkcoxson / netmuxd

An alternative to usbmuxd just for networking
GNU Lesser General Public License v2.1
129 stars 16 forks source link

Failed Heartbeat after a while #14

Closed Demuos closed 2 years ago

Demuos commented 2 years ago

I´m trying to automatically backup my iPhone 11 to my ubuntu 22.04 Server NAS via Wifi, but idevicebackup2 doesn´t find my device on wlan.

dom@server:~$ idevicebackup2 backup --full . -n
No device found.

usbmuxd and netmuxd are started but looking at the logs I can see that Heartbeat fails after a while and the device is added again. I´m using the latests release of netmuxd.

[2022-07-14T09:27:02Z INFO  netmuxd::heartbeat] Heartbeat failed for 00008030-xxx
[2022-07-14T09:27:02Z INFO  netmuxd::heartbeat] Removing device 00008030-xxx from muxer
[2022-07-14T09:27:02Z INFO  netmuxd::central_data] Removing device: "00008030-xxx"
[2022-07-14T09:27:02Z INFO  rusty_libimobiledevice::services::heartbeat] Dropping heartbeat client
[2022-07-14T09:27:02Z INFO  rusty_libimobiledevice::idevice] Dropping device 00008030-xxx

(UDID removed)

full log sudo RUST_LOG=trace ./netmuxd —disable-unix —host 127.0.0.1: https://gist.github.com/Demuos/c23ca9bb505701fa28436ec36136eb22

I would appreciate any help :)

jkcoxson commented 2 years ago

I need to fine-tune the delay between heartbeats, the device is chopping the connection due to unexpected packet intervals. This is a duplicate of #10 though, so I will close this in favor of it.