<div dir="ltr">Hi,<br>Apologies for picking up on this old thread but I never had gotten this issue resolved and I&#39;m now back in the location where the UPSs are so I was hoping we could look into the issue again.<br><br>
Basically, I had two Unitek Alpha 1200sx UPSs, connected to Fedora Linux 8. The NUT version seems to be:<br><br>Network UPS Tools upsd 2.2.0-<br>not listening on <a href="http://0.0.0.0">0.0.0.0</a> port 3493<br><br>The driver seems to be the megatec_usb driver. The problem I have is that this only seems to work occasionally (I typically have to restart the deamon several times, switch on/off the UPSs etc in order to get it to work). Most of the time, the controller seems to fail to start up and I subsequently get the following message:<br>
<br>Broadcast message from nut (Tue Oct&nbsp; 7 21:14:44 2008):<br><br>UPS unial1200@localhost is unavailable<br><br>I&#39;m not quite sure what other information you&#39;d need. That said, I can provide any output requested.<br>
<br>Thanks in advance for helping me out.<br><br>Joe<br><br><br><div class="gmail_quote">On Sat, Jan 5, 2008 at 12:15 PM, Joseph Borg <span dir="ltr">&lt;<a href="mailto:juu.borg@gmail.com">juu.borg@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>The sub-driver is agiler. The requested output follows:<br><br>---------------<div class="Ih2E3d">
<br>Network UPS Tools 2.2.0- - Megatec protocol driver 1.5.4 [megatec_usb]<br>Carlos Rodrigues (c) 2003-2007<br><br>Serial-over-USB transport layer for Megatec protocol driver [megatec_usb]
<br><br></div>debug level is &#39;5&#39;<br>Checking device (0000/0000) (002/001)<br>- VendorID: 0000<br>- ProductID: 0000<br>- Manufacturer: unknown<br>- Product: unknown<br>- Serial Number: unknown<br>- Bus: 002<br>Trying to match device
<br>Device does not match - skipping<br>Checking device (0000/0000) (001/001)<br>- VendorID: 0000<br>- ProductID: 0000<br>- Manufacturer: unknown<br>- Product: unknown<br>- Serial Number: unknown<br>- Bus: 001<br>Trying to match device
<br>Device does not match - skipping<br>Checking device (0F03/0001) (001/002)<br>- VendorID: 0f03<br>- ProductID: 0001<br>- Manufacturer: Ver 1.0<br>- Product: USB To RS232 Interface (V1.0) BaudRate 2400bps<br>- Serial Number: unknown
<br>- Bus: 001<br>Trying to match device<br>Device matches<br>failed to claim USB device, trying 2 more time(s)...<br>detaching kernel driver from USB device...<br>trying again to claim USB device...<br><br>Broadcast message from nut (Sat Jan&nbsp; 5 12:10:56 2008):
<br><br>Communications with UPS unial1200@localhost lost<br>Starting UPS detection process...<br>Attempting to detect the UPS...<br>Sending &quot;Q1&quot; command...<br>&quot;Q1&quot; command successful.<br>Attempting to detect the UPS...
<br>Sending &quot;Q1&quot; command...<br>&quot;Q1&quot; command successful.<br>Attempting to detect the UPS...<br>Sending &quot;Q1&quot; command...<br>&quot;Q1&quot; command successful.<br>Attempting to detect the UPS...<br>

Sending &quot;Q1&quot; command...<br>&quot;Q1&quot; command successful.<br>Attempting to detect the UPS...<br>Sending &quot;Q1&quot; command...<br>&quot;Q1&quot; command successful.<br>0 out of 5 detection attempts failed (minimum failures: 2).
<br>Asking for UPS information (&quot;I&quot; command)...<br>UPS information: #UNITEK&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Alph1200Sx A1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br><div class="Ih2E3d">Megatec protocol UPS detected [UNITEK Alph1200Sx A1].<br></div>Asking for UPS power ratings (&quot;F&quot; command)...
<br>UPS power ratings: #230.0 4.3 24.00 50.0<br>Asking for UPS status (&quot;Q1&quot; command)...<br>UPS status: (230.0 230.0 2&gt;3.0 016 50.0 29.0 32.0 00001000<br>24.0V battery, present voltage (0.0V) outside of supported intervals.
<br>This UPS has an unsupported combination of battery voltage/number of batteries.<br>Cannot calculate charge percentage for this UPS.<br>Done setting up the UPS.<br>Asking for UPS status (&quot;Q1&quot; command)...<br>
UPS status: (
230.0 230.0 353.0 016 50.0 28.8 32.0 00001000<br>dstate_init: sock /var/run/nut/megatec_usb-unial1200 open on fd 5<br>Asking for UPS status (&quot;Q1&quot; command)...<br>UPS status: (230.0 230.0 2&gt;3.0 016 50.0 28.8 32.0
 00001000<br>Asking for UPS status (&quot;Q1&quot; command)...<br>UPS status: (230.0 230.0 323.4 016 50.0 29.0 32.0 00001000<br>Asking for UPS status (&quot;Q1&quot; command)...<br>UPS status: (230.0 230.0 302.&gt; 016 50.0
 28.8 32.0 00001000<br>Asking for UPS status (&quot;Q1&quot; command)...<br>--------------------<br>As noted in the previous email, the driver doesn&#39;t always load sucessfully and I have to switch off the UPs to sort this out. I&#39;m now sure if this is a known/limitation/driver incompatibility/some tweak I have to do. That said, when the driver does load, then everything seems fine.
<br><br>I also suspect that all the other Unitek Alpha YYYYsx models should work since they seem to me to be the same as my 1200sx one; only a different VA.<br><br>Cheers,<br><br>Joe<div><div></div><div class="Wj3C7c"><br>
<br><br><br><br><div class="gmail_quote">
On Jan 4, 2008 7:46 PM, Alexander I. Gordeev &lt;<a href="mailto:lasaine@lvk.cs.msu.su" target="_blank">lasaine@lvk.cs.msu.su</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div>On Thu, 03 Jan 2008 21:33:32 +0300, Joseph Borg &lt;<a href="mailto:juu.borg@gmail.com" target="_blank">juu.borg@gmail.com</a>&gt; wrote:<br><br>&gt; Just a small update; I figured out the udev script so now the processes
<br>&gt; don&#39;t run as root and all still works :-). Thanks for all your help. The<br>&gt; only remaining issue is the intermittant failures when the driver is<br>&gt; loading..<br>&gt;<br>&gt; Joe<br>&gt;<br><br></div>

Could you please provide the output of the actual driver, like this:<br><br>megatec_usb -a myups -DDDDD<br><br>Do you use agiler subdriver? Then I&#39;ll add your UPS to the list of<br>supported devices.<br><br>--<br><font color="#888888">
 &nbsp; Alexander<br></font></blockquote></div><br>
</div></div></blockquote></div><br></div>