I still have this issue. For me it seems that the Power-Cycle 
Implementation in WeeWx is broken.

Jun  9 02:48:17 weewx weewx[18929]: fousb: unstable read: blocks differ for 
ptr 0x003840
Jun  9 02:48:32 weewx weewx[18929]: fousb: get_observations failed: [Errno 
110] Operation timed out
Jun  9 02:49:02 weewx weewx[18929]: fousb: avoid 0.268254041672
Jun  9 02:49:17 weewx weewx[18929]: fousb: get_observations failed: [Errno 
110] Operation timed out
Jun  9 02:49:47 weewx weewx[18929]: fousb: avoid 2.95263600349
Jun  9 02:50:05 weewx weewx[18929]: fousb: get_observations failed: [Errno 
110] Operation timed out
Jun  9 02:50:35 weewx weewx[18929]: fousb: avoid 2.95262002945
Jun  9 02:50:53 weewx weewx[18929]: fousb: get_observations failed: [Errno 
110] Operation timed out
Jun  9 02:50:53 weewx weewx[18929]: engine: Main loop exiting. Shutting 
engine down.
Jun  9 02:50:53 weewx weewx[18929]: engine: Shutting down StdReport thread
Jun  9 02:50:53 weewx weewx[18929]: engine: StdReport thread has been 
terminated
Jun  9 02:50:53 weewx weewx[18929]: restx: Shut down MQTT thread.
Jun  9 02:50:53 weewx weewx[18929]: engine: Caught WeeWxIOError: Max 
retries exceeded while fetching observations
Jun  9 02:50:53 weewx weewx[18929]:     ****  Waiting 60 seconds then 
retrying...
Jun  9 02:51:53 weewx weewx[18929]: engine: retrying...
Jun  9 02:51:54 weewx weewx[18929]: engine: Using configuration file 
/etc/weewx/weewx.conf
Jun  9 02:51:54 weewx weewx[18929]: engine: Debug is 1
Jun  9 02:51:54 weewx weewx[18929]: engine: Initializing engine
Jun  9 02:51:54 weewx weewx[18929]: engine: Loading station type 
FineOffsetUSB (weewx.drivers.fousb)
Jun  9 02:51:54 weewx weewx[18929]: fousb: driver version is 1.9
Jun  9 02:51:54 weewx weewx[18929]: fousb: power cycling enabled for port 4 
on hub 001:002
Jun  9 02:51:54 weewx weewx[18929]: fousb: polling mode is PERIODIC
Jun  9 02:51:54 weewx weewx[18929]: fousb: polling interval is 60
Jun  9 02:51:54 weewx weewx[18929]: fousb: found station on USB bus= device=
Jun  9 02:51:54 weewx weewx[18929]: engine: Loading service 
weewx.engine.StdTimeSynch
Jun  9 02:51:54 weewx weewx[18929]: engine: Finished loading service 
weewx.engine.StdTimeSynch
Jun  9 02:51:54 weewx weewx[18929]: engine: Loading service 
weewx.engine.StdConvert
Jun  9 02:51:54 weewx weewx[18929]: engine: StdConvert target unit is 0x1
Jun  9 02:51:54 weewx weewx[18929]: engine: Finished loading service 
weewx.engine.StdConvert
Jun  9 02:51:54 weewx weewx[18929]: engine: Loading service 
weewx.engine.StdCalibrate
Jun  9 02:51:54 weewx weewx[18929]: engine: Finished loading service 
weewx.engine.StdCalibrate
Jun  9 02:51:54 weewx weewx[18929]: engine: Loading service 
weewx.engine.StdQC
Jun  9 02:51:54 weewx weewx[18929]: engine: Finished loading service 
weewx.engine.StdQC
Jun  9 02:51:54 weewx weewx[18929]: engine: Loading service 
weewx.wxservices.StdWXCalculate
Jun  9 02:51:54 weewx weewx[18929]: wxcalculate: The following values will 
be calculated: barometer=prefer_hardware, windchill=prefer_hardware, 
dewpoint=prefer_hardware, appTemp=prefer_hardware, 
rainRate=prefer_hardware, windrun=prefer_hardware, 
heatindex=prefer_hardware, maxSolarRad=prefer_hardware, 
humidex=prefer_hardware, pressure=prefer_hardware, 
inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware, 
cloudbase=prefer_hardware
Jun  9 02:51:54 weewx weewx[18929]: wxcalculate: The following algorithms 
will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Jun  9 02:51:54 weewx weewx[18929]: engine: Finished loading service 
weewx.wxservices.StdWXCalculate
Jun  9 02:51:54 weewx weewx[18929]: engine: Loading service 
user.weewxwd3.WdWXCalculate
Jun  9 02:51:54 weewx weewx[18929]: engine: Finished loading service 
user.weewxwd3.WdWXCalculate
Jun  9 02:51:54 weewx weewx[18929]: engine: Loading service 
weewx.engine.StdArchive
Jun  9 02:51:54 weewx weewx[18929]: engine: Archive will use data binding 
wx_binding
Jun  9 02:51:54 weewx weewx[18929]: engine: Record generation will be 
attempted in 'software'
Jun  9 02:51:54 weewx weewx[18929]: engine: Using archive interval of 300 
seconds (software record generation)
Jun  9 02:51:54 weewx weewx[18929]: engine: Use LOOP data in hi/low 
calculations: 1
Jun  9 02:51:54 weewx weewx[18929]: manager: Daily summary version is 2.0
Jun  9 02:51:54 weewx weewx[18929]: engine: Using binding 'wx_binding' to 
database 'weewx.sdb'
Jun  9 02:51:54 weewx weewx[18929]: manager: Starting backfill of daily 
summaries
Jun  9 02:51:54 weewx weewx[18929]: engine: Finished loading service 
weewx.engine.StdArchive
Jun  9 02:51:54 weewx weewx[18929]: engine: Loading service 
user.weewxwd3.WdArchive
Jun  9 02:51:54 weewx weewx[18929]: WdArchive: WdArchive will use data 
binding wd_binding
Jun  9 02:51:54 weewx weewx[18929]: manager: Daily summary version is 2.0
Jun  9 02:51:54 weewx weewx[18929]: WdArchive: Using binding 'wd_binding' 
to database 'weewxwd.sdb'
Jun  9 02:51:54 weewx weewx[18929]: WdArchive: Starting backfill of daily 
summaries
Jun  9 02:51:54 weewx weewx[18929]: manager: Starting backfill of daily 
summaries
Jun  9 02:51:54 weewx weewx[18929]: WdArchive: Daily summaries up to date.
Jun  9 02:51:54 weewx weewx[18929]: engine: Finished loading service 
user.weewxwd3.WdArchive
Jun  9 02:51:54 weewx weewx[18929]: engine: Loading service 
weewx.restx.StdStationRegistry
Jun  9 02:51:54 weewx weewx[18929]: restx: StationRegistry: Registration 
not requested.
Jun  9 02:51:54 weewx weewx[18929]: engine: Finished loading service 
weewx.restx.StdStationRegistry
Jun  9 02:51:54 weewx weewx[18929]: engine: Loading service 
weewx.restx.StdWunderground
Jun  9 02:51:54 weewx weewx[18929]: restx: Wunderground: Posting not 
enabled.
Jun  9 02:51:54 weewx weewx[18929]: engine: Finished loading service 
weewx.restx.StdWunderground
Jun  9 02:51:54 weewx weewx[18929]: engine: Loading service 
weewx.restx.StdPWSweather
Jun  9 02:51:54 weewx weewx[18929]: restx: PWSweather: Posting not enabled.
Jun  9 02:51:54 weewx weewx[18929]: engine: Finished loading service 
weewx.restx.StdPWSweather
Jun  9 02:51:54 weewx weewx[18929]: engine: Loading service 
weewx.restx.StdCWOP
Jun  9 02:51:54 weewx weewx[18929]: restx: CWOP: Posting not enabled.
Jun  9 02:51:54 weewx weewx[18929]: engine: Finished loading service 
weewx.restx.StdCWOP
Jun  9 02:51:54 weewx weewx[18929]: engine: Loading service 
weewx.restx.StdWOW
Jun  9 02:51:54 weewx weewx[18929]: restx: WOW: Posting not enabled.
Jun  9 02:51:54 weewx weewx[18929]: engine: Finished loading service 
weewx.restx.StdWOW
Jun  9 02:51:54 weewx weewx[18929]: engine: Loading service 
weewx.restx.StdAWEKAS
Jun  9 02:51:54 weewx weewx[18929]: restx: AWEKAS: Posting not enabled.
Jun  9 02:51:54 weewx weewx[18929]: engine: Finished loading service 
weewx.restx.StdAWEKAS
Jun  9 02:51:54 weewx weewx[18929]: engine: Loading service user.mqtt.MQTT
Jun  9 02:51:54 weewx weewx[18929]: restx: MQTT: service version is 0.18
Jun  9 02:51:54 weewx weewx[18929]: restx: MQTT: binding to ['archive', 
'loop']
Jun  9 02:51:54 weewx weewx[18929]: restx: MQTT: topic is weather/weewx
Jun  9 02:51:54 weewx weewx[18929]: restx: MQTT: desired unit system is 
METRIC
Jun  9 02:51:54 weewx weewx[18929]: restx: MQTT: data will be uploaded to 
mqtt://mqtt:[email protected]:1883/
Jun  9 02:51:54 weewx weewx[18929]: engine: Finished loading service 
user.mqtt.MQTT
Jun  9 02:51:54 weewx weewx[18929]: engine: Loading service 
weewx.engine.StdPrint
Jun  9 02:51:54 weewx weewx[18929]: engine: Finished loading service 
weewx.engine.StdPrint
Jun  9 02:51:54 weewx weewx[18929]: engine: Loading service 
weewx.engine.StdReport
Jun  9 02:51:54 weewx weewx[18929]: engine: Finished loading service 
weewx.engine.StdReport
Jun  9 02:51:54 weewx weewx[18929]: engine: Starting up weewx version 3.9.1
Jun  9 02:51:54 weewx weewx[18929]: engine: Station does not support 
reading the time
Jun  9 02:51:54 weewx weewx[18929]: manager: Daily summary version is 2.0
Jun  9 02:52:09 weewx weewx[18929]: fousb: get_records failed: [Errno 110] 
Operation timed out
Jun  9 02:52:54 weewx weewx[18929]: fousb: get_records failed: [Errno 110] 
Operation timed out
Jun  9 02:53:39 weewx weewx[18929]: fousb: get_records failed: [Errno 110] 
Operation timed out
Jun  9 02:54:24 weewx weewx[18929]: fousb: get_records failed: [Errno 110] 
Operation timed out
Jun  9 02:54:24 weewx weewx[18929]: engine: Main loop exiting. Shutting 
engine down.
Jun  9 02:54:24 weewx weewx[18929]: restx: Shut down MQTT thread.
Jun  9 02:54:24 weewx weewx[18929]: engine: Caught WeeWxIOError: Max 
retries exceeded while fetching records
Jun  9 02:54:24 weewx weewx[18929]:     ****  Waiting 60 seconds then 
retrying...
Jun  9 02:55:24 weewx weewx[18929]: engine: retrying...
Jun  9 02:55:24 weewx weewx[18929]: engine: Using configuration file 
/etc/weewx/weewx.conf
Jun  9 02:55:24 weewx weewx[18929]: engine: Debug is 1
Jun  9 02:55:24 weewx weewx[18929]: engine: Initializing engine
Jun  9 02:55:24 weewx weewx[18929]: engine: Loading station type 
FineOffsetUSB (weewx.drivers.fousb)
Jun  9 02:55:24 weewx weewx[18929]: fousb: driver version is 1.9
Jun  9 02:55:24 weewx weewx[18929]: fousb: power cycling enabled for port 4 
on hub 001:002
Jun  9 02:55:24 weewx weewx[18929]: fousb: polling mode is PERIODIC
Jun  9 02:55:24 weewx weewx[18929]: fousb: polling interval is 60
Jun  9 02:55:24 weewx weewx[18929]: fousb: found station on USB bus= device=
Jun  9 02:55:24 weewx weewx[18929]: engine: Loading service 
weewx.engine.StdTimeSynch
Jun  9 02:55:24 weewx weewx[18929]: engine: Finished loading service 
weewx.engine.StdTimeSynch
Jun  9 02:55:24 weewx weewx[18929]: engine: Loading service 
weewx.engine.StdConvert
Jun  9 02:55:24 weewx weewx[18929]: engine: StdConvert target unit is 0x1
Jun  9 02:55:24 weewx weewx[18929]: engine: Finished loading service 
weewx.engine.StdConvert
Jun  9 02:55:24 weewx weewx[18929]: engine: Loading service 
weewx.engine.StdCalibrate
Jun  9 02:55:24 weewx weewx[18929]: engine: Finished loading service 
weewx.engine.StdCalibrate
Jun  9 02:55:24 weewx weewx[18929]: engine: Loading service 
weewx.engine.StdQC
Jun  9 02:55:24 weewx weewx[18929]: engine: Finished loading service 
weewx.engine.StdQC
Jun  9 02:55:24 weewx weewx[18929]: engine: Loading service 
weewx.wxservices.StdWXCalculate

I can see here that "power cycling" is enabled, but it is not executed.

When running

sudo python usb_control-0.7rc3.py --hub 2001:f103 --port 4 --power 0
sudo python usb_control-0.7rc3.py --hub 2001:f103 --port 4 --power 1

The Weatherstation gets resetted and everything works again.

Br,
Johannes


Am Dienstag, 14. Mai 2019 08:37:07 UTC+2 schrieb Johannes Ebner:
>
> Hi,
>
> I have the WS3080 and I have every couple of days the issue with the 
> Lockup and not retreiving any data anymore.
>
> Therefore I have followed the procedure of this page 
> https://github.com/weewx/weewx/wiki/FineOffset-USB-lockup and bought the 
> DLINK 7 Port Hub.
>
> After connecting the Hub I was running lsusb:
>
> pi@weewx:/etc/weewx $ lsusb
> Bus 001 Device 003: ID 1941:8021 Dream Link WH1080 Weather Station / USB 
> Missile Launcher
> Bus 001 Device 002: ID 2001:f103 D-Link Corp. DUB-H7 7-port USB 2.0 hub
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>
> So the DLINK USB Hub is on 001:003
>
> then I have downloaded usb_control and where running a scan:
>
> pi@weewx:~ $ sudo python usb_control-0.7rc3.py --scan
> device at :unknown
>   id: 2001:f103
>   class: hub
>   manufacturer: unknown
>   product: unknown
>   num_ports: 7
>   power_switching: individual
>   indicator_support: none
>   port 1: 0000.0100 power
>   port 2: 0000.0100 power
>   port 3: 0000.0100 power
>   port 4: 0000.0303 lowspeed power enable connect
>   port 5: 0000.0100 power
>   port 6: 0000.0100 power
>   port 7: 0000.0100 power
>
>
> Here we can see again the USB Hub and also that the Weatherstation is 
> connected to Port 4.
>
>
> When running the following command nothing will happen.
>
> pi@weewx:~ $ sudo python usb_control-0.7rc3.py --hub 001:002 --port 4 
> --power 0
> looking for 001:002
> no match for '1941:8021' at ''
> no match for '2001:f103' at ''
> no match for '1d6b:0002' at ''
> 001:002 not found
>
> When running this command, I can turn off and on the Power of the 
> Weatherstation:
>
> pi@weewx:~ $ sudo python usb_control-0.7rc3.py --hub 2001:f103 --port 4 
> --power 0
> looking for 2001:f103
> no match for '1941:8021' at ''
> found match for '2001:f103' at ''
> no match for '1d6b:0002' at ''
>
>
> this it the weewx.conf:
>
> [FineOffsetUSB]
>     # This section is for the Fine Offset series of weather stations.
>
>     # The station model, e.g., WH1080, WS1090, WS2080, WH3081
>     model = WS3080
>
>     # How often to poll the station for data, in seconds
>     polling_interval = 60
>     polling_mode = PERIODIC
>
>     #power_cycle_hub = 2001:f103
>     power_cycle_hub = 001:002
>     power_cycle_port = 4
>
>     # The driver to use:
>     driver = weewx.drivers.fousb
>
> Regardless if I use 001:002 or 2001:f103 weewx will not powercycle the 
> Weatherstation.
>
> Any ideas?
>
> I am using the latest stable weewx version.
>
> Br,
> Johannes
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/3a02fff0-f9fe-489c-9a2f-ebad91d9a6a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to