Hello NUT Team! I continue playing with NUT for Windows and USBHID-UPS driver I've got from Frederic to fix "Data Stale" problem.
It seems there is something wrong when Network UPS Tools service is starting with disconnected USB cable. UPSMON is writing "Data Stale" to output and continue do it infinitely, even the cable is connected back. Here is a short log: Network UPS Tools upsmon 2.6.5-3691:3709M 0.000000 UPS: [email protected] (master) (power value 1) 0.015600 Using power down flag file C:\killpower 0.015600 debug level is '5' 0.015600 Trying to connect to UPS [[email protected]] 0.031200 Login on UPS [[email protected]] failed - got [ERR ACCESS-DENIED] 0.031200 Current power value: 1 0.046800 Minimum power value: 1 5.054409 pollups: [email protected] 5.054409 get_var: [email protected] / status 5.054409 Poll UPS [[email protected]] failed - Data stale 5.070009 do_notify: ntype 0x0005 (COMMBAD) 5.070009 Communications with UPS [email protected] lost 5.085609 Current power value: 1 5.085609 Minimum power value: 1 10.097895 pollups: [email protected] 10.097895 get_var: [email protected] / status 10.097895 Poll UPS [[email protected]] failed - Data stale 10.113495 do_notify: ntype 0x0008 (NOCOMM) 10.113495 UPS [email protected] is unavailable 10.129095 Current power value: 1 10.129095 Minimum power value: 1 15.134979 pollups: [email protected] 15.134979 get_var: [email protected] / status 15.134979 Poll UPS [[email protected]] failed - Data stale 15.150579 Current power value: 1 15.150579 Minimum power value: 1 20.158188 pollups: [email protected] 20.158188 get_var: [email protected] / status 20.158188 Poll UPS [[email protected]] failed - Data stale ... But if the cable is already connected when the service is starting, it catches COMMBAD (cable disconnected) and COMMOK (cable connected again) notifications: Network UPS Tools upsmon 2.6.5-3691:3709M 0.000000 UPS: [email protected] (master) (power value 1) 0.015600 Using power down flag file C:\killpower 0.015600 debug level is '5' 0.031200 Trying to connect to UPS [[email protected]] 0.031200 Login on UPS [[email protected]] failed - got [ERR ACCESS-DENIED] 0.046800 Current power value: 1 0.046800 Minimum power value: 1 5.054409 pollups: [email protected] 5.054409 get_var: [email protected] / status 5.054409 parse_status: [OL] 5.070009 parsing: [OL] 5.070009 ups_on_line: [email protected] (first time) 5.070009 Current power value: 1 5.085609 Minimum power value: 1 10.093218 pollups: [email protected] 10.093218 get_var: [email protected] / status 10.093218 parse_status: [OL] 10.108818 parsing: [OL] 10.108818 ups_on_line: [email protected] (no change) 10.108818 Current power value: 1 10.124418 Minimum power value: 1 15.125250 pollups: [email protected] 15.130250 get_var: [email protected] / status 15.136251 parse_status: [OL] 15.140251 parsing: [OL] 15.143251 ups_on_line: [email protected] (no change) 15.151252 Current power value: 1 15.155252 Minimum power value: 1 20.164865 pollups: [email protected] 20.164865 get_var: [email protected] / status 20.164865 Poll UPS [[email protected]] failed - Data stale 20.180465 do_notify: ntype 0x0005 (COMMBAD) 20.180465 Communications with UPS [email protected] lost 20.196065 Current power value: 1 20.196065 Minimum power value: 1 25.211951 pollups: [email protected] 25.211951 get_var: [email protected] / status 25.211951 Poll UPS [[email protected]] failed - Data stale 25.227551 Current power value: 1 25.227551 Minimum power value: 1 30.236992 pollups: [email protected] 30.236992 get_var: [email protected] / status 30.236992 parse_status: [OL] 30.252592 do_notify: ntype 0x0004 (COMMOK) 30.252592 Communications with UPS [email protected] established 30.268192 parsing: [OL] 30.268192 ups_on_line: [email protected] (no change) 30.268192 Current power value: 1 30.268192 Minimum power value: 1 ... Operating system is Windows 7 x64. I can send additional logs if it is necessary... Thanks, Denis _______________________________________________ Nut-upsuser mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser

