2020-02-17, 08:01
try to increase the lease-time with your router ... that really looks like your shield disconnects.
(2020-02-17, 10:22)Pirivan Wrote: I did not not want to post before I felt confident in my results but after my previous post where I noticed a possible wireless/DHCP related issue by comparing the router and Kodi logs when the exit occurred, I did some further testing. I assigned a static IP to my Shield TV (using the Shield UI, I just assigned the static DHCP lease I had set on my router already as a static assignment on the Shield wireless NIC) and then played back an entire 4k movie without any issues. I then replicated this test a second time, again 0 issues. That has never happened in Kodi (only MrMC) since I setup Kodi on the Shield.
I feel pretty confident in saying that my issue is finally resolved. Even though the DHCP lease time on my router is set to 24 hours, the Shield is doing something bizarre when on WiFi causing it to lose the connection and then attempt to get a new lease/renew the DHCP lease every 1-2 hours (not sure about the precise interval).
One caveat here is that I had some completely unrelated 2.4Ghz WiFi issues that started on Friday that I have been troubleshooting at the same time, so I DID also set my router to not dynamically set the channel and instead statically set it to 11/20mhz width for 2.4Ghz and channel 149 80mhz width for 5Ghz (ShieldTV is connected to 5Ghz). So, technically I did make two changes, the static IP and set static channels/width. However, I tested previously with static wireless channel settings WITHOUT the static IP and that did not make any difference (still random exits); the static IP was the key. I am pretty confident that the wireless changes, moving the Shield around physically etc. were not related to the fix, only the static IP was.
Thanks for the feedback as well fritsch, (your hard work on Kodi is much appreciated) we were on the same line of thought!
I will continue to monitor the situation and update if it re-occurs but hopefully I am all set and this solution is helpful to someone else in the future.
(2020-02-17, 22:58)VonMagnum Wrote: I'm actually unable to access the equipment right now (trip). But how does MrMC play into that equation? Isn't the Shield's WiFi leased by the device not the program? I don't recall manually setting lease times before. I won't be able to look at it on my Asus router until I get back. Perhaps the "freezes" were also leasing errors, but if they were buffered enough, it reconnected before it froze or stopped?
(2020-02-18, 02:18)Pirivan Wrote:(2020-02-17, 22:58)VonMagnum Wrote: I'm actually unable to access the equipment right now (trip). But how does MrMC play into that equation? Isn't the Shield's WiFi leased by the device not the program? I don't recall manually setting lease times before. I won't be able to look at it on my Asus router until I get back. Perhaps the "freezes" were also leasing errors, but if they were buffered enough, it reconnected before it froze or stopped?
If I understand the situation correctly, I think it's likely that the WiFi disconnects/DHCP lease renewal was occurring when using MrMc as well. However, MrMc was masking the issue because it uses a different SMB client which seems to handles a brief network drop/interrupt more smoothly (perhaps by having a larger buffer?) than the one currently implemented in Kodi.
To clarify, I didn't change my lease times (24 hours) because the ShieldTV wasn't respecting the lease timer anyhow, it was doing something bizarre on wireless more often than 24 hours, I just assigned it a static IP on the Shield itself to prevent it from ever requesting a new lease.
(2020-02-18, 03:08)Pirivan Wrote: What I had setup on the Asus router was a DHCP reservation, which is not quite the same thing as a static IP address. The Shield TV still renews the DHCP address lease, it just always renews it with the same IP and the router will never give out that DHCP address to any other client because it 'knows' it is associated with the Shield TV MAC address.
What I had to do was ALSO assign the Shield TV wireless interface a static IP that was equivalent to the static DHCP reservation I was using for it on the router. If I understand correctly, this prevents the ShieldTV from ever trying to renew the lease, which it was doing on bizarre intervals (not ever 24 hours), causing the network interruption. Alternatively, you do not have to use DHCP reservations on the router at all. You could assign your ShieldTV (on the device itself) a static IP in your local subnet but OUTSIDE of the DHCP pool, that should work as well. I simply chose to statically assign the Shield the DHCP reservation I had setup for it on the router.
Are you assigning static IP's locally on the devices or are you setting up DHCP reservations for the devices on the router (as I was)? If you have been assigning static IP's for each device within their configuration UI (aka the Shields wireless network settings) then this may not be a fix for you as you have already implemented it.
I will continue testing but the issue so far appears to be completely resolved for me with this change.
(2020-02-18, 04:24)VonMagnum Wrote: I guess I don't know how to do what you're talking about offhand and can't look at it for some time. Where can you assign that within the Shield itself?On the Shield: Settings -> Network & Internet -> <wireless network name> -> IP settings -> Static -> assign static IP settings (again I used the same settings it already had from the DHCP reservation)
(2020-02-18, 04:34)Pirivan Wrote:I'll give it a try when I get back.(2020-02-18, 04:24)VonMagnum Wrote: I guess I don't know how to do what you're talking about offhand and can't look at it for some time. Where can you assign that within the Shield itself?On the Shield: Settings -> Network & Internet -> <wireless network name> -> IP settings -> Static -> assign static IP settings (again I used the same settings it already had from the DHCP reservation)
Note, for some reason getting the Android TV interface to 'move forward' after inputting an IP was problematic when using an Android remote control application (scrcpy on my PC), it doesn't like to let you 'accept' what you input to move to the next field and I had to use the my physical remote/wireless keyboard to click OK.
Also, when I tried to set this the first time it told me that the IP settings weren't valid but when I attempted it again immediately using all of the same IP address/subnet/gateway/DNS information, it accepted it and applied. So, reattempt a few times if necessary and likely configure it using the actual Shield with a remote/keyboard rather than a remote control application like scrcpy.
Quote:2020-02-17 20:05:03.786 T:21509 ERROR: Read - Error( -1, 103, Software caused connection abort )
(2020-02-18, 08:51)fritsch Wrote:Quote:2020-02-17 20:05:03.786 T:21509 ERROR: Read - Error( -1, 103, Software caused connection abort )
This could be the well known SMB issue since several months / years. Could you test with NFS?