<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi Ivo,<br>
      <br>
      All I can recommend is add a delay into how often the UPS is
      polled.<br>
      <br>
      To this by inserting <i>pollinterval =10</i> into the ups.conf
      file and see how you go.<br>
      <br>
      For me this just prolonged the time until it failed but others
      have had success with this driver and the delay.<br>
      <br>
      Paul<br>
      <br>
      <br>
      <br>
      On 26/12/2012 4:05 AM, Ivo Karabojkov wrote:<br>
    </div>
    <blockquote cite="mid:50D9EAF1.6070305@kit.bg" type="cite">Merry
      Christmas to you all and best wishes!
      <br>
      <br>
      I ran into exactly the same problem as described.
      <br>
      OS: FreeBSD 9.0-Rel
      <br>
      UPS: Eaton E-Series NV 600H
      <br>
      NUT: from Ports, nut-2.6.5_1
      <br>
      driver: blazer_usb
      <br>
      <br>
      I am sure the problem is not permission-related as it occurs even
      when the driver runs as root.
      <br>
      My tested recipe for USB permissions is:
      <br>
      <br>
      1. run usbconfig to find where the device is connected. In my
      case:
      <br>
      ugen5.2: <USB to Serial INNO TECH> at usbus5, cfg=0 md=HOST
      spd=LOW (1.5Mbps) pwr=ON
      <br>
      <br>
      2. edit /etc/devfs.rules and add:
      <br>
      [nut_usb=10]
      <br>
      add path 'ugen5.2' group wheel user uucp mode 0770
      <br>
      <br>
      3. edit /etc/devfs.conf and add:
      <br>
      perm    ugen5.2 0770
      <br>
      own     ugen5.2 uucp:wheel
      <br>
      <br>
      4. Edit /etc/rc.conf and add:
      <br>
      devfs_system_ruleset="nut_usb"
      <br>
      <br>
      5. Now it's necessary to restart devfs (or the whole system if you
      prefer):
      <br>
      /etc/rc.d/devfs restart
      <br>
      <br>
      So ls -l /dev/ug* shows:
      <br>
      lrwxrwx---  1 uucp  wheel  9 Dec 24 23:36 /dev/ugen5.2 ->
      usb/5.2.0
      <br>
      and ls -l /dev/usb shows:
      <br>
      crwxrwx---  1 uucp  wheel       0, 147 Dec 24 23:36 5.2.0
      <br>
      <br>
      So I tried to debug but strange:
      <br>
       export USB_DEBUG=3
      <br>
      does not have effect on the output from blazer_usb.
      <br>
      Here are few results:
      <br>
      <br>
      # /usr/local/libexec/nut/blazer_usb -DDDD -a eaton -u uucp
      <br>
      ....
      <br>
      2470.388082     send: Q1
      <br>
      2470.647096     read: (225.4 225.4 225.4 019 49.8 13.6 25.0
      00001001
      <br>
      2472.389079     send: Q1
      <br>
      2472.631093     read: (225.4 225.4 225.4 020 49.8 13.6 25.0
      00001001
      <br>
      2474.390079     send: Q1
      <br>
      2474.647095     read: (225.4 225.4 225.4 020 49.8 13.6 25.0
      00001001
      <br>
      2476.391092     send: Q1
      <br>
      2476.631100     read: (225.4 225.4 225.4 019 49.8 13.6 25.0
      00001001
      <br>
      2478.392095     send: Q1
      <br>
      2478.647095     read: (226.9 226.9 227.4 020 49.8 13.6 25.0
      00001001
      <br>
      2480.393084     send: Q1
      <br>
      2480.631095     read: (225.4 225.0 225.4 020 49.8 13.6 25.0
      00001001
      <br>
      2482.394085     send: Q1
      <br>
      2482.647097     read: (226.4 226.4 226.4 020 49.8 13.6 25.0
      00001001
      <br>
      2484.395093     send: Q1
      <br>
      2484.631098     read: (225.4 225.4 225.4 020 49.8 13.6 25.0
      00001001
      <br>
      2486.396083     send: Q1
      <br>
      2486.647102     read: (225.4 225.4 225.4 020 49.8 13.6 25.0
      00001001
      <br>
      2488.397087     send: Q1
      <br>
      2488.631103     read: (225.0 225.4 225.4 020 49.8 13.6 25.0
      00001001
      <br>
      2490.398087     send: Q1
      <br>
      2490.647098     read: (225.4 225.0 225.4 019 49.8 13.6 25.0
      00001001
      <br>
      2492.399086     send: Q1
      <br>
      2492.663100     read: (225.4 225.4 225.4 020 49.8 13.6 25.0
      00001001
      <br>
      2494.400085     send: Q1
      <br>
      2494.647102     read: (225.4 225.4 225.4 019 49.8 13.6 25.0
      00001001
      <br>
      2496.401088     send: Q1
      <br>
      2496.663104     read: (225.4 225.0 225.4 020 49.8 13.6 25.0
      00001001
      <br>
      2498.402102     send: Q1
      <br>
      2498.647103     read: (225.4 225.4 225.4 020 49.8 13.6 25.0
      00001001
      <br>
      2500.403090     send: Q1
      <br>
      2500.663104     read: (226.4 226.4 226.4 020 49.8 13.6 25.0
      00001001
      <br>
      2502.404087     send: Q1
      <br>
      2502.647101     read: (225.4 225.4 225.4 020 49.8 13.6 25.0
      00001001
      <br>
      2504.405093     send: Q1
      <br>
      2504.663104     read: (225.9 225.9 225.9 020 49.8 13.6 25.0
      00001001
      <br>
      2506.406094     send: Q1
      <br>
      2506.647107     read: (225.9 225.9 225.9 020 49.8 13.6 25.0
      00001001
      <br>
      2508.407092     send: Q1
      <br>
      2508.663106     read: (225.4 225.4 225.4 020 49.8 13.6 25.0
      00001001
      <br>
      2510.408092     send: Q1
      <br>
      2510.647105     read: (225.4 225.4 225.4 020 49.8 13.6 25.0
      00001001
      <br>
      2517.292407     send: Unknown error
      <br>
      2517.292518     Permissions problem: Input/output error
      <br>
      <br>
      # /usr/local/libexec/nut/blazer_usb -DDDDD -a eaton -u root
      <br>
      ...
      <br>
      1451.821772     read: (221.5 221.0 221.0 019 49.8 13.6 25.0
      00001001
      <br>
      1451.821797     send_to_all: SETINFO input.voltage "221.5"
      <br>
      1451.821805     send_to_all: SETINFO input.voltage.fault "221.0"
      <br>
      1451.821813     send_to_all: SETINFO ups.load "19"
      <br>
      1453.573762     send: Q1
      <br>
      1453.837774     read: (217.1 217.1 217.6 020 49.8 13.6 25.0
      00001001
      <br>
      1453.837800     send_to_all: SETINFO input.voltage "217.1"
      <br>
      1453.837808     send_to_all: SETINFO input.voltage.fault "217.1"
      <br>
      1453.837814     send_to_all: SETINFO output.voltage "217.6"
      <br>
      1453.837821     send_to_all: SETINFO ups.load "20"
      <br>
      1455.575757     send: Q1
      <br>
      1455.821775     read: (221.5 221.0 221.0 019 49.8 13.6 25.0
      00001001
      <br>
      1455.821801     send_to_all: SETINFO input.voltage "221.5"
      <br>
      1455.821809     send_to_all: SETINFO input.voltage.fault "221.0"
      <br>
      1455.821815     send_to_all: SETINFO output.voltage "221.0"
      <br>
      1455.821821     send_to_all: SETINFO ups.load "19"
      <br>
      1457.575760     send: Q1
      <br>
      1457.837777     read: (221.0 221.0 221.0 020 49.8 13.6 25.0
      00001001
      <br>
      1457.837803     send_to_all: SETINFO input.voltage "221.0"
      <br>
      1457.837813     send_to_all: SETINFO ups.load "20"
      <br>
      1459.577762     send: Q1
      <br>
      1459.821777     read: (221.0 221.0 221.0 019 49.8 13.6 25.0
      00001001
      <br>
      1459.821806     send_to_all: SETINFO ups.load "19"
      <br>
      1461.577772     send: Q1
      <br>
      1461.837778     read: (221.0 221.5 221.0 019 49.8 13.6 25.0
      00001001
      <br>
      1461.837801     send_to_all: SETINFO input.voltage.fault "221.5"
      <br>
      1463.579761     send: Q1
      <br>
      1463.821777     read: (221.0 221.0 221.0 019 49.8 13.6 25.0
      00001001
      <br>
      1463.821803     send_to_all: SETINFO input.voltage.fault "221.0"
      <br>
      1465.580764     send: Q1
      <br>
      1465.837778     read: (221.0 221.0 221.0 019 49.8 13.6 25.0
      00001001
      <br>
      1471.992774     send: Q1
      <br>
      1472.971189     read: Unknown error
      <br>
      1472.971207     blazer_status: short reply
      <br>
      1472.971212     Communications with UPS lost: status read failed!
      <br>
      1472.973776     send: Q1
      <br>
      1473.229783     read: (221.0 221.0 221.0 020 49.8 13.6 25.0
      00001001
      <br>
      1473.229813     send_to_all: SETINFO ups.load "20"
      <br>
      1474.973779     send: Q1
      <br>
      1475.213789     read: (221.0 221.0 221.0 019 49.8 13.6 25.0
      00001001
      <br>
      1475.213817     send_to_all: SETINFO ups.load "19"
      <br>
      1476.974776     send: Q1
      <br>
      1477.229782     read: (217.6 217.1 217.6 019 49.8 13.6 25.0
      00001001
      <br>
      1477.229808     send_to_all: SETINFO input.voltage "217.6"
      <br>
      1477.229816     send_to_all: SETINFO input.voltage.fault "217.1"
      <br>
      1477.229822     send_to_all: SETINFO output.voltage "217.6"
      <br>
      1478.975780     send: Q1
      <br>
      1479.213790     read: (221.0 221.5 221.0 020 49.8 13.6 25.0
      00001001
      <br>
      1479.213814     send_to_all: SETINFO input.voltage "221.0"
      <br>
      1479.213822     send_to_all: SETINFO input.voltage.fault "221.5"
      <br>
      1479.213828     send_to_all: SETINFO output.voltage "221.0"
      <br>
      1479.213835     send_to_all: SETINFO ups.load "20"
      <br>
      1485.860174     send: Unknown error
      <br>
      1485.860289     Permissions problem: Input/output error
      <br>
      <br>
      # /usr/local/libexec/nut/blazer_usb -DDDDD -a eaton -u root
      <br>
      ...
      <br>
       382.765433     send_to_all: SETINFO output.voltage "222.0"
      <br>
       384.528374     send: Q1
      <br>
       384.781388     read: (221.5 221.5 221.5 019 49.8 13.6 25.0
      00001001
      <br>
       384.781415     send_to_all: SETINFO input.voltage "221.5"
      <br>
       384.781424     send_to_all: SETINFO input.voltage.fault "221.5"
      <br>
       384.781431     send_to_all: SETINFO output.voltage "221.5"
      <br>
       386.529381     send: Q1
      <br>
       386.765391     read: (222.0 222.0 222.0 019 49.8 13.6 25.0
      00001001
      <br>
       386.765417     send_to_all: SETINFO input.voltage "222.0"
      <br>
       386.765425     send_to_all: SETINFO input.voltage.fault "222.0"
      <br>
       386.765434     send_to_all: SETINFO output.voltage "222.0"
      <br>
       388.530371     send: Q1
      <br>
       388.781391     read: (223.0 223.0 223.0 020 49.8 13.6 25.0
      00001001
      <br>
       388.781417     send_to_all: SETINFO input.voltage "223.0"
      <br>
       388.781425     send_to_all: SETINFO input.voltage.fault "223.0"
      <br>
       388.781435     send_to_all: SETINFO output.voltage "223.0"
      <br>
       388.781443     send_to_all: SETINFO ups.load "20"
      <br>
       390.531391     send: Q1
      <br>
       390.765401     read: (223.5 223.0 223.5 019 49.8 13.6 25.0
      00001001
      <br>
       390.765422     send_to_all: SETINFO input.voltage "223.5"
      <br>
       390.765431     send_to_all: SETINFO output.voltage "223.5"
      <br>
       390.765438     send_to_all: SETINFO ups.load "19"
      <br>
       392.532374     send: Q1
      <br>
       392.781401     read: (221.5 222.0 222.0 019 49.8 13.6 25.0
      00001001
      <br>
       392.781427     send_to_all: SETINFO input.voltage "221.5"
      <br>
       392.781434     send_to_all: SETINFO input.voltage.fault "222.0"
      <br>
       392.781440     send_to_all: SETINFO output.voltage "222.0"
      <br>
       394.533371     send: Q1
      <br>
       394.797401     read: (223.0 223.0 223.0 020 49.8 13.6 25.0
      00001001
      <br>
       394.797427     send_to_all: SETINFO input.voltage "223.0"
      <br>
       394.797434     send_to_all: SETINFO input.voltage.fault "223.0"
      <br>
       394.797441     send_to_all: SETINFO output.voltage "223.0"
      <br>
       394.797447     send_to_all: SETINFO ups.load "20"
      <br>
       396.534386     send: Q1
      <br>
       396.781400     read: (223.0 223.0 223.0 019 49.8 13.6 25.0
      00001001
      <br>
       396.781434     send_to_all: SETINFO ups.load "19"
      <br>
       398.535388     send: Q1
      <br>
       398.797402     read: (223.0 223.0 223.0 020 49.8 13.6 25.0
      00001001
      <br>
       398.797434     send_to_all: SETINFO ups.load "20"
      <br>
       400.536377     send: Q1
      <br>
       400.781400     read: (223.0 223.0 223.0 019 49.8 13.6 25.0
      00001001
      <br>
       400.781431     send_to_all: SETINFO ups.load "19"
      <br>
       402.537378     send: Q1
      <br>
       402.797403     read: (223.0 223.0 223.0 019 49.8 13.6 25.0
      00001001
      <br>
       404.538382     send: Q1
      <br>
       404.781406     read: (223.0 223.0 223.0 020 49.8 13.6 25.0
      00001001
      <br>
       404.781434     send_to_all: SETINFO ups.load "20"
      <br>
       406.539378     send: Q1
      <br>
       406.797406     read: (223.5 223.0 223.5 018 49.8 13.6 25.0
      00001001
      <br>
       406.797432     send_to_all: SETINFO input.voltage "223.5"
      <br>
       406.797440     send_to_all: SETINFO output.voltage "223.5"
      <br>
       406.797448     send_to_all: SETINFO ups.load "18"
      <br>
       408.540384     send: Q1
      <br>
       408.781404     read: (223.0 223.0 223.0 019 49.8 13.6 25.0
      00001001
      <br>
       408.781430     send_to_all: SETINFO input.voltage "223.0"
      <br>
       408.781438     send_to_all: SETINFO output.voltage "223.0"
      <br>
       408.781446     send_to_all: SETINFO ups.load "19"
      <br>
       415.424218     send: Unknown error
      <br>
       415.424335     Permissions problem: Input/output error
      <br>
      <br>
      My /usr/local/etc/nut/ups.conf reads:
      <br>
      [eaton]
      <br>
          driver=blazer_usb
      <br>
          port=/dev/ugen5.2
      <br>
      <br>
      The error occurs at unpredictable time intervals.
      <br>
      It happens even when driver runs as root so I think permissions
      are not involved here.
      <br>
      <br>
      Thanks in advance for your advices.
      <br>
      Greetings,
      <br>
      Ivo
      <br>
      <br>
      _______________________________________________
      <br>
      Nut-upsuser mailing list
      <br>
      <a class="moz-txt-link-abbreviated" href="mailto:Nut-upsuser@lists.alioth.debian.org">Nut-upsuser@lists.alioth.debian.org</a>
      <br>
<a class="moz-txt-link-freetext" href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser</a>
      <br>
    </blockquote>
    <br>
  </body>
</html>