Great! Yes! A small bug. Please, fix at upsdrv_updateinfo ..... From alarm_init();
if (qq.EstadoBateria.bf.Ups) { alarm_set("UPS selftest failed!"); } To: alarm_init(); if (!qq.EstadoBateria.bf.Ups) { /* Must be a NOT */ alarm_set("UPS selftest failed!"); } That is it! Thanks. ---------------------------------------- > From: skr...@gmail.com > Date: Wed, 23 Jan 2013 18:01:12 -0200 > To: nut-upsdev@lists.alioth.debian.org > Subject: Re: [Nut-upsdev] nut driver for SMS (brazil) UPS > > Very good. Actually I don't know exactly why it is showing "UPS > selftest failed". Is it a bug? > > root@nas:/usr/local/ups/etc# ../bin/upsc sms@localhost > battery.charge: 100.0 > battery.charge.low: 30 > battery.charge.restart: 25 > battery.charge.warning: 40 > battery.voltage.nominal: 012 > device.mfr: SMS Brasil > device.model: Monophase - - :NET4+ 3.0 > device.serial: Cypress HID->COM > device.type: ups > driver.name: smsbrasil > driver.parameter.pollinterval: 2 > driver.parameter.port: /dev/ttyUSB0 > driver.version: 2.6.5 > driver.version.internal: 0.01 > input.current: 0.2 > input.frequency: 60.0 > input.voltage: 237.0 > input.voltage.maximum: 237.0 > input.voltage.minimum: 235.0 > input.voltage.nominal: 115/220 > output.current: 0.2 > output.frequency: 60.0 > output.voltage: 118.0 > ups.alarm: UPS selftest failed! > ups.mfr: SMS Brasil > ups.model: Monophase - - :NET4+ 3.0 > ups.productid: 5500 > ups.serial: Cypress HID->COM > ups.status: ALARM OL BYPASS > ups.temperature: 38.0 > ups.vendorid: 04b4 > > > On Wed, Jan 23, 2013 at 4:54 PM, Ulisses Guedes <uli1...@hotmail.com> wrote: > > > > Ok. Thanks. > > > > The URl is http://www2.dem.inpe.br/ulisses/nut-2.6.5-smsbrasil.diff.txt > > > > You must include the smsbrasil driver in Makefile.in, directory driver, and > > apply the patch, since it insert the driver at driver-list. > > I'm testing it at nut-2.6.5 (latest stable version). > > > > If you have some problem then fell free to ask. > > > > Regards, > > > > Ulisses Guedes > > > > > >> From: skr...@gmail.com > >> Date: Wed, 23 Jan 2013 16:02:12 -0200 > >> To: nut-upsdev@lists.alioth.debian.org > >> Subject: Re: [Nut-upsdev] nut driver for SMS (brazil) UPS > >> > >> I have a Net 4+ Expert and I could help testing. > >> > >> On Wed, Jan 23, 2013 at 3:51 PM, Rodrigo Vigna <skr...@gmail.com> wrote: > >> > I have a Net 4+ Expert and I could help testing. > >> > > >> > On Wed, Jan 23, 2013 at 3:44 PM, Ulisses Guedes <uli1...@hotmail.com> > >> > wrote: > >> >> > >> >> Hi, > >> >> > >> >> I'm new to this list but I have some contribution to do (or new > >> >> problem!) > >> >> > >> >> At this mailing list archive, october, last year, I could see that > >> >> there is a demand for a nut-driver for some brazilian SMS UPS. > >> >> (Monophase: Net+ and Senoidal models). > >> >> > >> >> The first version is running under some limitations, but it is going on. > >> >> > >> >> If anyone has interest for improvements, suggestions, then I can > >> >> provide the source code. > >> >> > >> >> Regards, > >> >> > >> >> Ulisses Guedes > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> _______________________________________________ > >> >> Nut-upsdev mailing list > >> >> Nut-upsdev@lists.alioth.debian.org > >> >> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsdev > >> > >> _______________________________________________ > >> Nut-upsdev mailing list > >> Nut-upsdev@lists.alioth.debian.org > >> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsdev > > > > _______________________________________________ > > Nut-upsdev mailing list > > Nut-upsdev@lists.alioth.debian.org > > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsdev > > _______________________________________________ > Nut-upsdev mailing list > Nut-upsdev@lists.alioth.debian.org > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsdev _______________________________________________ Nut-upsdev mailing list Nut-upsdev@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsdev