[Nut-upsdev] Megatec_usb driver

Dmitry Bely dmitry.bely at gmail.com
Thu May 24 17:17:40 UTC 2007


On 5/24/07, Alexander I. Gordeev <lasaine at lvk.cs.msu.su> wrote:

> > Trying to use it with Sven Smart RM2000 (seems to be an OEM clone of
> > Sysgration Smart RM UPS: http://www.sysgration.com/product.asp?KID=7).
> >
> > I have just compiled the latest svn trunk. Unfortunately it does not
> > work with that UPS:
> >
> > dbely at vserver1:~/nut-svn$ sudo /usr/local/ups/bin/megatec_usb -u root -a myups
> > Network UPS Tools 2.1.0 - Megatec protocol driver 1.5.3 [megatec_usb]
> > Carlos Rodrigues (c) 2003-2007
> >
> > Serial-over-USB transport layer for Megatec protocol driver [megatec_usb]
> >
> > Megatec protocol UPS detected [SVEN POWER Smart2U 2K Ver 1.1].
> > This UPS has an unsupported combination of battery voltage/number of batteries.
> > Cannot calculate charge percentage for this UPS.
> >
>
> No, this is not an error! It's ok, you just need to gather some
> information about your UPS. I think, it was discussed several times on
> the dev list. Look for example this thread:
> http://lists.alioth.debian.org/pipermail/nut-upsdev/2007-May/001993.html

Indeed. Sorry for the noise - I have just discovered NUT yesterday :)
So the following table should be fixed, right?

/* Known battery types must be in ascending order by "nominal" first,
and then by "max". */
static BatteryVolts_t batteries[] = {{ 12,  9.0, 16.0,  9.7, 13.7,
0.0 },   /* Mustek PowerMust 600VA Plus (LB unknown) */
                                     { 12, 18.0, 30.0, 18.8, 26.8,
22.3 },   /* PowerWalker Line-Interactive VI 1000 */
                                     { 24, 18.0, 30.0, 19.4, 27.4,
22.2 },   /* Mustek PowerMust 1000VA Plus */
                                     { 36,  1.5,  3.0, 1.64, 2.31,
1.88 },   /* Mustek PowerMust 1000VA On-Line */
                                     { 36, 30.0, 42.0, 32.5, 41.0,
0.0 },   /* Mecer ME-2000 (LB unknown) */
                                     { 96,  1.5,  3.0, 1.63, 2.29,
1.8 },   /* Ablerex MS3000RT (LB at 25% charge) */
                                     {  0,  0.0,  0.0,  0.0,  0.0,
0.0 }};  /* END OF DATA */

OK, I will send my data directly to Carlos Rodrigues.

> > If I enable debugging it loops forever:
> >
> [snip]
> >
>
> It just polls the device periodically to get the current UPS status.
>
> > Any idea how to fix this?
>
> There is nothing to fix.

I meant how to make NUT working with my UPS. It really seems that your
driver have nothing to do with it (works OK).

- Dmitry Bely



More information about the Nut-upsdev mailing list