[Nut-upsuser] APC BACK UPS 2200 model BZ2200BI-BR

Mario Lobo mlobo at digiart.art.br
Sun Aug 23 21:58:07 UTC 2015


On Sun, 23 Aug 2015 11:09:03 -0400
Charles Lepple <clepple at gmail.com> wrote:

> On Aug 21, 2015, at 10:10 AM, Mario Lobo <mlobo at digiart.art.br> wrote:
> > 
> >> Not sure what to look for yet. It might be easier to add in the
> >> debug calls to the source code-- can you try building NUT from
> >> source? If you installed via the ports tree (as opposed to binary
> >> packages), you should have most of the dependencies installed. You
> >> might also need libtool and autoconf, as mentioned in the second
> >> link below:
> >> 
> >> http://www.networkupstools.org/docs/developer-guide.chunked/ar01s03.html#_source_code_management
> >> and
> >> http://www.networkupstools.org/docs/developer-guide.chunked/ar01s03.html#building
> >> 
> > 
> > Yes I did build it through ports. I try to build a debug version of
> > it.
> 
> Mario,
> 
> I added a few debug statements throughout the solis driver:
> 
> https://github.com/networkupstools/nut/tree/solis_debug
> 
> If you run into trouble with the initial build, there will be a
> tarball snapshot here shortly that bypasses some of the
> autoconf/libtool issues (look for the nut-* link under step 5):
> 
> http://buildbot.networkupstools.org/public/nut/builders/Debian-x64-gcc/builds/389
> 

Hi Charles!

Like I said on my last e-mail, I managed to build a debug version of
solis.

Here is an output:

==============================================
653             upsdrv_initinfo();
(gdb) next
Detected Solis 1.0 on /dev/cuaU0
UPS Date 1999/09/23
System Date 2015/08/23 day of week Sun
UPS internal Time 13:02:49
Shutdown programming not atived
654             upsdrv_updateinfo();
(gdb) next
656             if (dstate_getinfo("driver.flag.ignorelb")) {
(gdb) next
679             dstate_init(progname, upsname);
(gdb) next
682             dstate_setinfo("driver.parameter.pollinterval", "%d",
poll_interval); (gdb) next
685             dstate_setinfo("driver.parameter.synchronous", "%s",
(gdb) next
689             if (dstate_getinfo("ups.mfr") != NULL)
(gdb) next
690                     dstate_setinfo("device.mfr", "%s",
dstate_getinfo("ups.mfr")); (gdb) next
691             if (dstate_getinfo("ups.model") != NULL)
(gdb) next
692                     dstate_setinfo("device.model", "%s",
dstate_getinfo("ups.model")); (gdb) next
693             if (dstate_getinfo("ups.serial") != NULL)
(gdb) next
696             if (nut_debug_level == 0) {
(gdb) next
697                     background();
(gdb) next

Program exited normally.
(gdb) 
==============================================

Funny... Under gdb, it detects something, even if it is a "wrong" ups. 

Running it straight, it outputs this:

[~]>/usr/local/libexec/nut/solis -a lobos -u root
Network UPS Tools - Microsol Solis UPS driver 0.62 (2.7.3)
Solis not detected! aborting ...

I just downloaded nut-2.7.3.1.tar.gz from the link you provided and
I'll try to give it a spin. I can do it through the ports because there
aren't any code patches. Only script patches, so you're free to change
the code around as much as needed.

Thanks for sticking with me on this!
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio.... YET!!]

"UNIX was not designed to stop you from doing stupid things, 
because that would also stop you from doing clever things."



More information about the Nut-upsuser mailing list