Just a minor update on this. I've tried download the svn tree and compiled the megatec_usb driver with the following config options (this seems to be the layout in Fedora but I may have missed something):<br><br>./configure --with-user=nut --with-group=nut --with-usb --sysconfdir=/etc/ups/
<br><br>I then placed the megate_usb driver in /sbin and tried to start it. I now get the following:<br><br>---------------<br><br>[root@www sbin]# /sbin/upsdrvctl -DDDDD start<br>Network UPS Tools - UPS driver controller
2.2.0-<br>Starting UPS: unial1200<br>exec: /sbin/megatec_usb -a unial1200<br>Network UPS Tools 2.3.0-1222M - Megatec protocol driver 1.5.11 [megatec_usb]<br>Carlos Rodrigues (c) 2003-2007<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>ser_get_line: Device detached? (error -110: error sending control message: Operation not permitted)<br>Successfully reconnected<br>ser_get_line: Device detached? (error -110: error sending control message: Operation not permitted)
<br>Successfully reconnected<br>ser_get_line: Device detached? (error -110: error sending control message: Operation not permitted)<br>Successfully reconnected<br>ser_get_line: Device detached? (error -110: error sending control message: Operation not permitted)
<br>Successfully reconnected<br>ser_get_line: Device detached? (error -110: error sending control message: Operation not permitted)<br>Successfully reconnected<br>Megatec protocol UPS not detected.<br>Driver failed to start (exit status=1)
<br>--------------------------<br><br>I'm not sure if the above is the result of my compilation (maybe I need to specify an additional switch) or whether it's because of the fact that this driver does not work 100% well for my ups yet.
<br><br>The device is attached well as I see it in lsusb:<br><br>Bus 001 Device 002: ID 0f03:0001<br><br>Thought I'd share the info in case it help in solving the issue.<br>Thanks,<br><br>Joe<br><br><div class="gmail_quote">
On Jan 13, 2008 5:37 PM, Joseph Borg <<a href="mailto:juu.borg@gmail.com">juu.borg@gmail.com</a>> 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>I'm wondering whether this could be the same issue I'm having. I emailed about this about two weeks ago or so. I'm trying to get NUT to work with my Unitek Alpha 1200sx. The driver is the megatec_usb one. When the driver does successfully load, it seems to work fine. However, more often than not, the driver fails to start with the following error message:
<br><br>------------<br>[root@linux ups]# /sbin/upsdrvctl -DDDDD start<br>Network UPS Tools - UPS driver controller 2.2.0-<br>Starting UPS: unial1200<br>exec: /sbin/megatec_usb -a unial1200<br>Network UPS Tools 2.2.0- - Megatec protocol driver
1.5.4 [megatec_usb]<div class="Ih2E3d"><br>Carlos Rodrigues (c) 2003-2007<br><br>Serial-over-USB transport layer for Megatec protocol driver [megatec_usb]<br><br><br></div>Broadcast message from nut (Sun Jan 13 18:34:29 2008):
<br><br>UPS unial1200@localhost
is unavailable<div class="Ih2E3d"><br>Megatec protocol UPS not detected.<br></div>Driver failed to start (exit status=1)<br>---------------<br><br>I'm using the NUT version bundled with Fedora 8. Is there anyway I can verify if this is the same issue? Ideally I'd just like to compile/try a different version of the driver and not install NUT entirely from source..
<br><br>Many thanks,<br><br>Joe<div><div></div><div class="Wj3C7c"><br><br><div class="gmail_quote">On Jan 13, 2008 8:13 AM, Alexander I. Gordeev <<a href="mailto:lasaine@lvk.cs.msu.su" target="_blank">lasaine@lvk.cs.msu.su
</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Sun, 13 Jan 2008 02:50:38 +0300, Marco Nelissen<br><div><<a href="mailto:marco.nelissen@gmail.com" target="_blank">marco.nelissen@gmail.com</a>> wrote:<br><br></div><div>> Thanks. Now it sees the UPS, though it prints this message:
<br>><br>> Megatec protocol UPS detected.<br>> This UPS has an unsupported combination of battery voltage/number of<br>> batteries.<br>> Cannot calculate charge percentage for this UPS.<br>><br>> I assume that's OK as long it can still get "on line", "on battery" and
<br>> "low<br>> battery" from the UPS, right?<br><br></div>This is ok. Please refer to the 'Known problems' section of manual.<br>If you find out voltage values for your model please report them back
<br>to the list.<br><div><div></div><div><br>--<br> Alexander<br><br>_______________________________________________<br>Nut-upsuser mailing list<br><a href="mailto:Nut-upsuser@lists.alioth.debian.org" target="_blank">Nut-upsuser@lists.alioth.debian.org
</a><br><a href="http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser" target="_blank">http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser</a><br></div></div></blockquote></div><br>
</div></div></blockquote></div><br>