Hi Charles,>----- Original Message ----- >From: "Charles Lepple" <clepple at gmail.com> >To: "R?bert SZAKSZ" <robert at szaksz.eu> >Cc: nut-upsuser at lists.alioth.debian.org >Sent: Monday, November 16, 2015 3:20:17 PM >Subject: Re: [Nut-upsuser] Contact-closure UPS > >[please use reply-all when responding - the list does not modify the reply-to header.] > >> On Nov 16, 2015, at 8:24 AM, R?bert SZAKSZ <robert at szaksz.eu> wrote: >> >> Hello, >> >> I have one UPS Infosec XP Pro 2500 RM and it works with windows sw RUPS2000. >> Now I want to install this UPS as virtual server on vmware ESXi vMA - (SUSE SLES 11SP2 linux). >> On this linux I have NUT 2.6.0 and I stopped now with configuration of genericups driver. >> >> Working cable (direct cable pin1-pin1 ... pin9-pin9) connection on Windows: >> >> PIN | PC | UPS >> __________________________________________________________________________________ >> Pin1 | DCD | described as DTR (must keep Hi) >> Pin2 | RxD | AC Power fail (NO, connected to pin4 UPS ground in case of AC failure) > >The genericups driver does not have a setting to use the PC RxD line as a contact-closure input. It seems to be possible if the other software is using it, but genericups can only send a BREAK signal (rather >than receiving it). > >> Pin3 | TxD | N/A >> Pin4 | DTR | UPS ground >> Pin5 | GND | Battery low (NO, connected to pin4 UPS ground in case of LB) >> Pin6 | DSR | 1. described as UPS RxD and 2. 3 seconds Hi (UPS shutdown) >> Pin7 | RTS | UPS ground >> Pin8 | CTS | N/A >> Pin9 | RI | described as UPS TxD >> >> And the question is, how to configure CP[???], OL[???], LB[???], SD[???]? >> No one from predefined 21 types worked for me. >> > >The RUPS 2000 cable type in genericups seems to correspond to a crossed cable as shown in 5.2.1 below: > >http://web.archive.org/web/20100106160328/http://ups.miem.edu.ru/ups_faq5.html > >You might also be able to connect up the TxD and RxD lines, and use the nutdrv_qx (not available until after v2.6.5), megatec or blazer_ser drivers: > >PC UPS Description >== === ==========>2 9 TxD >3 6 RxD >5 7 Ground > >-- >Charles Lepple >clepple at gmailThank you for your answer, so I want to try make the "smart" cable, but should I use: http://www.networkupstools.org/ups-protocols/megatec.html (cable mentioned by you - above 3 wire cable)? or http://web.archive.org/web/20100106160328/http://ups.miem.edu.ru/ups_faq5.html (cable 5.4.1)? and which ist the best driver for it? blazer_ser? Kind regards, Robert SZAKSZ.
On Nov 16, 2015, at 3:57 PM, R?bert SZAKSZ <robert at szaksz.eu> wrote:> > Thank you for your answer, so I want to try make the "smart" cable, but should I use: > http://www.networkupstools.org/ups-protocols/megatec.html (cable mentioned by you - above 3 wire cable)?If I am reading the code correctly, it does not need anything other than Tx/Rx/Ground (ser_open() sets CLOCAL, which ignores modem control lines). So that cable should work.> or > http://web.archive.org/web/20100106160328/http://ups.miem.edu.ru/ups_faq5.html (cable 5.4.1)?The loopback connections would be for the modem control lines (hardware handshaking, which your UPS probably does not do). Other than that, I think the DB-9 pinout is the same. nutdrv_qx would be best, but blazer_ser is the next newest driver. -- Charles Lepple clepple at gmail
Hi Charles, I am done with few things: I made the cable - looks good, because I see some activities. I upgraded NUT to 2.7.3. but I have no success to start driver(this are the outputs) nut.cfg MODE = netserver ups.conf [infosec] driver = nutdrv_qx (or blazer_ser) port = /dev/ttyS1 desc = "XP Pro 2500 RM" output(nutdrv_qx cmd upsdrvctl -DDD start) Network UPS Tools - UPS driver controller 2.7.3 0.000000 If you're not a NUT core developer, chances are that you're told to enable debugging to see why a driver isn't working for you. We're sorry for the confusion, but this is the 'upsdrvctl' wrapper, not the driver you're interested in. Below you'll find one or more lines starting with 'exec:' followed by an absolute path to the driver binary and some command line option. This is what the driver starts and you need to copy and paste that line and append the debug flags to that line (less the 'exec:' prefix). 0.000665 Starting UPS: infosec 0.000891 1 remaining attempts 0.001135 exec: /usr/lib/ups/driver/nutdrv_qx -a infosec Network UPS Tools - Generic Q* USB/Serial driver 0.17 (2.7.3) USB communication driver 0.32 Device not supported! Device not supported! 30.165209 Driver failed to start (exit status=1) output(blazer_ser cmd upsdrvctl -DDD start) Network UPS Tools - UPS driver controller 2.7.3 0.000000 If you're not a NUT core developer, chances are that you're told to enable debugging to see why a driver isn't working for you. We're sorry for the confusion, but this is the 'upsdrvctl' wrapper, not the driver you're interested in. Below you'll find one or more lines starting with 'exec:' followed by an absolute path to the driver binary and some command line option. This is what the driver starts and you need to copy and paste that line and append the debug flags to that line (less the 'exec:' prefix). 0.002778 Starting UPS: infosec 0.003112 1 remaining attempts 0.003716 exec: /usr/lib/ups/driver/blazer_ser -a infosec Network UPS Tools - Megatec/Q1 protocol serial driver 1.56 (2.7.3) No supported UPS detected 12.135176 Driver failed to start (exit status=1) Please what I am doing wrong? Best regards, Robert SZAKSZ. ----- Original Message ----- From: "Charles Lepple" <clepple at gmail.com> To: "R?bert SZAKSZ" <robert at szaksz.eu> Cc: nut-upsuser at lists.alioth.debian.org Sent: Tuesday, November 17, 2015 3:56:58 AM Subject: Re: [Nut-upsuser] Contact-closure UPS On Nov 16, 2015, at 3:57 PM, R?bert SZAKSZ <robert at szaksz.eu> wrote:> > Thank you for your answer, so I want to try make the "smart" cable, but should I use: > http://www.networkupstools.org/ups-protocols/megatec.html (cable mentioned by you - above 3 wire cable)?If I am reading the code correctly, it does not need anything other than Tx/Rx/Ground (ser_open() sets CLOCAL, which ignores modem control lines). So that cable should work.> or > http://web.archive.org/web/20100106160328/http://ups.miem.edu.ru/ups_faq5.html (cable 5.4.1)?The loopback connections would be for the modem control lines (hardware handshaking, which your UPS probably does not do). Other than that, I think the DB-9 pinout is the same. nutdrv_qx would be best, but blazer_ser is the next newest driver. -- Charles Lepple clepple at gmail