<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body dir="auto">
Wonderful news Jim.
<div><br>
</div>
<div>Much obliged sir!</div>
<div><br>
</div>
<div>I will reach out to the developer and make them aware. </div>
<div><br>
</div>
<div>You never know. They might even be on this mailing list. </div>
<div><br>
</div>
<div>Regards</div>
<div><br>
</div>
<div>James</div>
<div>
<div dir="ltr"><br>
<blockquote type="cite">On 20 Apr 2021, at 09:57, Jim Klimov <jimklimov@gmail.com> wrote:<br>
<br>
</blockquote>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">
<div>Hi all,</div>
<div><br>
</div>
<div>In the comments for <a href="https://github.com/networkupstools/nut/pull/638/">
https://github.com/networkupstools/nut/pull/638/</a> adding support for "hunnox" subdriver I saw somebody report that the branch also supported their Powercool branded device. I am brushing that submission into shape to merge it, and for that matter also plan
to merge the <a href="https://github.com/networkupstools/nut/pull/1008">https://github.com/networkupstools/nut/pull/1008</a> adding an "snr" subdriver.</div>
<div><br>
</div>
<div>So hopefully a build of NUT from the master branch after these merges would let your deployment see your UPS better. That said, you may have to poke the unRAID plugin maintainer to update their package.</div>
<div><br>
</div>
<div>Jim<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Thu, Apr 8, 2021 at 11:02 AM James Billinge <<a href="mailto:jammybisme@hotmail.com">jammybisme@hotmail.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
hi Jim,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
please see - <a href="https://forums.unraid.net/topic/60217-plugin-nut-v2-network-ups-tools" id="gmail-m_-6622063270888406882LPlnk" target="_blank">https://forums.unraid.net/topic/60217-plugin-nut-v2-network-ups-tools</a></div>
<div>
<div id="gmail-m_-6622063270888406882LPBorder_GTaHR0cHM6Ly9mb3J1bXMudW5yYWlkLm5ldC90b3BpYy82MDIxNy1wbHVnaW4tbnV0LXYyLW5ldHdvcmstdXBzLXRvb2xz" style="width:100%;margin-top:16px;margin-bottom:16px;max-width:800px;min-width:424px">
<table id="gmail-m_-6622063270888406882LPContainer526526" style="padding:12px 36px 12px 12px;width:100%;border-width:1px;border-style:solid;border-color:rgb(200,200,200);border-radius:2px">
<tbody>
<tr style="border-spacing:0px" valign="top">
<td style="width:100%">
<div id="gmail-m_-6622063270888406882LPTitle526526" style="font-size:21px;font-weight:300;margin-right:8px;font-family:wf_segoe-ui_light,"Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;margin-bottom:12px">
<a id="gmail-m_-6622063270888406882LPUrlAnchor526526" href="https://forums.unraid.net/topic/60217-plugin-nut-v2-network-ups-tools" style="text-decoration:none" target="_blank">[Plugin] NUT v2 - Network UPS Tools - Plugin Support - Unraid</a></div>
<div id="gmail-m_-6622063270888406882LPDescription526526" style="font-size:14px;max-height:100px;color:rgb(102,102,102);font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;margin-bottom:12px;margin-right:8px;overflow:hidden">
On 3/24/2018 at 12:02 PM, huffsper said: Did you find anything weird looking at the log? I noticed in my logs that unBALANCE is using rm -rf to delete files, wouldnt using rsyncs --remove-source-files be better? I took a look and didnt find anything unusual.
There were a couple of instances where...</div>
<div id="gmail-m_-6622063270888406882LPMetadata526526" style="font-size:14px;font-weight:400;color:rgb(166,166,166);font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif">
<a href="http://forums.unraid.net" target="_blank">forums.unraid.net</a></div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<br>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
this is the app i am using to use NUT.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
what you say about ups.conf is what i have entered and it fails to start NUT.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
i've PM'ed dmacias on the unraid forums for advice but no response since the weekend when i sent it and the forum thread isn't actively responded to either.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
really need dmacias to respond to enable guidance.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
nut-scanner works, it picks up this:</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Scanning for UPS...
<div><br>
</div>
<div>[nutdev1]</div>
<div>driver = "nutdrv_qx"</div>
<div>port = "auto"</div>
<div>vendorid = "0001"</div>
<div>productid = "0000"</div>
<div>product = "MEC0003"</div>
bus = "002"<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
but nutdrv_qx isn't a driver option so i pick "custom" and enter it in, it then appears in UPS.conf and i can start/run NUT but i do not get any readings and it says ONLINE. but if i cut the power, it doesn't change status or act on it.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
since <span style="color:rgb(32,31,30);font-size:15px;background-color:rgb(255,255,255);display:inline">
nutdrv_atcl_usb doesn't work, i feel its because its missing. if i could know how to put that driver in, it would be interesting to see what NUT did if it saw it.</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="color:rgb(32,31,30);font-size:15px;background-color:rgb(255,255,255);display:inline"><br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="color:rgb(32,31,30);font-size:15px;background-color:rgb(255,255,255);display:inline"><br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="color:rgb(32,31,30);font-size:15px;background-color:rgb(255,255,255);display:inline">i will post on the unraid forum again.</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="color:rgb(32,31,30);font-size:15px;background-color:rgb(255,255,255);display:inline"><br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="color:rgb(32,31,30);font-size:15px;background-color:rgb(255,255,255);display:inline">thanks for the help Jim. hopefully a solution will be found!</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div id="gmail-m_-6622063270888406882appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_-6622063270888406882divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Jim Klimov <<a href="mailto:jimklimov@gmail.com" target="_blank">jimklimov@gmail.com</a>><br>
<b>Sent:</b> 08 April 2021 09:38<br>
<b>To:</b> James Billinge <<a href="mailto:jammybisme@hotmail.com" target="_blank">jammybisme@hotmail.com</a>><br>
<b>Cc:</b> <a href="mailto:nut-upsuser@alioth-lists.debian.net" target="_blank">nut-upsuser@alioth-lists.debian.net</a> <<a href="mailto:nut-upsuser@alioth-lists.debian.net" target="_blank">nut-upsuser@alioth-lists.debian.net</a>><br>
<b>Subject:</b> Re: [Nut-upsuser] Powercool UPS compatibility</font>
<div> </div>
</div>
<div>
<div dir="auto">
<div>I took a look at <a href="https://github.com/dmacias72/NUT-unRAID/" target="_blank">
https://github.com/dmacias72/NUT-unRAID/</a> plugin source (not sure it is the one you have, just the first recent plugin from googling).</div>
<div dir="auto"><br>
</div>
<div dir="auto">Unfortunately it does not seem to reference actual NUT source well, nor a plugin version, but just hoards several timestamped tarballs with binaries. By commit comments it seems that at least at some point they used the "libusb-0.1+1.0" branch
which is one of our attempts to handle modern libusb-1 in NUT (note none of the attempts yet were merged to master or released "officially", but we are on it). </div>
<div dir="auto"><br>
</div>
<div dir="auto">I can't quickly say if latest plugin builds are based on that too, or if you may have a mismatch with drivers last built for libusb-0.1 trying to use libusb-1.0 on the server. APIs differ so such mismatch might cause crashes, or just fail to
start if dynamic linking detects it.</div>
<div dir="auto"><br>
</div>
<div dir="auto">As for ups.conf, I think you should try a minimal config like:</div>
<div dir="auto"><br>
</div>
<div dir="auto">[powercool]</div>
<div dir="auto">driver=nutdrv_atcl_usb</div>
<div dir="auto">port=auto</div>
<div dir="auto"><br>
</div>
<div dir="auto">(port probably may refer to /dev/usb/... if that is persistent across boots and device plugs, but does not have to).</div>
<div dir="auto"><br>
</div>
<div dir="auto">What also comes to mind are issues with linux user privileges - whether that account which runs NUT may connect to USB device nodes. But if nut-scanner worked, probably that is okay.</div>
<div dir="auto"><br>
</div>
<div dir="auto">If you can edit /etc/rc.d/rc.ups, in the line which starts upsdrvctl you can add debugging with -DDDDDD which should show its attempts to find the USB device and possible griefs it may have along the way.</div>
<div dir="auto"><br>
</div>
<div dir="auto"><span style="font-family:sans-serif">Note that currently, an enabled debugging mode may preclude backgrounding of the driver or other NUT daemons so not sure if you'd need to add & to the end of line so upsdrvctl is backgrounded still.</span><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">Or if you have shell access, similarly you can run </div>
<div dir="auto"> /usr/libexec/nut/nutdrv_atcl_usb -DDDDDD -a powercool</div>
<div dir="auto"><br>
</div>
<div dir="auto">Hope that helps,</div>
<div dir="auto">Jim Klimov<br>
<br>
<div dir="auto">
<div dir="ltr">On Thu, Apr 8, 2021, 07:44 James Billinge <<a href="mailto:jammybisme@hotmail.com" target="_blank">jammybisme@hotmail.com</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="auto">Hi Jim
<div><br>
</div>
<div>Thanks for the reply. </div>
<div><br>
</div>
<div>In NUT under unRAID there is indeed a setting to enter a driver in. </div>
<div><br>
</div>
<div>Which driver are you suggesting I try as nutdrv_qx makes NUT work, but no communication between NUT and the UPS. </div>
<div><br>
</div>
<div>Just tried nutdrv_atcl_usb.c as driver and NUT will not start. </div>
<div><br>
</div>
<div>Is there anything else I need to enter in UPS.conf to get it to work?</div>
<div><br>
</div>
<div>Regards</div>
<div><br>
</div>
<div>James<br>
<br>
<div dir="ltr">Sent from my iPhone</div>
<div dir="ltr"><br>
<blockquote type="cite">On 8 Apr 2021, at 02:22, Jim Klimov <<a href="mailto:jimklimov@gmail.com" rel="noreferrer" target="_blank">jimklimov@gmail.com</a>> wrote:<br>
<br>
</blockquote>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="auto">
<div>I believe nutdrv_atcl_usb is orthogonal to nutdrv_qx "fuji" subdriver. They both handle devices using an "ATCL" USB chip which does not have a registered vendorId/productId, but that is where similarity stops. Different UPS vendors implemented different
protocols and abilities using that chip as a transport, hence two unrelated drivers.</div>
<div dir="auto"><br>
</div>
<div dir="auto">It seems the HCL entry appeared in relation to this discussion: <a href="https://github.com/networkupstools/nut/issues/203" rel="noreferrer" target="_blank">https://github.com/networkupstools/nut/issues/203</a></div>
<div dir="auto"><br>
</div>
<div dir="auto">Looking at <a href="https://github.com/networkupstools/nut/blob/master/drivers/nutdrv_atcl_usb.c" rel="noreferrer" target="_blank">https://github.com/networkupstools/nut/blob/master/drivers/nutdrv_atcl_usb.c</a> it indeed does not have many
settings, just an alternate "vendor" string to match on a device which it finds with hardcoded vid:pid by looking at all USB devices.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Unfortunately I can't help with setup of unRAID bit. I'd assume there is a place to state which NUT driver you want.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Jim</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
<br>
<div dir="auto">
<div dir="ltr">On Tue, Apr 6, 2021, 22:12 James Billinge via Nut-upsuser <<a href="mailto:nut-upsuser@alioth-lists.debian.net" rel="noreferrer" target="_blank">nut-upsuser@alioth-lists.debian.net</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="auto">I have spent the last few days researching the possibility of using a Powercool UPS with NUT under unRAID.
<div><br>
</div>
<div>I have posted my findings on their forums and not had much response besides other users wanting it to work too. </div>
<div><br>
</div>
<div><a href="https://forums.unraid.net/topic/104685-powercool-ups-compatible/" rel="noreferrer noreferrer" target="_blank">https://forums.unraid.net/topic/104685-powercool-ups-compatible/</a></div>
<div><br>
</div>
<div><br>
</div>
<div>How does one utilise nutdrv_actl_usb?</div>
<div><br>
</div>
<div><a href="https://networkupstools.org/docs/man/nutdrv_atcl_usb.html" rel="noreferrer noreferrer" target="_blank">https://networkupstools.org/docs/man/nutdrv_atcl_usb.html</a></div>
<div><br>
</div>
<div>As a means of connecting to a Powercool UPS along with nutdrv_qx?</div>
<div><br>
</div>
<div>Seeing this - <a href="https://github.com/cbedgar/nut/blob/1e9216399b890b0770a0e8b158109eaa5e61d332/data/driver.list.in" rel="noreferrer noreferrer" target="_blank">https://github.com/cbedgar/nut/blob/1e9216399b890b0770a0e8b158109eaa5e61d332/data/driver.list.in</a></div>
<div><br>
</div>
<div>Fills me with hope that it’s feasible. </div>
<div><br>
</div>
<div><br>
</div>
<div>Is it feasible or am I wasting my time?</div>
<div><br>
</div>
<div>James</div>
</div>
_______________________________________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@alioth-lists.debian.net" rel="noreferrer noreferrer" target="_blank">Nut-upsuser@alioth-lists.debian.net</a><br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser" rel="noreferrer noreferrer noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</body>
</html>