Just a minor update on this, the repetitions after the first one (given in my previous emails) also return:<br><br>Q1 => FAILED [timeout]<br><br>I added some printf statements to megatec.c and verified that the return value is '-110' but I can'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'd like to understand why they're not :-)).<br><br>/Joe<br><br><div class="gmail_quote">On Jan 14, 2008 8:08 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>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 '5'<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 <
<a href="mailto:nut+users@de-korte.org" target="_blank">
nut+users@de-korte.org</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;"><div><br>> Apologies for the number of emails; I just tried starting as user root and
<br>> the error message changes but the outcome is the same:<br>><br>> ---------------<br>> [root@www drivers]# /sbin/upsdrvctl -u root -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<br>> [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)<br>> 2007<br>><br>> ser_get_line: Device detached? (error -110: No error)<br>> Successfully reconnected<br>> ser_get_line: Device detached? (error -110: No error)
<br>> Successfully reconnected<br>> ser_get_line: Device detached? (error -110: No error)<br>> Successfully reconnected<br>> ser_get_line: Device detached? (error -110: No error)<br>> Successfully reconnected
<br>> ser_get_line: Device detached? (error -110: No error)<br>> Successfully reconnected<br>> Megatec protocol UPS not detected.<br>> -------------------<br>><br>> Thought that maybe shed some light...
<br>
<br></div>In order to get some useful debug info from the driver, don't use<br>upsdrvctl to start it, but start it directly through<br><br> /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 7A FE 7E C1 EE 88 BC 57<br><br></font></blockquote></div><br>
</div></div></blockquote></div><br>