<div dir="ltr"><div>Hello, thanks for the report and trying to wrap my head around it.</div><div><br></div><div>On a side note, it seems you've reported the same(?) UPS a couple of decades ago? ;)</div><div><a href="https://networkupstools.org/networkupstools-master.github.io/ddl/Exide/NetUPS_SE_PRC2400a.html">https://networkupstools.org/networkupstools-master.github.io/ddl/Exide/NetUPS_SE_PRC2400a.html</a> => <a href="https://github.com/networkupstools/nut-ddl/blob/master/Exide/Exide__NetUPS_SE_PRC2400a__upscode2__2.0.2__01.dev">https://github.com/networkupstools/nut-ddl/blob/master/Exide/Exide__NetUPS_SE_PRC2400a__upscode2__2.0.2__01.dev</a> => <a href="https://alioth-lists.debian.net/pipermail/nut-upsuser/2005-July/000030.html">https://alioth-lists.debian.net/pipermail/nut-upsuser/2005-July/000030.html</a></div><div><br></div><div>So to me there are a few issues that pop up from this recent message:</div><div><br></div><div>1) Do I understand correctly that in the topmost "screenshot" with debug verbosity "2" the driver only proceeds to report the
`tcgetattr()` error and exits, while the runs at greater verbosity they lived longer at least (seems they also actually worked)?</div><div>* Did you check if this is linked to verbosity level (something broken about debugging methods - these were refactored between 2.7.4 and 2.8.0),</div><div>* ...or to just running it several times - e.g. a competing driver instance or some other program held the device node, but was killed off during/before retries?</div><div>* Namely, there was a bug related to that debug-method refactor, and the fix mentions `upscode2` specifically among the places it could pop up: <a href="https://github.com/networkupstools/nut/pull/1495">https://github.com/networkupstools/nut/pull/1495</a></div><div>** if this is it - running the packaged build at debug verbosity 3 or more may be an option; otherwise a custom build either from debian sources of your package + patch equivalent for the PR, or just of the current NUT master: e.g. <a href="https://github.com/networkupstools/nut/wiki/Building-NUT-for-in%E2%80%90place-upgrades-or-non%E2%80%90disruptive-tests">https://github.com/networkupstools/nut/wiki/Building-NUT-for-in%E2%80%90place-upgrades-or-non%E2%80%90disruptive-tests</a> may help<br></div><div><br></div><div>2) I suppose the udev rule above was hand-crafted? NUT sources do not mention a "6001" (productId), and the "0403" (vendorId) is mentioned in a `nutdrv_siemens_sitop` driver which was added in NUT 2.8.0 release.</div><div>* Asking because one of the changes introduced by 2.8.0 was a change from "rules" to "hwdb" format in <a href="https://github.com/networkupstools/nut/pull/1342/files">https://github.com/networkupstools/nut/pull/1342/files</a> - however as I'm revisiting it now, I am having second thoughts: the changed file was about UPower not UDev - both subsystems are from FreeDesktop project, but not sure if the similarities don't end there.</div><div>* Originally was going to suggest that the NUT "udev rules" are replaced by "udev hwdb" (format change leading to a more optimized use of binary database under the systemd hood), but not fully sure this is actually the case at the moment.</div><div>* Anyway, wondering if your rule is honored or ignored by systemd after the OS upgrade - this may depend on config file location and naming. At least, would for HWDB override mechanism: <a href="https://www.freedesktop.org/software/systemd/man/hwdb.html">https://www.freedesktop.org/software/systemd/man/hwdb.html</a></div><div>* ...and/or if it conflicts with something due to also-use of some same SUBSYSTEM (not listed in your snapshot)...<br></div><div><br></div><div>Hope this helps,</div><div>Jim Klimov<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 4, 2023 at 5:08 AM Karl Schmidt <<a href="mailto:karl@lrak.net">karl@lrak.net</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">Upgraded to Debian bookworm - working nut system stopped working.<br>
<br>
nut-server: Installed: 2.8.0-7<br>
<br>
<br>
Trying :<br>
<br>
/usr/lib/nut/upscode2 -a malaysia -DD<br>
Network UPS Tools - UPScode II UPS driver 0.90 (2.8.0)<br>
Warning: This is an experimental driver.<br>
Some features may not function correctly.<br>
<br>
0.000000 [D1] debug level is '2'<br>
0.002302 tcgetattr(/dev/ttyUSB-nut): Inappropriate ioctl for device<br>
<br>
Looks like two problems - the udev rule isn't working any more?<br>
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="AJV9MKOY", SYMLINK+="ttyUSB-nut",GROUP = "nut", <br>
MODE="0666"<br>
<br>
<br>
So I tried going straight to the device:<br>
/usr/lib/nut/upscode2 -a malaysia -DDDD<br>
<br>
This returns the following after a bit (Looks like it likes UPTP)..<br>
<br>
<br>
] upscsend: 'UPTP'<br>
1.857813 [D3] upscrecv: Empty line<br>
1.921764 [D3] upscrecv: 5 bytes: 'NNAME'<br>
2.097563 [D3] upscrecv: 20 bytes: 'UPS 2400 VA FW -0026'<br>
2.097593 [D2] Got value: NNAME UPS 2400 VA FW -0026<br>
<br>
So it IS talking to the UPS - but something above my knowledge is going wrong?<br>
<br>
<br>
<br>
<br>
Here is a longer output tail..<br>
<br>
/usr/lib/nut/upscode2 -a malaysia -DDDD<br>
Network UPS Tools - UPScode II UPS driver 0.90 (2.8.0)<br>
Warning: This is an experimental driver.<br>
Some features may not function correctly.<br>
<br>
0.000000 [D1] debug level is '4'<br>
0.002995 [D1] input_timeout = 2 Sec<br>
0.003002 [D1] output_pace = 200 uSec<br>
0.003007 [D1] full_update_timer = 60 Sec<br>
0.003011 [D1] use_crlf = 0<br>
0.003016 [D1] use_pre_lf = 0<br>
0.004308 [D3] upscsend: 'UPCL'<br>
0.217722 [D3] upscrecv: Empty line<br>
0.265688 [D3] upscrecv: 4 bytes: 'UPSS'<br>
0.265717 [D2] Supports command: UPSS<br>
0.313620 [D3] upscrecv: 4 bytes: 'UPDS'<br>
0.313649 [D2] Supports command: UPDS<br>
0.361570 [D3] upscrecv: 4 bytes: 'UPDV'<br>
0.361599 [D2] Supports command: UPDV<br>
0.409520 [D3] upscrecv: 4 bytes: 'UPTP'<br>
0.409549 [D2] Supports command: UPTP<br>
0.457471 [D3] upscrecv: 4 bytes: 'UPSN'<br>
0.457500 [D2] Supports command: UPSN<br>
0.505436 [D3] upscrecv: 4 bytes: 'UPPN'<br>
0.505465 [D2] Supports command: UPPN<br>
0.569393 [D3] upscrecv: 4 bytes: 'UPSD'<br>
0.569421 [D2] Supports command: UPSD<br>
0.569437 [D1] setvar: ups.delay.shutdown UPSD<br>
0.617343 [D3] upscrecv: 4 bytes: 'UPCD'<br>
0.617372 [D2] Supports command: UPCD<br>
0.617387 [D1] setvar: ups.delay.reboot UPCD<br>
0.665290 [D3] upscrecv: 4 bytes: 'UPPC'<br>
0.665319 [D2] Supports command: UPPC<br>
0.665334 [D1] instcmd: shutdown.reboot UPPC<br>
0.713264 [D3] upscrecv: 4 bytes: 'UPPU'<br>
0.713293 [D2] Supports command: UPPU<br>
0.713307 [D1] instcmd: shutdown.stop UPPU<br>
0.761218 [D3] upscrecv: 4 bytes: 'UPIS'<br>
0.761247 [D2] Supports command: UPIS<br>
0.761262 [D1] instcmd: test.panel.start UPIS<br>
0.809167 [D3] upscrecv: 4 bytes: 'UP??'<br>
0.809197 [D2] Supports command: UP??<br>
0.857112 [D3] upscrecv: 4 bytes: 'UPEA'<br>
0.857141 [D2] Supports command: UPEA<br>
0.905089 [D3] upscrecv: 4 bytes: 'UPDA'<br>
0.905119 [D2] Supports command: UPDA<br>
0.953091 [D3] upscrecv: 4 bytes: 'UPCL'<br>
0.953120 [D2] Supports command: UPCL<br>
0.953135 [D2] Request value: UPCD 0000<br>
0.954763 [D3] upscsend: 'UPCD'<br>
0.956318 [D3] upscsend: '0000'<br>
2.958427 [D3] upscrecv: Timeout<br>
4.960535 [D3] upscrecv: Timeout<br>
4.960566 [D2] Got value:<br>
4.960580 Bad response to UPCD 0000:<br>
4.960596 dstate_setflags: base variable (ups.delay.reboot) does not exist<br>
4.960609 dstate_setaux: base variable (ups.delay.reboot) does not exist<br>
4.960624 [D2] Request value: UPSD 0000<br>
4.962217 [D3] upscsend: 'UPSD'<br>
4.963805 [D3] upscsend: '0000'<br>
5.089317 [D3] upscrecv: Empty line<br>
5.201214 [D3] upscrecv: 4 bytes: 'ACSD'<br>
5.313141 [D3] upscrecv: 3 bytes: '000'<br>
5.313177 [D2] Got value: ACSD 000<br>
5.313221 [D2] Request value: UPTP ""<br>
5.314826 [D3] upscsend: 'UPTP'<br>
5.512984 [D3] upscrecv: Empty line<br>
5.560909 [D3] upscrecv: 5 bytes: 'NNAME'<br>
5.752764 [D3] upscrecv: 20 bytes: 'UPS 2400 VA FW -0026'<br>
5.752794 [D2] Got value: NNAME UPS 2400 VA FW -0026<br>
5.752817 [D2] Request value: UPSN 0<br>
5.754297 [D3] upscsend: 'UPSN'<br>
5.754904 [D3] upscsend: '0'<br>
5.856693 [D3] upscrecv: Empty line<br>
5.904642 [D3] upscrecv: 4 bytes: 'ACSN'<br>
6.080517 [D3] upscrecv: 20 bytes: 'LR204A996 '<br>
6.080547 [D2] Got value: ACSN LR204A996<br>
6.082104 [D3] upscsend: 'UPDA'<br>
6.082125 [D1] Setvar: ups.delay.shutdown 10<br>
6.082140 [D2] Request value: UPSD 10<br>
6.083732 [D3] upscsend: 'UPSD'<br>
6.084665 [D3] upscsend: '10'<br>
8.086750 [D3] upscrecv: Timeout<br>
10.088837 [D3] upscrecv: Timeout<br>
10.088870 [D2] Got value:<br>
10.088885 Bad response to UPSD 10:<br>
10.088899 [D1] Setvar: ups.delay.reboot 60<br>
10.088914 [D2] Request value: UPCD 60<br>
10.090447 [D3] upscsend: 'UPCD'<br>
10.091381 [D3] upscsend: '60'<br>
10.216917 [D3] upscrecv: Empty line<br>
10.664514 [D3] upscrecv: 4 bytes: 'ACCD'<br>
10.776416 [D3] upscrecv: 3 bytes: '060'<br>
10.776446 [D2] Got value: ACCD 060<br>
10.778032 [D3] upscsend: 'UPDS'<br>
10.879313 [D3] upscrecv: Empty line<br>
10.927264 [D3] upscrecv: 4 bytes: 'STOK'<br>
10.975240 [D3] upscrecv: 2 bytes: '00'<br>
10.975271 [D2] Parameter STOK 00<br>
10.975286 [D3] Ignored value: STOK 00<br>
11.023214 [D3] upscrecv: 4 bytes: 'STBO'<br>
11.055157 [D3] upscrecv: 2 bytes: '00'<br>
11.055188 [D2] Parameter STBO 00<br>
11.103112 [D3] upscrecv: 4 bytes: 'STBL'<br>
11.135092 [D3] upscrecv: 2 bytes: '00'<br>
11.135123 [D2] Parameter STBL 00<br>
11.183039 [D3] upscrecv: 4 bytes: 'STBM'<br>
11.247011 [D3] upscrecv: 2 bytes: 'RS'<br>
11.247042 [D2] Parameter STBM RS<br>
11.247057 [D3] Ignored value: STBM RS<br>
11.294911 [D3] upscrecv: 4 bytes: 'STLR'<br>
11.326885 [D3] upscrecv: 2 bytes: 'NO'<br>
11.326917 [D2] Parameter STLR NO<br>
11.326933 [D3] Ignored value: NO 11<br>
11.438776 [D3] upscrecv: 5 bytes: 'BTIME'<br>
11.550705 [D3] upscrecv: 7 bytes: '0044.00'<br>
11.550736 [D2] Parameter BTIME 0044.00<br>
11.630638 [D3] upscrecv: 5 bytes: 'MIUL1'<br>
11.710552 [D3] upscrecv: 7 bytes: '0123.00'<br>
11.710583 [D2] Parameter MIUL1 0123.00<br>
11.758512 [D3] upscrecv: 5 bytes: 'MBUUU'<br>
11.854411 [D3] upscrecv: 7 bytes: '0052.40'<br>
11.854442 [D2] Parameter MBUUU 0052.40<br>
11.934326 [D3] upscrecv: 5 bytes: 'MOUL1'<br>
12.030259 [D3] upscrecv: 7 bytes: '0123.00'<br>
12.030292 [D2] Parameter MOUL1 0123.00<br>
12.110180 [D3] upscrecv: 5 bytes: 'MOIL1'<br>
12.190129 [D3] upscrecv: 7 bytes: '0001.61'<br>
12.190160 [D2] Parameter MOIL1 0001.61<br>
12.318027 [D3] upscrecv: 5 bytes: 'MOPL1'<br>
12.445896 [D3] upscrecv: 7 bytes: '0000.14'<br>
12.445927 [D2] Parameter MOPL1 0000.14<br>
12.493846 [D3] upscrecv: 5 bytes: 'MOSL1'<br>
12.573801 [D3] upscrecv: 7 bytes: '0000.19'<br>
12.573833 [D2] Parameter MOSL1 0000.19<br>
12.637719 [D3] upscrecv: 5 bytes: 'MOFFF'<br>
12.701675 [D3] upscrecv: 7 bytes: '0060.00'<br>
12.701707 [D2] Parameter MOFFF 0060.00<br>
12.703253 [D3] upscsend: 'UPDV'<br>
12.997414 [D3] upscrecv: Empty line<br>
13.045369 [D3] upscrecv: 5 bytes: 'NIUNN'<br>
13.125288 [D3] upscrecv: 7 bytes: '0120.00'<br>
13.125320 [D2] Parameter NIUNN 0120.00<br>
13.173272 [D3] upscrecv: 5 bytes: 'NIUHH'<br>
13.253195 [D3] upscrecv: 7 bytes: '0145.00'<br>
13.253227 [D2] Parameter NIUHH 0145.00<br>
13.317124 [D3] upscrecv: 5 bytes: 'NIULL'<br>
13.381064 [D3] upscrecv: 7 bytes: '0084.00'<br>
13.381096 [D2] Parameter NIULL 0084.00<br>
13.444995 [D3] upscrecv: 5 bytes: 'NBUNN'<br>
13.508999 [D3] upscrecv: 7 bytes: '0048.00'<br>
13.509031 [D2] Parameter NBUNN 0048.00<br>
13.572871 [D3] upscrecv: 5 bytes: 'NBUHH'<br>
13.652790 [D3] upscrecv: 7 bytes: '0056.40'<br>
13.652822 [D2] Parameter NBUHH 0056.40<br>
13.700718 [D3] upscrecv: 5 bytes: 'NBULL'<br>
13.780646 [D3] upscrecv: 7 bytes: '0040.00'<br>
13.780678 [D2] Parameter NBULL 0040.00<br>
13.828610 [D3] upscrecv: 5 bytes: 'NBAHN'<br>
13.908534 [D3] upscrecv: 7 bytes: '0017.00'<br>
13.908565 [D2] Parameter NBAHN 0017.00<br>
13.972466 [D3] upscrecv: 5 bytes: 'NOUNN'<br>
14.036388 [D3] upscrecv: 7 bytes: '0120.00'<br>
14.036420 [D2] Parameter NOUNN 0120.00<br>
14.100339 [D3] upscrecv: 5 bytes: 'NOUHH'<br>
14.164293 [D3] upscrecv: 7 bytes: '0128.00'<br>
14.164325 [D2] Parameter NOUHH 0128.00<br>
14.228232 [D3] upscrecv: 5 bytes: 'NOULL'<br>
14.308156 [D3] upscrecv: 7 bytes: '0108.00'<br>
14.308187 [D2] Parameter NOULL 0108.00<br>
14.372081 [D3] upscrecv: 5 bytes: 'NOINN'<br>
14.436035 [D3] upscrecv: 7 bytes: '0020.00'<br>
14.436066 [D2] Parameter NOINN 0020.00<br>
14.499991 [D3] upscrecv: 5 bytes: 'NOIHH'<br>
14.563980 [D3] upscrecv: 7 bytes: '0022.80'<br>
14.564012 [D2] Parameter NOIHH 0022.80<br>
14.627857 [D3] upscrecv: 5 bytes: 'NOPNN'<br>
14.707804 [D3] upscrecv: 7 bytes: '0001.60'<br>
14.707835 [D2] Parameter NOPNN 0001.60<br>
14.755763 [D3] upscrecv: 5 bytes: 'NOSNN'<br>
14.835705 [D3] upscrecv: 7 bytes: '0002.40'<br>
14.835737 [D2] Parameter NOSNN 0002.40<br>
14.883676 [D3] upscrecv: 5 bytes: 'NOFHH'<br>
14.979582 [D3] upscrecv: 7 bytes: '0063.00'<br>
14.979614 [D2] Parameter NOFHH 0063.00<br>
15.027550 [D3] upscrecv: 5 bytes: 'NOFLL'<br>
15.107450 [D3] upscrecv: 7 bytes: '0057.00'<br>
15.107481 [D2] Parameter NOFLL 0057.00<br>
15.107536 [D2] ups.load: 8.1<br>
15.107666 [D2] dstate_init: sock /run/nut/upscode2-malaysia open on fd 5<br>
15.109232 [D3] upscsend: 'UPDS'<br>
15.210376 [D3] upscrecv: Empty line<br>
15.258350 [D3] upscrecv: 4 bytes: 'STOK'<br>
15.306305 [D3] upscrecv: 2 bytes: '00'<br>
15.306336 [D2] Parameter STOK 00<br>
15.306352 [D3] Ignored value: STOK 00<br>
15.354256 [D3] upscrecv: 4 bytes: 'STBO'<br>
15.386220 [D3] upscrecv: 2 bytes: '00'<br>
15.386255 [D2] Parameter STBO 00<br>
15.434171 [D3] upscrecv: 4 bytes: 'STBL'<br>
15.466145 [D3] upscrecv: 2 bytes: '00'<br>
15.466176 [D2] Parameter STBL 00<br>
15.514102 [D3] upscrecv: 4 bytes: 'STBM'<br>
15.578049 [D3] upscrecv: 2 bytes: 'RS'<br>
15.578080 [D2] Parameter STBM RS<br>
15.578095 [D3] Ignored value: STBM RS<br>
15.625999 [D3] upscrecv: 4 bytes: 'STLR'<br>
15.673979 [D3] upscrecv: 2 bytes: 'NO'<br>
15.674011 [D2] Parameter STLR NO<br>
15.674026 [D3] Ignored value: NO 11<br>
15.769877 [D3] upscrecv: 5 bytes: 'BTIME'<br>
15.881803 [D3] upscrecv: 7 bytes: '0044.00'<br>
15.881834 [D2] Parameter BTIME 0044.00<br>
15.961721 [D3] upscrecv: 5 bytes: 'MIUL1'<br>
16.041667 [D3] upscrecv: 7 bytes: '0123.00'<br>
16.041699 [D2] Parameter MIUL1 0123.00<br>
16.089620 [D3] upscrecv: 5 bytes: 'MBUUU'<br>
16.185517 [D3] upscrecv: 7 bytes: '0052.40'<br>
16.185548 [D2] Parameter MBUUU 0052.40<br>
16.265414 [D3] upscrecv: 5 bytes: 'MOUL1'<br>
16.361340 [D3] upscrecv: 7 bytes: '0123.00'<br>
16.361371 [D2] Parameter MOUL1 0123.00<br>
16.441295 [D3] upscrecv: 5 bytes: 'MOIL1'<br>
16.521219 [D3] upscrecv: 7 bytes: '0001.61'<br>
16.521250 [D2] Parameter MOIL1 0001.61<br>
16.649089 [D3] upscrecv: 5 bytes: 'MOPL1'<br>
16.776990 [D3] upscrecv: 7 bytes: '0000.14'<br>
16.777021 [D2] Parameter MOPL1 0000.14<br>
16.840963 [D3] upscrecv: 5 bytes: 'MOSL1'<br>
16.904897 [D3] upscrecv: 7 bytes: '0000.19'<br>
16.904928 [D2] Parameter MOSL1 0000.19<br>
16.968835 [D3] upscrecv: 5 bytes: 'MOFFF'<br>
17.048768 [D3] upscrecv: 7 bytes: '0060.00'<br>
17.048800 [D2] Parameter MOFFF 0060.00<br>
17.048843 [D2] ups.load: 8.1<br>
17.109379 [D3] upscsend: 'UPDS'<br>
17.211638 [D3] upscrecv: Empty line<br>
17.259590 [D3] upscrecv: 4 bytes: 'STOK'<br>
17.307555 [D3] upscrecv: 2 bytes: '00'<br>
17.307586 [D2] Parameter STOK 00<br>
17.307602 [D3] Ignored value: STOK 00<br>
17.355513 [D3] upscrecv: 4 bytes: 'STBO'<br>
17.387488 [D3] upscrecv: 2 bytes: '00'<br>
17.387520 [D2] Parameter STBO 00<br>
17.435441 [D3] upscrecv: 4 bytes: 'STBL'<br>
17.467414 [D3] upscrecv: 2 bytes: '00'<br>
17.467445 [D2] Parameter STBL 00<br>
17.515380 [D3] upscrecv: 4 bytes: 'STBM'<br>
17.579312 [D3] upscrecv: 2 bytes: 'RS'<br>
17.579343 [D2] Parameter STBM RS<br>
17.579359 [D3] Ignored value: STBM RS<br>
17.627263 [D3] upscrecv: 4 bytes: 'STLR'<br>
17.659249 [D3] upscrecv: 2 bytes: 'NO'<br>
17.659280 [D2] Parameter STLR NO<br>
17.659296 [D3] Ignored value: NO 11<br>
17.771136 [D3] upscrecv: 5 bytes: 'BTIME'<br>
17.883029 [D3] upscrecv: 7 bytes: '0044.00'<br>
17.883061 [D2] Parameter BTIME 0044.00<br>
17.962979 [D3] upscrecv: 5 bytes: 'MIUL1'<br>
18.042958 [D3] upscrecv: 7 bytes: '0122.90'<br>
18.042990 [D2] Parameter MIUL1 0122.90<br>
18.090962 [D3] upscrecv: 5 bytes: 'MBUUU'<br>
18.186809 [D3] upscrecv: 7 bytes: '0052.40'<br>
18.186840 [D2] Parameter MBUUU 0052.40<br>
18.266757 [D3] upscrecv: 5 bytes: 'MOUL1'<br>
18.362674 [D3] upscrecv: 7 bytes: '0122.90'<br>
18.362705 [D2] Parameter MOUL1 0122.90<br>
18.442624 [D3] upscrecv: 5 bytes: 'MOIL1'<br>
18.522581 [D3] upscrecv: 7 bytes: '0001.61'<br>
18.522613 [D2] Parameter MOIL1 0001.61<br>
18.650481 [D3] upscrecv: 5 bytes: 'MOPL1'<br>
18.778378 [D3] upscrecv: 7 bytes: '0000.14'<br>
18.778409 [D2] Parameter MOPL1 0000.14<br>
18.842321 [D3] upscrecv: 5 bytes: 'MOSL1'<br>
18.906289 [D3] upscrecv: 7 bytes: '0000.19'<br>
18.906321 [D2] Parameter MOSL1 0000.19<br>
18.970249 [D3] upscrecv: 5 bytes: 'MOFFF'<br>
19.034175 [D3] upscrecv: 7 bytes: '0060.00'<br>
19.034237 [D2] Parameter MOFFF 0060.00<br>
19.034282 [D2] ups.load: 8.1<br>
19.109547 [D3] upscsend: 'UPDS'<br>
19.210993 [D3] upscrecv: Empty line<br>
19.258968 [D3] upscrecv: 4 bytes: 'STOK'<br>
19.306942 [D3] upscrecv: 2 bytes: '00'<br>
19.306974 [D2] Parameter STOK 00<br>
19.306989 [D3] Ignored value: STOK 00<br>
19.354951 [D3] upscrecv: 4 bytes: 'STBO'<br>
19.386848 [D3] upscrecv: 2 bytes: '00'<br>
19.386879 [D2] Parameter STBO 00<br>
19.434847 [D3] upscrecv: 4 bytes: 'STBL'<br>
19.466816 [D3] upscrecv: 2 bytes: '00'<br>
19.466848 [D2] Parameter STBL 00<br>
19.514772 [D3] upscrecv: 4 bytes: 'STBM'<br>
19.578715 [D3] upscrecv: 2 bytes: 'RS'<br>
19.578745 [D2] Parameter STBM RS<br>
19.578761 [D3] Ignored value: STBM RS<br>
19.626684 [D3] upscrecv: 4 bytes: 'STLR'<br>
19.658646 [D3] upscrecv: 2 bytes: 'NO'<br>
19.658677 [D2] Parameter STLR NO<br>
19.658693 [D3] Ignored value: NO 11<br>
19.770573 [D3] upscrecv: 5 bytes: 'BTIME'<br>
19.882444 [D3] upscrecv: 7 bytes: '0044.00'<br>
19.882476 [D2] Parameter BTIME 0044.00<br>
19.962369 [D3] upscrecv: 5 bytes: 'MIUL1'<br>
20.042297 [D3] upscrecv: 7 bytes: '0122.80'<br>
20.042329 [D2] Parameter MIUL1 0122.80<br>
20.090245 [D3] upscrecv: 5 bytes: 'MBUUU'<br>
20.186167 [D3] upscrecv: 7 bytes: '0052.40'<br>
20.186231 [D2] Parameter MBUUU 0052.40<br>
20.266130 [D3] upscrecv: 5 bytes: 'MOUL1'<br>
20.362041 [D3] upscrecv: 7 bytes: '0122.80'<br>
20.362072 [D2] Parameter MOUL1 0122.80<br>
20.441966 [D3] upscrecv: 5 bytes: 'MOIL1'<br>
20.521933 [D3] upscrecv: 7 bytes: '0001.61'<br>
20.521963 [D2] Parameter MOIL1 0001.61<br>
20.649756 [D3] upscrecv: 5 bytes: 'MOPL1'<br>
20.777607 [D3] upscrecv: 7 bytes: '0000.14'<br>
20.777638 [D2] Parameter MOPL1 0000.14<br>
20.825556 [D3] upscrecv: 5 bytes: 'MOSL1'<br>
20.905456 [D3] upscrecv: 7 bytes: '0000.19'<br>
20.905487 [D2] Parameter MOSL1 0000.19<br>
20.969405 [D3] upscrecv: 5 bytes: 'MOFFF'<br>
21.033378 [D3] upscrecv: 7 bytes: '0060.00'<br>
21.033410 [D2] Parameter MOFFF 0060.00<br>
21.033452 [D2] ups.load: 8.1<br>
21.109675 [D3] upscsend: 'UPDS'<br>
21.211208 [D3] upscrecv: Empty line<br>
21.259161 [D3] upscrecv: 4 bytes: 'STOK'<br>
21.307134 [D3] upscrecv: 2 bytes: '00'<br>
21.307165 [D2] Parameter STOK 00<br>
21.307181 [D3] Ignored value: STOK 00<br>
21.355107 [D3] upscrecv: 4 bytes: 'STBO'<br>
21.387063 [D3] upscrecv: 2 bytes: '00'<br>
21.387095 [D2] Parameter STBO 00<br>
21.435034 [D3] upscrecv: 4 bytes: 'STBL'<br>
21.467030 [D3] upscrecv: 2 bytes: '00'<br>
21.467061 [D2] Parameter STBL 00<br>
21.515006 [D3] upscrecv: 4 bytes: 'STBM'<br>
21.578958 [D3] upscrecv: 2 bytes: 'RS'<br>
21.578990 [D2] Parameter STBM RS<br>
21.579005 [D3] Ignored value: STBM RS<br>
21.626930 [D3] upscrecv: 4 bytes: 'STLR'<br>
21.658933 [D3] upscrecv: 2 bytes: 'NO'<br>
21.658964 [D2] Parameter STLR NO<br>
21.658980 [D3] Ignored value: NO 11<br>
21.770804 [D3] upscrecv: 5 bytes: 'BTIME'<br>
21.882679 [D3] upscrecv: 7 bytes: '0044.00'<br>
21.882710 [D2] Parameter BTIME 0044.00<br>
21.962630 [D3] upscrecv: 5 bytes: 'MIUL1'<br>
22.042523 [D3] upscrecv: 7 bytes: '0122.70'<br>
22.042555 [D2] Parameter MIUL1 0122.70<br>
22.090496 [D3] upscrecv: 5 bytes: 'MBUUU'<br>
22.186404 [D3] upscrecv: 7 bytes: '0052.40'<br>
22.186435 [D2] Parameter MBUUU 0052.40<br>
22.266327 [D3] upscrecv: 5 bytes: 'MOUL1'<br>
22.362259 [D3] upscrecv: 7 bytes: '0122.70'<br>
22.362291 [D2] Parameter MOUL1 0122.70<br>
22.442178 [D3] upscrecv: 5 bytes: 'MOIL1'<br>
22.522100 [D3] upscrecv: 7 bytes: '0001.61'<br>
22.522131 [D2] Parameter MOIL1 0001.61<br>
22.650010 [D3] upscrecv: 5 bytes: 'MOPL1'<br>
22.777925 [D3] upscrecv: 7 bytes: '0000.14'<br>
22.777956 [D2] Parameter MOPL1 0000.14<br>
22.825840 [D3] upscrecv: 5 bytes: 'MOSL1'<br>
22.905771 [D3] upscrecv: 7 bytes: '0000.19'<br>
22.905803 [D2] Parameter MOSL1 0000.19<br>
22.969722 [D3] upscrecv: 5 bytes: 'MOFFF'<br>
23.033673 [D3] upscrecv: 7 bytes: '0060.00'<br>
23.033705 [D2] Parameter MOFFF 0060.00<br>
23.033748 [D2] ups.load: 8.1<br>
23.109839 [D3] upscsend: 'UPDS'<br>
23.211517 [D3] upscrecv: Empty line<br>
23.259472 [D3] upscrecv: 4 bytes: 'STOK'<br>
23.307419 [D3] upscrecv: 2 bytes: '00'<br>
23.307450 [D2] Parameter STOK 00<br>
23.307465 [D3] Ignored value: STOK 00<br>
23.355368 [D3] upscrecv: 4 bytes: 'STBO'<br>
23.387348 [D3] upscrecv: 2 bytes: '00'<br>
23.387378 [D2] Parameter STBO 00<br>
23.435293 [D3] upscrecv: 4 bytes: 'STBL'<br>
23.467300 [D3] upscrecv: 2 bytes: '00'<br>
23.467332 [D2] Parameter STBL 00<br>
23.515242 [D3] upscrecv: 4 bytes: 'STBM'<br>
23.579192 [D3] upscrecv: 2 bytes: 'RS'<br>
23.579223 [D2] Parameter STBM RS<br>
23.579238 [D3] Ignored value: STBM RS<br>
23.627141 [D3] upscrecv: 4 bytes: 'STLR'<br>
23.659116 [D3] upscrecv: 2 bytes: 'NO'<br>
23.659146 [D2] Parameter STLR NO<br>
23.659162 [D3] Ignored value: NO 11<br>
23.771015 [D3] upscrecv: 5 bytes: 'BTIME'<br>
23.882913 [D3] upscrecv: 7 bytes: '0044.00'<br>
23.882945 [D2] Parameter BTIME 0044.00<br>
23.962838 [D3] upscrecv: 5 bytes: 'MIUL1'<br>
24.042766 [D3] upscrecv: 7 bytes: '0122.90'<br>
24.042798 [D2] Parameter MIUL1 0122.90<br>
24.090688 [D3] upscrecv: 5 bytes: 'MBUUU'<br>
24.186636 [D3] upscrecv: 7 bytes: '0052.40'<br>
24.186668 [D2] Parameter MBUUU 0052.40<br>
24.266579 [D3] upscrecv: 5 bytes: 'MOUL1'<br>
24.362485 [D3] upscrecv: 7 bytes: '0122.90'<br>
24.362517 [D2] Parameter MOUL1 0122.90<br>
24.442409 [D3] upscrecv: 5 bytes: 'MOIL1'<br>
24.522328 [D3] upscrecv: 7 bytes: '0001.61'<br>
24.522359 [D2] Parameter MOIL1 0001.61<br>
24.650229 [D3] upscrecv: 5 bytes: 'MOPL1'<br>
24.778081 [D3] upscrecv: 7 bytes: '0000.14'<br>
24.778112 [D2] Parameter MOPL1 0000.14<br>
24.826025 [D3] upscrecv: 5 bytes: 'MOSL1'<br>
24.905956 [D3] upscrecv: 7 bytes: '0000.19'<br>
24.905987 [D2] Parameter MOSL1 0000.19<br>
24.969900 [D3] upscrecv: 5 bytes: 'MOFFF'<br>
25.033908 [D3] upscrecv: 7 bytes: '0060.00'<br>
25.033940 [D2] Parameter MOFFF 0060.00<br>
25.033983 [D2] ups.load: 8.1<br>
25.109986 [D3] upscsend: 'UPDS'<br>
<br>
------------->%-------------------------------------------<br>
<br>
From ups.conf<br>
<br>
user = nut<br>
maxretry = 3<br>
[malaysia]<br>
# driver = usbhid-ups<br>
# port = auto<br>
<br>
# port = /dev/usb/hiddev0<br>
# desc = "Triplite SU1500xl"<br>
<br>
<br>
<br>
driver = upscode2<br>
# port = /dev/ttyUSB-nut<br>
port = /dev/ttyUSB0<br>
manufacturer=Exide<br>
# baudrate=1200<br>
## input_timeout=30<br>
# full_update_timer=60<br>
## pollinterval=4<br>
<br>
desc="Exide PCR2400"<br>
<br>
#Acceptable values for this driver:<br>
<br>
# manufacturer [unknown] : -x manufacturer=<value><br>
# Serial interface baudrate [1200] : -x baudrate=<value><br>
# Command response timeout [2] : -x input_timeout=<value><br>
# Output character delay in usecs [200] : -x output_pace=<value><br>
# Delay between full value downloads [60] : -x full_update=<value><br>
# Use CR-LF to terminate commands to UPS : -x use_crlf<br>
# Use LF to introduce commands to UPS : -x use_pre_lf<br>
<br>
#KPS - persistant name from usb-serial converter - see /etc/udev/rules.d/52_nut-serialups.rules<br>
<br>
# Set maxretry to 3 by default, this should mitigate race with slow devices:<br>
root@malaysia:~#<br>
<br>
<br>
<br>
-- <br>
--------------------------------------------------------------------------------<br>
Karl Schmidt EMail <a href="mailto:karl@lrak.net" target="_blank">karl@lrak.net</a><br>
3209 West 9th Street Ph (785) 841-3089<br>
Lawrence, KS 66049<br>
<br>
If the government is allowed to break the law during emergencies,<br>
They will create emergencies to break the law.<br>
?<br>
--------------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@alioth-lists.debian.net" 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" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
</blockquote></div>