Hi Márk,<br><br><div class="gmail_quote">2011/4/4 Márk Csaba <span dir="ltr">&lt;<a href="mailto:markcs@gwyll.eu">markcs@gwyll.eu</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div dir="ltr">
<div dir="ltr">
<div style="font-family: &#39;Arial&#39;; color: rgb(0, 0, 0); font-size: 10pt;">
<div>Hello,</div>
<div> </div>
<div>i have a server which supposed to control three Eaton UPS connected by USB 
cables. Each UPS is Eaton NV 2000H. (eaton_1, eaton_2, eaton_3)</div>
<div>The connection is fine with each UPS, if it is configured alone. </div>
<div>If i configure two or all three, the connections broke up.</div>
<div> </div>
<div>After nut started, tried to start upsdrv manually (eaton_1. </div>
<div>The log:</div>
<div> </div>
<div>Apr  4 00:43:46 mail blazer_usb[10799]: Startup 
successful<br>Apr  4 00:43:47 mail upsd[10752]: Connected to UPS [eaton_2]: 
blazer_usb-eaton_2<br>Apr  4 00:43:50 mail upsmon[10760]: Communications 
with UPS <a href="mailto:eaton_2@localhost" target="_blank">eaton_2@localhost</a> 
established<br>Apr  4 00:43:50 mail upsmon[10760]: Poll UPS 
[eaton_3@localhost] failed - Driver not connected<br>Apr  4 00:43:55 mail 
upsmon[10760]: Poll UPS [eaton_3@localhost] failed - Driver not 
connected<br>Apr  4 00:43:56 mail blazer_usb[10799]: Got disconnected by 
another driver: Device or resource busy<br>Apr  4 00:43:56 mail kernel: 
[83482.924512] usb 4-2: usbfs: process 10799 (blazer_usb) did not claim 
interface 0 before use<br>Apr  4 00:44:00 mail blazer_usb[10804]: Startup 
successful<br>Apr  4 00:44:00 mail upsd[10752]: Connected to UPS [eaton_3]: 
blazer_usb-eaton_3<br>Apr  4 00:44:00 mail upsmon[10760]: Poll UPS 
[eaton_2@localhost] failed - Driver not connected<br>Apr  4 00:44:00 mail 
upsmon[10760]: Communications with UPS <a href="mailto:eaton_2@localhost" target="_blank">eaton_2@localhost</a> lost<br>Apr  4 
00:44:00 mail upsmon[10760]: Communications with UPS <a href="mailto:eaton_3@localhost" target="_blank">eaton_3@localhost</a> established<br>Apr  4 
00:44:05 mail upsmon[10760]: Poll UPS [eaton_2@localhost] failed - Driver not 
connected<br>Apr  4 00:44:10 mail blazer_usb[10804]: Got disconnected by 
another driver: Device or resource busy<br>Apr  4 00:44:10 mail kernel: 
[83496.177686] usb 4-2: usbfs: process 10804 (blazer_usb) did not claim 
interface 0 before use<br></div>
<div>ups.conf:</div>
<div>maxstartdelay = 70<br>norating<br>novendor<br>subdriver = cypress<br></div>
<div>[eaton_1]<br>       driver = 
blazer_usb<br>        port   = 
&quot;002&quot;<br>        desc   = &quot;Eaton NV 
2000H&quot;<br>        vendorid = 
0665<br>        productid = 
5161<br>        bus    = 
&quot;003&quot;</div>
<div> </div>
<div>[eaton_2]<br>        driver = 
blazer_usb<br>        port   = 
&quot;002&quot;<br>        desc   = &quot;Eaton NV 
2000H&quot;<br>        vendorid = 
0665<br>        productid = 
5161<br>        bus    = 
&quot;004&quot;</div>
<div> </div>
<div>[eaton_3]<br>        driver = 
blazer_usb<br>        port   = 
&quot;003&quot;<br>        desc   = &quot;Eaton NV 
2000H&quot;<br>        vendorid = 
0665<br>        productid = 
5161<br>        bus    = 
&quot;004&quot;<br></div>
<div>upsmon.conf contains the appropriate MONITOR lines.</div>
<div> </div>
<div>lsusb:</div>
<div>Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br>Bus 004 
Device 003: ID 0665:5161 Cypress Semiconductor USB to Serial<br>Bus 004 Device 
002: ID 0665:5161 Cypress Semiconductor USB to Serial<br>Bus 004 Device 001: ID 
1d6b:0001 Linux Foundation 1.1 root hub<br>Bus 003 Device 002: ID 0665:5161 
Cypress Semiconductor USB to Serial<br>Bus 003 Device 001: ID 1d6b:0001 Linux 
Foundation 1.1 root hub<br>Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 
root hub<br>Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root 
hub<br></div>
<div>The log with all UPS’s configured:</div>
<div>Apr  4 00:52:51 mail blazer_usb[11305]: Startup 
successful<br>Apr  4 00:52:55 mail blazer_usb[11307]: Startup 
successful<br>Apr  4 00:52:55 mail blazer_usb[11307]: Communications with 
UPS lost: status read failed!<br>Apr  4 00:52:57 mail blazer_usb[11307]: 
Got disconnected by another driver: Device or resource busy<br>Apr  4 
00:52:57 mail kernel: [84023.476349] usb 4-2: usbfs: process 11307 (blazer_usb) 
did not claim interface 0 before use<br>Apr  4 00:53:06 mail upsd[11314]: 
listening on 192.168.x.y port 3493<br>Apr  4 00:53:06 mail upsd[11314]: 
listening on 192.168.xy.yx port 3493<br>Apr  4 00:53:06 mail upsd[11314]: 
listening on 127.0.0.1 port 3493<br>Apr  4 00:53:06 mail upsd[11314]: 
Connected to UPS [eaton_1]: blazer_usb-eaton_1<br>Apr  4 00:53:06 mail 
upsd[11314]: Can&#39;t connect to UPS [eaton_2] (blazer_usb-eaton_2): No such file 
or directory<br>Apr  4 00:53:06 mail upsd[11314]: Can&#39;t connect to UPS 
[eaton_3] (blazer_usb-eaton_3): No such file or directory<br>Apr  4 
00:53:06 mail upsd[11315]: Startup successful<br>Apr  4 00:53:06 mail 
upsmon[11317]: Startup successful<br>Apr  4 00:53:06 mail upsd[11315]: User 
<a href="mailto:admin@127.0.0.1" target="_blank">admin@127.0.0.1</a> logged into UPS 
[eaton_1]<br>Apr  4 00:53:06 mail upsd[11315]: User <a href="mailto:admin@127.0.0.1" target="_blank">admin@127.0.0.1</a> logged into UPS 
[eaton_2]<br>Apr  4 00:53:06 mail upsmon[11319]: Poll UPS 
[eaton_2@localhost] failed - Driver not connected<br>Apr  4 00:53:06 mail 
upsmon[11319]: Communications with UPS <a href="mailto:eaton_2@localhost" target="_blank">eaton_2@localhost</a> lost<br>Apr  4 
00:53:06 mail upsd[11315]: User <a href="mailto:admin@127.0.0.1" target="_blank">admin@127.0.0.1</a> logged into UPS 
[eaton_3]<br>Apr  4 00:53:06 mail upsmon[11319]: Poll UPS 
[eaton_3@localhost] failed - Driver not connected<br>Apr  4 00:53:06 mail 
upsmon[11319]: Communications with UPS <a href="mailto:eaton_3@localhost" target="_blank">eaton_3@localhost</a> lost<br>Apr  4 
00:53:11 mail upsd[11315]: mainloop: Interrupted system call<br>Apr  4 
00:53:11 mail upsd[11315]: Signal 15: exiting<br>Apr  4 00:53:11 mail 
upsmon[11319]: Signal 15: exiting<br>Apr  4 00:53:11 mail upsmon[11317]: 
upsmon parent: read<br>Apr  4 00:53:13 mail blazer_usb[11305]: Signal 15: 
exiting<br></div>
<div>Maybe i’ve miss something, but i can’t figure it out. Could someone point 
me to the right way?</div>
<div> <br></div></div></div></div></blockquote></div><br>your issue is quite probably related to the USB matching system:<br>you well used the &quot;bus&quot; in configuration, but the port is something totaly arbitrary that is not taken into account for differentiating units...<br>
thus, &quot;eaton_2&quot; and &quot;eaton_3&quot; are considered to be the same, and the 2 drivers instances simply connect to the same one (ie the first found on Bus 4).<br>Which will result in drivers battling to get exclusive access on the device (see the above &quot;Got disconnected&quot; messages).<br>
<br>To be able to differentiate these 2, you will have to change the Bus of one, or to use the serial number (which is, when available, a better <span id="result_box" class="short_text" lang="en"><span title="Cliquer ici pour voir d&#39;autres traductions" class="hps">discriminant)</span></span>, using &quot;serial&quot; in ups.conf.<br>
<br>cheers,<br>Arnaud<br>-- <br>Linux / Unix Expert R&amp;D - Eaton - <a href="http://powerquality.eaton.com" target="_blank">http://powerquality.eaton.com</a><br>Network UPS Tools (NUT) 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.free.fr/" target="_blank">http://arnaud.quette.free.fr/</a><br><br>