I've already tried 2 and 3.  I could procure a powered hub but I assumed 
that the power_cycle_station code in fousb.py was there for all those 
people for whom your 3 steps did not resolve the problem.  For the time 
being I've modified my config to pretend that I have a powered USB hub and 
rather than calling power_cycle_station when the console hangs I have added 
a line to reboot the Pi.  I'll see what that does.

On Tuesday, 12 December 2017 14:16:36 UTC, Andrew Milner wrote:
>
> 1. Do not use the rpi usb port directly, use a powered hub to power the 
> station (but I also keep batteries in the station)- even if you cannot 
> switch the port on and off
> 2. Ensure the usb cable to the station goes nowehere near power supplies 
> or screens - route it carefully away from all sources of possible 
> interference.
> 3. Consider magnetic rings for the usb lead - again to reduce interference 
> issues
>
> Following the above 'rules' my Fine Offset very rarely 'locks up', and in 
> fact I cannot remember when I last had a problem - so have never needed to 
> use the powered hub reset method.
>
> It seems to me that one is better solving the cause, or minimising the 
> chances of lock up occurring, rather than focussing on recovery methods.
>
>
>
> On Tuesday, 12 December 2017 14:31:42 UTC+2, Redanman wrote:
>
>> Yes, I did look at the Wiki on FineOffset lock-ups, but as I mentioned in 
>> post I do not have a powered hub.  A solution for me seems to be intimated 
>> in the latter part of the post with a dedicated scripted to look at the 
>> syslog file and react to the specific message related to USB hang-ups.  The 
>> Pi shuts downs in a coordinated fashion and then a 555 watchdog restarts 
>> the Pi.  That would work for me although I would prefer to just do "sudo 
>> reboot" rather than mess with a 555 circuit.  I was hoping for some more 
>> details on this solution.
>>
>> On Tuesday, 12 December 2017 08:58:16 UTC, Thorsten Wöll wrote:
>>>
>>> Take a close look here:
>>>
>>> https://github.com/weewx/weewx/wiki/FineOffset-USB-lockup
>>>
>>> Am Montag, 11. Dezember 2017 23:54:03 UTC+1 schrieb Redanman:
>>>>
>>>> My old WH1080 is getting more more and more USB hang-ups.  I have to 
>>>> reset the unit (remove the USB cable) to reboot the it.  I obviously lose 
>>>> the data in the circular buffer, so, depending on when I notice the 
>>>> hang-up, it leads to data loss of several hours or even days.
>>>> I power the WH1080 through the USB cable connected to my Pi, but I do 
>>>> not have a USB hub, so cannot cycle the power through the hub.  I have 
>>>> noticed that if I reboot the Pi it cycles the power on the Pi's own USB 
>>>> ports, so resetting the WH1080.  Is it possible to do this automatically 
>>>> within Weewx if it detects a USB hang-up?
>>>> Mike
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to