[Nut-upsdev] Powercom BNT-1200AP
Alexey Sidorov
alex at reutman.ru
Tue May 2 09:07:49 UTC 2006
Simon Rozman пишет:
> Dear Alexey,
>
>
> The problem with the powercom module is that since there was no
> documentation for it, my predecessor and I used a reverse engineering to
> write an approximate driver. Unfortunately, only a subset of features works
> and only on some Powercom class UPSs.
>
> Your only solution for now is, to do some programming on your own. Find out
> how Upsmon configures the shutdown delay time. Try using some software to
> log the COM port traffic on Windows, and see what code Upsmon sends to setup
> the shutdown delay time on UPS.
> On the other hand, find a friend with sufficient development and research
> skill, to do it for you.
>
>
> Regards,
>
>
> Simon -
> The artist formerly known as the Powercom module developer
>
hello again :)
where are I can insert code for poweroff ups on OB LB before shutdown computers?
i try insert it to upsdrv_shutdown, but it's not work. Why?
static void shutdown_ret(void)
{
ser_send_char (upsfd, SHUTDOWN0);
ser_send_char (upsfd, SHUTDOWN);
if (types[type].shutdown_arguments.minutesShouldBeUsed != 'n') ser_send_char (upsfd, '\x00');
ser_send_char (upsfd, '\x10');
upslogx(LOG_INFO, "Shutdown (return) initiated.");
exit (0);
}
void upsdrv_shutdown(void)
{
/* power down the attached load immediately */
printf("Forced UPS shutdown (and wait for power)...\n");
shutdown_ret();
}
powercom driver not send this bytes (SHUTDOWN0,SHUTDOWN) :(
More information about the Nut-upsdev
mailing list