Just a minor update on this, the repetitions after the first one (given in my previous emails) also return:<br><br>Q1 =&gt; FAILED [timeout]<br><br>I added some printf statements to megatec.c and verified that the return value is &#39;-110&#39; but I can&#39;t seem to figure out why this is happening. I added printf statements to ser_get_line in 
serial.c but none seem to be printing (as an aside I&#39;d like to understand why they&#39;re not :-)).<br><br>/Joe<br><br><div class="gmail_quote">On Jan 14, 2008 8:08 PM, Joseph Borg &lt;<a href="mailto:juu.borg@gmail.com">
juu.borg@gmail.com</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;">Hi,<br>Thanks for looking into this. This is a snippet of the output I get:
<br><br>-----------------------<br>[root@www drivers]# ./megatec_usb -DDDDD -u root -a unial1200<div class="Ih2E3d"><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>
</div>
debug level is &#39;5&#39;<div class="Ih2E3d"><br>Checking device (0000/0000) (002/001)<br>- VendorID: 0000<br>- ProductID: 0000<br></div>- Manufacturer: Linux 2.6.23.9-85.fc8 uhci_hcd<br>- Product: UHCI Host Controller<br>
- Serial Number: 0000:00:
07.3<div class="Ih2E3d"><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></div>- Manufacturer: Linux 2.6.23.9-85.fc8
 uhci_hcd<br>- Product: UHCI Host Controller
<br>- Serial Number: 0000:00:07.2<div class="Ih2E3d"><br>- Bus: 001<br>Trying to match device<br>Device does not match - skipping<br></div>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<div class="Ih2E3d"><br>- Bus: 001<br>Trying to match device<br></div>Device matches<div class="Ih2E3d"><br>Starting UPS detection process...
<br>Asking for UPS status [Q1]...<br></div><div class="Ih2E3d">ser_get_line: Device detached? (error -110: No error)
<br></div>==================================================<br>= device has been disconnected, try to reconnect =<br>==================================================<br>-------------------------<br>I get another four repetitions of the same following the above output.
<br><br>Let me know if if you require any further output and/or if I can further contribute to get this to work :-).<br><br>/Joe<div><div></div><div class="Wj3C7c"><br><br><div class="gmail_quote">On Jan 14, 2008 7:40 AM, Arjen de Korte &lt;
<a href="mailto:nut+users@de-korte.org" target="_blank">
nut+users@de-korte.org</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><br>&gt; Apologies for the number of emails; I just tried starting as user root and
<br>&gt; the error message changes but the outcome is the same:<br>&gt;<br>&gt; ---------------<br>&gt; [root@www drivers]# /sbin/upsdrvctl -u root -DDDDD start<br>&gt; Network UPS Tools - UPS driver controller 2.2.0-<br>

&gt; Starting UPS: unial1200<br>&gt; exec: /sbin/megatec_usb -a unial1200<br>&gt; Network UPS Tools 2.3.0-1222M - Megatec protocol driver 1.5.11<br>&gt; [megatec_usb]<br>&gt; Carlos Rodrigues (c) 2003-2007<br>&gt;<br>&gt; Serial-over-USB transport layer for Megatec protocol driver [megatec_usb]
<br>&gt; Andrey Lelikov (c) 2006, Alexander Gordeev (c) 2006-2007, Jon Gough (c)<br>&gt; 2007<br>&gt;<br>&gt; ser_get_line: Device detached? (error -110: No error)<br>&gt; Successfully reconnected<br>&gt; ser_get_line: Device detached? (error -110: No error)
<br>&gt; Successfully reconnected<br>&gt; ser_get_line: Device detached? (error -110: No error)<br>&gt; Successfully reconnected<br>&gt; ser_get_line: Device detached? (error -110: No error)<br>&gt; Successfully reconnected
<br>&gt; ser_get_line: Device detached? (error -110: No error)<br>&gt; Successfully reconnected<br>&gt; Megatec protocol UPS not detected.<br>&gt; -------------------<br>&gt;<br>&gt; Thought that maybe shed some light...
<br>
<br></div>In order to get some useful debug info from the driver, don&#39;t use<br>upsdrvctl to start it, but start it directly through<br><br> &nbsp; &nbsp;/sbin/megatec_usb -DDDDD -a unial1200<br><br>Best regards, Arjen<br><font color="#888888">

--<br>Eindhoven - The Netherlands<br>Key fingerprint - 66 4E 03 2C 9D B5 CB 9B &nbsp;7A FE 7E C1 EE 88 BC 57<br><br></font></blockquote></div><br>
</div></div></blockquote></div><br>