Re: [Nut-upsuser] APC BACK UPS 2200 model BZ2200BI-BR
On Aug 21, 2015, at 10:10 AM, Mario Lobo ml...@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 -- Charles Lepple clepple@gmail ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] APC BACK UPS 2200 model BZ2200BI-BR (update)
On Sun, 23 Aug 2015 11:09:03 -0400 Charles Lepple clep...@gmail.com wrote: On Aug 21, 2015, at 10:10 AM, Mario Lobo ml...@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 Here is what I got from running the just-compiled nut-2.7.3.1.tar.gz: [~]/usr/local/libexec/nut/solis -a lobos -u root -D -D -D Network UPS Tools - Microsol Solis UPS driver 0.63 (2.7.3.1) 0.00 debug level is '3' 0.001946 getbaseinfo: sending CMD_UPSCONT and ENDCHAR to sync 0.002111 getbaseinfo: requesting 25 bytes from ser_get_buf_len() 0.963327 getbaseinfo: received 25 bytes from ser_get_buf_len() 0.963360 CommReceive: RecPack: (25 bytes) = 00 17 91 49 5e 5e bc fe bb 46 88 ac 1b 0.963375 0a a0 ed 01 07 07 bb 46 82 ae 1b 09 0.963387 getbaseinfo: requesting 25 bytes from ser_get_buf_len() 2.048306 getbaseinfo: received 25 bytes from ser_get_buf_len() 2.048343 CommReceive: RecPack: (25 bytes) = a0 04 02 06 1d 0d 03 00 00 00 01 00 17 2.048358 91 49 5e 5e dc fe bb 47 83 ad 1a 09 2.048371 getbaseinfo: requesting 25 bytes from ser_get_buf_len() 3.132287 getbaseinfo: received 25 bytes from ser_get_buf_len() 3.132321 CommReceive: RecPack: (25 bytes) = a0 0a 02 07 1d 0d 03 00 00 00 01 00 17 3.132337 91 49 5e 5e e3 fe bb 46 88 ac 1a 0a 3.132350 getbaseinfo: requesting 25 bytes from ser_get_buf_len() 4.217261 getbaseinfo: received 25 bytes from ser_get_buf_len() 4.217294 CommReceive: RecPack: (25 bytes) = a0 f4 01 08 1d 0d 03 00 00 00 01 00 17 4.217309 91 49 5e 5e d1 fe bb 46 88 ad 02 0b 4.217322 getbaseinfo: requesting 25 bytes from ser_get_buf_len() 5.302236 getbaseinfo: received 25 bytes from ser_get_buf_len() 5.302268 CommReceive: RecPack: (25 bytes) = a0 0b 02 09 1d 0d 03 00 00 00 01 00 17 5.302283 91 49 5e 5e d4 fe bb 46 88 ad 1e 0a 5.302296 getbaseinfo: requesting 25 bytes from ser_get_buf_len() 6.386210 getbaseinfo: received 25 bytes from ser_get_buf_len() 6.386241 CommReceive: RecPack: (25 bytes) = a0 1b 02 0a 1d 0d 03 00 00 00 01 00 17 6.386256 91 49 5e 5e 00 fe bb 46 88 ad 1d 0a 6.386269 getbaseinfo: requesting 25 bytes from ser_get_buf_len() 7.471190 getbaseinfo: received 25 bytes from ser_get_buf_len() 7.471222 CommReceive: RecPack: (25 bytes) = a0 f6 01 0b 1d 0d 03 00 00 00 01 00 17 7.471236 91 49 5e 5e da fe bb 47 83 ac 1a 09 7.471249 getbaseinfo: requesting 25 bytes from ser_get_buf_len() 8.557168 getbaseinfo: received 25 bytes from ser_get_buf_len() 8.557200 CommReceive: RecPack: (25 bytes) = a0 f4 01 0c 1d 0d 03 00 00 00 01 00 17 8.557215 91 49 5e 5e d0 fe bb 46 88 ad 1e 0a 8.557241 getbaseinfo: requesting 25 bytes from ser_get_buf_len() 9.642144 getbaseinfo: received 25 bytes from ser_get_buf_len() 9.642177 CommReceive: RecPack: (25 bytes) = 0d 02 0d 1d 0d 03 00 00 00 01 00 17 91 9.642192 49 5e 5e f5 fe bb 47 83 ad 02 09 a0 9.642209 getbaseinfo: requesting 25 bytes from ser_get_buf_len() 10.727265 getbaseinfo: received 25 bytes from ser_get_buf_len() 10.727293 CommReceive: RecPack: (25 bytes) = 02 0e 1d 0d 03 00 00 00 01 00 17 91 49 10.727303 5e 5e d9 fe bb 46 88 ac 1e 0b a0 1d 10.727313 getbaseinfo: requesting 25 bytes from ser_get_buf_len() 11.811101 getbaseinfo: received 25 bytes from ser_get_buf_len() 11.811136 CommReceive: RecPack: (25 bytes) = 02 0f 1d 0d 03 00 00 00 01 00 17 91 49 11.811151 5e 5e 07 fe bb 47 88 ac 1c 0a a0 04 11.811164 getbaseinfo: requesting 25 bytes from ser_get_buf_len() 12.896076 getbaseinfo: received 25 bytes from ser_get_buf_len() 12.896112 CommReceive: RecPack: (25 bytes) = 02 10 1d 0d 03 00 00 00 01 00 17 91 49 12.896127 5e 5e ed fe bb 46 88 ac 19 0a a0 07 12.896140 getbaseinfo: requesting 25 bytes from ser_get_buf_len() 13.981054
Re: [Nut-upsuser] APC BACK UPS 2200 model BZ2200BI-BR
On Sun, 23 Aug 2015 11:09:03 -0400 Charles Lepple clep...@gmail.com wrote: On Aug 21, 2015, at 10:10 AM, Mario Lobo ml...@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. ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser