<div dir="ltr">Hello Panagiotis<br><div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-01 16:28 GMT+02:00 Panagiotis Kritikakos <span dir="ltr"><<a href="mailto:panagiotis.kritikakos@nikitec.gr" target="_blank">panagiotis.kritikakos@nikitec.gr</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello all,<br>
<br>
OS name: FreeNAS 9.3<br>
NUT version: 2.7.2<br>
NUT installed method: Bundled with FreenNAS 9.3<br>
Device: EATON 5SC 1000 (<a href="http://powerquality.eaton.com/Products-services/Backup-Power-UPS/5SC.aspx?cx=5&wtredirect=www.eaton.com/5SC&GUID=B81251A4-F34E-4373-94B3-B4FB3D0CBCA8" target="_blank">http://powerquality.eaton.<u></u>com/Products-services/Backup-<u></u>Power-UPS/5SC.aspx?cx=5&<u></u>wtredirect=www.eaton.com/5SC&<u></u>GUID=B81251A4-F34E-4373-94B3-<u></u>B4FB3D0CBCA8</a>)<br>
<br>
Problem description:<br>
<br>
This was originally reported as bug to FreeNAS (<a href="https://bugs.freenas.org/issues/8049#change-41087" target="_blank">https://bugs.freenas.org/<u></u>issues/8049#change-41087</a>) and was asked to post this upstream, so here it goes.<br>
<br>
The issue with the driver has been seen in FreeNAS 9.3-STABLE. While the serial connection with the UPS (Eaton 5 5SC Serial with mge-shut driver) is working initially, almost after every reboot, the driver is failing with the message "UPS failed - Driver not connected". This was not the case with FreeNAS 9.2 and NUT 2.7.1.<br>
<br>
Additional information:<br>
<br>
~# /usr/local/libexec/nut/mge-<u></u>shut -DD -a ups-filesrv01<br>
Network UPS Tools - Generic HID driver 0.38 (2.7.2)<br>
SHUT communication driver 0.84<br>
Warning: This is an experimental driver.<br>
Some features may not function correctly.<br>
<br>
0.000000 debug level is '2'<br>
0.000901 upsdrv_initups...<br>
0.000911 libshut_open: using port /dev/cuau0<br>
0.001034 entering shut_synchronise()<br>
0.037281 Communication with UPS established<br>
0.037289 entering shut_get_descriptor(n 01, 18)<br>
0.120208 shut_wait_ack(): ACK received<br>
0.371873 shut_wait_ack(): ACK received<br>
9.504230 shut_wait_ack(): Nothing received<br>
9.589858 shut_wait_ack(): ACK received<br>
9.742965 shut_wait_ack(): Nothing received<br>
9.867744 shut_wait_ack(): ACK received<br>
9.971912 - VendorID: 0463<br>
9.971919 - ProductID: ffff<br>
9.971923 - Manufacturer: Eaton<br>
9.971926 - Product: unknown<br>
9.971929 - Serial Number: unknown<br>
9.971932 - Bus: serial<br>
9.971935 Device matches<br>
9.971939 entering shut_get_descriptor(n 21, 9)<br>
13.027594 shut_wait_ack(): Nothing received<br>
16.028593 shut_wait_ack(): Nothing received<br>
16.055659 shut_wait_ack(): Nothing received<br>
16.055670 Max tries reached while waiting for ACK, still getting errors<br>
16.055674 entering shut_synchronise()<br>
16.197941 Unable to get HID descriptor ()<br>
16.197949 No matching HID UPS found<br>
<br>
Thank you in advance!<br clear="all"></blockquote></div><br></div><div class="gmail_extra">The only diff I see between shut in 2.7.1 and 2.7.2 is the following:<br></div><div class="gmail_extra"><br>--- ../nut-2.7.1/drivers/libshut.c 2013-10-02 14:16:42.000000000 +0200<br>+++ drivers/libshut.c 2014-02-25 16:39:34.000000000 +0100<br>@@ -312,7 +312,7 @@<br> /* FIXME: add variable baudrate detection */<br> *upsfd = ser_open(device_path);<br> ser_set_speed(*upsfd, device_path, B2400);<br>- setline(*upsfd, 0);<br>+ setline(*upsfd, 1);<br> <br> /* initialise communication */<br> if (!shut_synchronise(*upsfd))<br><br><br></div><div class="gmail_extra">This is tied to the PnP feature, and was reverted with the following commit:<br><a href="https://github.com/networkupstools/nut/commit/75b0ce8b952d7c55880f7a019ba61ec05b45e6a7">https://github.com/networkupstools/nut/commit/75b0ce8b952d7c55880f7a019ba61ec05b45e6a7</a><br><br></div><div class="gmail_extra">Never had time to get the complete consideration on this, so I'm still lacking visibility.<br></div><div class="gmail_extra">it's still unclear to me why it does not work for you. Is FreeNAS linux based or BSD?<br></div><div class="gmail_extra">I've just tested a pristine 2.7.2 on Debian Jessie + 5SC700, and it works fine.<br><br></div><div class="gmail_extra">would you be able to test a patch or a git branch?<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">thanks and cheers,<br></div><div class="gmail_extra">Arno<br></div><div class="gmail_extra">-- <br><div class="gmail_signature"><div dir="ltr">Eaton Data Center Automation - Opensource Leader<br>NUT (Network UPS Tools) Project Leader - <a href="http://www.networkupstools.org" target="_blank">http://www.networkupstools.org</a><br>Debian Developer - <a href="http://www.debian.org" target="_blank">http://www.debian.org</a><br>Free Software Developer - <a href="http://arnaud.quette.fr" target="_blank">http://arnaud.quette.fr</a><br><br></div></div>
</div></div></div>