PrachiSGandhi at Eaton.com
2011-Oct-05 07:08 UTC
[Nut-upsdev] Inclusion of header file <time.h> can be replaced with "timehead.h"
Hello All, Files nut-libfreeipmi.c and scan_avahi.c use <time.h> As per standard coding guidelines we can use "timehead.h". Let me know your comments on this. Thanks & Regards, Prachi Gandhi Eaton India Engineering Center (EIEC) Kharadi, Pune. Tel : 91-20-6633 7432 email: PrachiSGandhi at Eaton.com URL: www.eaton.com <file:///C:/Documents%20and%20Settings/e5251237/Application%20Data/Micro soft/Signatures/www.eaton.com> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20111005/94e37b31/attachment.html>
Arnaud Quette
2011-Oct-06 08:17 UTC
[Nut-upsdev] Inclusion of header file <time.h> can be replaced with "timehead.h"
Hello Prachi,> Files nut-libfreeipmi.c and scan_avahi.c use <time.h> > As per standard coding guidelines we can use "timehead.h". > Let me know your comments on this.you can apply it to the trunk. be sure to run a "distcheck", with both ipmi and the scanner built, before committing. cheers, Arnaud -- Linux / Unix Expert R&D - Eaton - http://powerquality.eaton.com Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/ Debian Developer - http://www.debian.org Free Software Developer - http://arnaud.quette.free.fr/
Trantore
2011-Oct-06 09:36 UTC
[Nut-upsdev] Request for new UPS support : Tecnoware ECO LCD 650VA
Hi Arnoud, Works Great!!!! Thank you.... My [ups.conf]: [upsilon2k] driver = blazer_usb subdriver = krauler vendorid = 0001 productid = 0000 langid_fix = 1 port = auto desc = "UPSilon 2000" I started the driver with: $ blazer_usb -DDDDD -u root -a upsilon2k The driver connects with the UPS and WORKS!!! Some "timeouts", time to time, and some "read erros" plus "parsing failed". But, working the input.voltage, the load, output.voltage, etc. Here a partial output (after minutes of working): 303.383627 send: Q1 303.648101 received 96 (96) 303.648136 read: (230.0 165.0 230.0 022 50.0 27.5 00.0 00001000 303.648150 send_to_all: SETINFO input.voltage "230.0" 303.648156 send_to_all: SETINFO output.voltage "230.0" 303.648163 send_to_all: SETINFO ups.load "22" 303.648167 send_to_all: SETINFO input.frequency "50.0" 303.648173 send_to_all: SETINFO battery.voltage "27.50" 305.385953 send: Q1 305.646206 received 96 (96) 305.646238 read: (230.0 165.0 230.0 022 50.2 27.5 00.0 00001000 305.646257 send_to_all: SETINFO input.frequency "50.2" 307.388823 send: Q1 307.628018 received 96 (96) 307.628048 read: (fff0f 307.628053 blazer_status: non numerical value [fff0f] 307.628056 blazer_status: parsing failed 307.628060 Communications with UPS lost: status read failed! 309.392095 send: Q1 309.667952 received 96 (96) 309.667982 read: (233.0 165.0 233.0 021 50.0 27.5 00.0 00001000 309.667995 send_to_all: SETINFO input.voltage "233.0" 309.668001 send_to_all: SETINFO output.voltage "233.0" 309.668008 send_to_all: SETINFO ups.load "21" 309.668012 send_to_all: SETINFO input.frequency "50.0" 311.394441 send: Q1 311.641531 received 96 (96) 311.641558 read: (231.0 165.0 231.0 022 50.0 27.5 00.0 00001000 311.641571 send_to_all: SETINFO input.voltage "231.0" 311.641577 send_to_all: SETINFO output.voltage "231.0" 311.641585 send_to_all: SETINFO ups.load "22" 313.397262 send: Q1 313.665356 received 96 (96) 313.665382 read: (231.0 165.0 231.0 022 50.0 27.5 00.0 00001000 315.400208 send: Q1 315.640360 received 96 (96) 315.640391 read: (230.0 165.0 230.0 022 50.0 27.5 00.0 00001000 315.640405 send_to_all: SETINFO input.voltage "230.0" 315.640411 send_to_all: SETINFO output.voltage "230.0" 317.402938 send: Q1 317.663314 received 96 (96) 317.663345 read: (233.0 165.0 233.0 021 50.0 27.5 00.0 00001000 317.663357 send_to_all: SETINFO input.voltage "233.0" 317.663363 send_to_all: SETINFO output.voltage "233.0" 317.663370 send_to_all: SETINFO ups.load "21" 319.405767 send: Q1 319.655299 received 96 (96) 319.655332 read: (233.0 165.0 233.0 021 50.0 27.5 00.0 00001000 321.408594 send: Q1 321.678543 received 96 (96) 321.678573 read: (231.0 165.0 231.0 021 50.0 25.7 00.0 00001000 321.678587 send_to_all: SETINFO input.voltage "231.0" 321.678593 send_to_all: SETINFO output.voltage "231.0" 321.678603 send_to_all: SETINFO battery.voltage "25.70" 323.411401 send: Q1 323.676873 received 96 (96) 323.676904 read: (233.0 165.0 233.0 022 50.0 27.5 00.0 00001000 323.676917 send_to_all: SETINFO input.voltage "233.0" 323.676923 send_to_all: SETINFO output.voltage "233.0" 323.677035 send_to_all: SETINFO ups.load "22" 323.677047 send_to_all: SETINFO battery.voltage "27.50" 325.414253 send: Q1 325.696228 received 96 (96) 325.696261 read: (233.0 165.0 233.0 021 50.0 27.5 00.0 00001000 325.696280 send_to_all: SETINFO ups.load "21" 327.417075 send: Q1 327.668801 received 96 (96) 327.668836 read: (230.0 165.0 230.0 022 50.2 27.5 00.0 00001000 327.668849 send_to_all: SETINFO input.voltage "230.0" 327.668855 send_to_all: SETINFO output.voltage "230.0" 327.668862 send_to_all: SETINFO ups.load "22" 327.668867 send_to_all: SETINFO input.frequency "50.2" 329.419917 send: Q1 329.690746 received 96 (96) 329.690780 read: (233.0 165.0 233.0 021 50.0 27.5 00.0 00001000 329.690792 send_to_all: SETINFO input.voltage "233.0" 329.690798 send_to_all: SETINFO output.voltage "233.0" 329.690805 send_to_all: SETINFO ups.load "21" 329.690809 send_to_all: SETINFO input.frequency "50.0" 331.422786 send: Q1 331.688144 received 96 (96) 331.688182 read: (230.0 165.0 230.0 021 50.0 27.5 00.0 00001000 331.688195 send_to_all: SETINFO input.voltage "230.0" 331.688201 send_to_all: SETINFO output.voltage "230.0" 333.425869 send: Q1 333.429484 read: timeout 333.429502 blazer_status: short reply 333.429506 Communications with UPS lost: status read failed! 335.429367 send: Q1 335.704098 received 96 (96) 335.704128 read: (233.0 165.0 233.0 021 50.0 27.5 00.0 00001000 335.704140 send_to_all: SETINFO input.voltage "233.0" 335.704146 send_to_all: SETINFO output.voltage "233.0" 337.432285 send: Q1 337.678356 received 96 (96) 337.678388 read: (231.0 165.0 231.0 021 50.0 27.5 00.0 00001000 337.678400 send_to_all: SETINFO input.voltage "231.0" 337.678406 send_to_all: SETINFO output.voltage "231.0" 339.435039 send: Q1 339.702709 received 96 (96) 339.702739 read: (233.0 165.0 233.0 021 50.0 27.5 00.0 00001000 339.702751 send_to_all: SETINFO input.voltage "233.0" 339.702757 send_to_all: SETINFO output.voltage "233.0" 341.437847 send: Q1 341.700599 received 96 (96) 341.700629 read: (231.0 165.0 231.0 021 50.2 27.5 00.0 00001000 341.700642 send_to_all: SETINFO input.voltage "231.0" 341.700648 send_to_all: SETINFO output.voltage "231.0" 341.700657 send_to_all: SETINFO input.frequency "50.2" 343.440709 send: Q1 343.717146 received 96 (96) 343.717179 read: (231.0 165.0 231.0 021 50.0 27.5 00.0 00001000 343.717199 send_to_all: SETINFO input.frequency "50.0" 345.443831 send: Q1 345.691682 received 96 (96) 345.691716 read: (231.0 165.0 231.0 021 50.2 26.6 00.0 00001000 345.691737 send_to_all: SETINFO input.frequency "50.2" 345.691744 send_to_all: SETINFO battery.voltage "26.60" 347.446345 send: Q1 347.714697 received 96 (96) 347.714729 read: (231.0 165.0 231.0 021 50.0 27.0 00.0 00001000 347.714748 send_to_all: SETINFO input.frequency "50.0" 347.714753 send_to_all: SETINFO battery.voltage "27.00" 349.449206 send: Q1 349.687581 received 96 (96) 349.687614 read: (231.0 165.0 231.0 020 50.0 27.5 00.0 00001000 349.687632 send_to_all: SETINFO ups.load "20" 349.687640 send_to_all: SETINFO battery.voltage "27.50" 351.452010 send: Q1 351.710806 received 96 (96) 351.710839 read: (231.0 165.0 231.0 021 50.0 27.5 00.0 00001000 351.710857 send_to_all: SETINFO ups.load "21" 353.454836 send: Q1 353.707391 received 96 (96) 353.707423 read: (230.0 165.0 230.0 021 50.0 27.5 00.0 00001000 353.707436 send_to_all: SETINFO input.voltage "230.0" 353.707442 send_to_all: SETINFO output.voltage "230.0" 355.457669 send: Q1 355.725479 received 96 (96) 355.725515 read: (231.0 165.0 231.0 021 50.0 27.5 00.0 00001000 355.725528 send_to_all: SETINFO input.voltage "231.0" 355.725534 send_to_all: SETINFO output.voltage "231.0" 357.460552 send: Q1 357.700029 received 96 (96) 357.700064 read: (231.0 165.0 231.0 021 50.0 25.8 00.0 00001000 357.700086 send_to_all: SETINFO battery.voltage "25.80" 359.463337 send: Q1 359.721382 received 96 (96) 359.721419 read: (230.0 165.0 230.0 021 50.0 27.5 00.0 00001000 359.721434 send_to_all: SETINFO input.voltage "230.0" 359.721440 send_to_all: SETINFO output.voltage "230.0" 359.721450 send_to_all: SETINFO battery.voltage "27.50" 361.466174 send: Q1 361.740660 received 96 (96) 361.740691 read: (228.0 165.0 228.0 021 50.2 27.5 00.0 00001000 361.740704 send_to_all: SETINFO input.voltage "228.0" 361.740710 send_to_all: SETINFO output.voltage "228.0" 361.740718 send_to_all: SETINFO input.frequency "50.2" 363.469015 send: Q1 363.714187 received 96 (96) 363.714222 read: (228.0 165.0 228.0 021 50.0 27.0 00.0 00001000 363.714241 send_to_all: SETINFO input.frequency "50.0" 363.714247 send_to_all: SETINFO battery.voltage "27.00" 365.471953 send: Q1 365.730728 received 96 (96) 365.730762 read: (228.0 165.0 228.0 021 50.0 27.5 00.0 00001000 365.730784 send_to_all: SETINFO battery.voltage "27.50" 367.474629 send: Q1 367.753346 received 96 (96) 367.753373 read: (228.0 165.0 228.0 021 50.0 27.5 00.0 00001000 369.477525 send: Q1 369.726753 received 96 (96) 369.726778 read: (230.0 165.0 230.0 021 50.0 27.5 00.0 00001000 369.726792 send_to_all: SETINFO input.voltage "230.0" 369.726798 send_to_all: SETINFO output.voltage "230.0" 371.480513 send: Q1 371.751860 received 96 (96) 371.751890 read: (228.0 165.0 228.0 021 50.0 27.5 00.0 00001000 371.751903 send_to_all: SETINFO input.voltage "228.0" 371.751909 send_to_all: SETINFO output.voltage "228.0" 373.483152 send: Q1 373.723054 received 96 (96) 373.723091 read: (231.0 165.0 231.0 021 50.0 27.5 00.0 00001000 373.723188 send_to_all: SETINFO input.voltage "231.0" 373.723228 send_to_all: SETINFO output.voltage "231.0" 375.489467 send: Q1 375.740648 received 96 (96) 375.740673 read: (231.0 165.0 231.0 021 50.0 27.2 00.0 00001000 375.740695 send_to_all: SETINFO battery.voltage "27.20" 377.491738 send: Q1 377.743803 received 96 (96) 377.743833 read: (231.0 165.0 231.0 021 50.0 27.2 00.0 00001000 379.494566 send: Q1 379.759838 received 96 (96) 379.759873 read: (228.0 165.0 228.0 021 50.0 27.5 00.0 00001000 379.759887 send_to_all: SETINFO input.voltage "228.0" 379.759893 send_to_all: SETINFO output.voltage "228.0" 379.759904 send_to_all: SETINFO battery.voltage "27.50" 381.497425 send: Q1 381.777642 received 96 (96) 381.777675 read: (230.0 165.0 230.0 021 50.2 27.5 00.0 00001000 381.777690 send_to_all: SETINFO input.voltage "230.0" 381.777697 send_to_all: SETINFO output.voltage "230.0" 381.777706 send_to_all: SETINFO input.frequency "50.2" 383.500241 send: Q1 383.752200 received 96 (96) 383.752232 read: (228.0 165.0 228.0 021 50.0 27.5 00.0 00001000 383.752245 send_to_all: SETINFO input.voltage "228.0" 383.752251 send_to_all: SETINFO output.voltage "228.0" 383.752259 send_to_all: SETINFO input.frequency "50.0" 385.503094 send: Q1 385.774587 received 96 (96) 385.774615 read: (228.0 165.0 228.0 021 50.2 27.5 00.0 00001000 385.774634 send_to_all: SETINFO input.frequency "50.2" 387.505914 send: Q1 387.748105 received 96 (96) 387.748135 read: (228.0 165.0 228.0 021 50.0 27.2 00.0 00001000 387.748154 send_to_all: SETINFO input.frequency "50.0" 387.748160 send_to_all: SETINFO battery.voltage "27.20" 389.508774 send: Q1 389.790030 received 96 (96) 389.790064 read: (228.0 165.0 228.0 021 50.0 27.5 00.0 00001000 389.790087 send_to_all: SETINFO battery.voltage "27.50" 391.511577 send: Q1 391.765531 received 96 (96) 391.765562 read: (230.0 165.0 230.0 021 50.0 27.5 00.0 00001000 391.765574 send_to_all: SETINFO input.voltage "230.0" 391.765580 send_to_all: SETINFO output.voltage "230.0" 393.514417 send: Q1 393.785620 received 96 (96) 393.785656 read: (228.0 165.0 228.0 021 50.0 27.5 00.0 00001000 393.785670 send_to_all: SETINFO input.voltage "228.0" 393.785677 send_to_all: SETINFO output.voltage "228.0" 395.517285 send: Q1 395.760445 received 96 (96) 395.760477 read: (228.0 165.0 228.0 021 50.0 27.5 00.0 00001000 397.520024 send: Q1 397.781786 received 96 (96) 397.781818 read: (228.0 165.0 228.0 021 50.0 27.5 00.0 00001000 399.521853 send: Q1 399.525818 read: timeout 399.525835 blazer_status: short reply 399.525838 Communications with UPS lost: status read failed! 401.524751 send: Q1 401.799200 received 96 (96) 401.799235 read: (230.0 165.0 230.0 021 50.2 27.5 00.0 00001000 401.799248 send_to_all: SETINFO input.voltage "230.0" 401.799254 send_to_all: SETINFO output.voltage "230.0" 401.799262 send_to_all: SETINFO input.frequency "50.2" What more you need from me to add the patch to the main branch for 2.6.3 ? Regards, Trantore.