Hi Alexander,<br>Sorry for the delay in getting back to you on this; I got caught up with some work. I've now downloaded and installed nut <a href="http://2.2.2.">2.2.2.</a> Here is the output I get when I try to start the driver:<br>
<br>-----------------------------------<br>[root@www bin]# ./megatec_usb -DDDDD -a unial1200<br>Network UPS Tools 2.2.2 - Megatec protocol driver 1.5.14 [megatec_usb]<br>Carlos Rodrigues (c) 2003-2008<br><br>Serial-over-USB transport layer for Megatec protocol driver [megatec_usb]<br>
Andrey Lelikov (c) 2006, Alexander Gordeev (c) 2006-2007, Jon Gough (c) 2007<br><br>debug level is '5'<br>Checking device (1D6B/0001) (002/001)<br>- VendorID: 1d6b<br>- ProductID: 0001<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 (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>get_data_agiler: raw dump: (0 bytes) =><br>Starting UPS detection process...<br>
Asking for UPS status [Q1]...<br>get_data_agiler: raw dump: (0 bytes) =><br>get_data_agiler: raw dump: (0 bytes) =><br>Q1 => FAILED [short read]<br>Q1 detail: (0 bytes) =><br>Asking for UPS status [Q1]...<br>get_data_agiler: raw dump: (0 bytes) =><br>
get_data_agiler: raw dump: (0 bytes) =><br>Q1 => FAILED [short read]<br>Q1 detail: (0 bytes) =><br>Asking for UPS status [Q1]...<br>get_data_agiler: raw dump: (0 bytes) =><br>get_data_agiler: raw dump: (0 bytes) =><br>
Q1 => FAILED [short read]<br>Q1 detail: (0 bytes) =><br>Asking for UPS status [Q1]...<br>get_data_agiler: raw dump: (0 bytes) =><br>get_data_agiler: raw dump: (0 bytes) =><br>Q1 => FAILED [short read]<br>Q1 detail: (0 bytes) =><br>
Asking for UPS status [Q1]...<br>get_data_agiler: raw dump: (0 bytes) =><br>get_data_agiler: raw dump: (0 bytes) =><br>Q1 => FAILED [short read]<br>Q1 detail: (0 bytes) =><br>5 out of 5 detection attempts failed (minimum failures: 2).<br>
Megatec protocol UPS not detected.<br>-----------------------------------<br><br>lsusb lists the device as there:<br><br>[root@www bin]# lsusb<br>Bus 002 Device 001: ID 1d6b:0001 <br>Bus 001 Device 002: ID 0f03:0001 <=== this is it.<br>
Bus 001 Device 001: ID 1d6b:0001 <br><br>You had mentioned stracing? How can we go about doing that?<br><br>Many thanks!<br><br>Joe<br><br><div class="gmail_quote">On Fri, Oct 10, 2008 at 9:43 AM, Joseph Borg <span dir="ltr"><<a href="mailto:juu.borg@gmail.com">juu.borg@gmail.com</a>></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;"><div dir="ltr">Hi Alexander,<br>sounds like a plan to me. I'll update to 2.2.2 over the weekend (on both machines) and we can take it from there. As for you pointers:<br>
<br>- The two UPSs were purchased at the same time (so I have no reason to believe their internal hardware is different).<br>
- Both computer are different (i.e. different motherboard etc.) so I don;t think it's a host hardware issue.<br>- They're both running Fedora 8 with the latest kernel, albeit that one is x86_64 and one is i386.<br>
<br>That said, I'll upgrade them over the weekend and take it from there. If you could let me know about any specific things you want me to take a note of and how to do stracing etc, I'll do so.<br><br>Cheers,<br>
<br>Joe<div><div></div><div class="Wj3C7c"><br><br><br><div class="gmail_quote">On Wed, Oct 8, 2008 at 11:00 PM, Alexander I. Gordeev <span dir="ltr"><<a href="mailto:lasaine@lvk.cs.msu.su" target="_blank">lasaine@lvk.cs.msu.su</a>></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 Joseph,<br>
<br>
Nice to see you again :)<br>
<div><br>
On Tuesday 07 October 2008 23:21:32 Joseph Borg wrote:<br>
> Hi,<br>
> Apologies for picking up on this old thread but I never had gotten this<br>
> issue resolved and I'm now back in the location where the UPSs are so I was<br>
> hoping we could look into the issue again.<br>
><br>
> Basically, I had two Unitek Alpha 1200sx UPSs, connected to Fedora Linux 8.<br>
> 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" target="_blank">0.0.0.0</a> port 3493<br>
><br>
> The driver seems to be the megatec_usb driver. The problem I have is that<br>
> this only seems to work occasionally (I typically have to restart the<br>
> deamon several times, switch on/off the UPSs etc in order to get it to<br>
> work). Most of the time, the controller seems to fail to start up and I<br>
> subsequently get the following message:<br>
><br>
> Broadcast message from nut (Tue Oct 7 21:14:44 2008):<br>
><br>
> UPS unial1200@localhost is unavailable<br>
><br>
> I'm not quite sure what other information you'd need. That said, I can<br>
> provide any output requested.<br>
><br>
> Thanks in advance for helping me out.<br>
><br>
> Joe<br>
><br>
<br>
</div>First of all I suggest you to update your NUT to the latest version. There is<br>
at least one reason for that - megatec_usb driver now supports automatic<br>
reconnection after link fail. This is not a fix.<br>
<br>
I have several suspects on this subject:<br>
<br>
1. hardware.<br>
<br>
Something could not ok in both UPSes (not very likely) or in the USB host<br>
hardware. Try connecting the UPSes to other machines.<br>
<br>
2. software<br>
<br>
It could be everything: kernel, udev, NUT... I think strace-ing megatec_usb<br>
can help.<br>
<br>
--<br>
<font color="#888888"> Alexander<br>
</font></blockquote></div><br></div></div></div>
</blockquote></div><br>