[Nut-upsuser] MGE Pulsar Extreme communication problems

Daniel O'Connor doconnor at gsoft.com.au
Mon May 22 07:34:37 UTC 2006


On Monday 22 May 2006 16:40, Arnaud Quette wrote:
> sorry for the long delay to answer...

No problem :)

> > Well I figured out my shutdown delay problem - setting it starts the
> > shutdown process (this is different to the APC model which is what I have
> > used in the past)
>
> right. And note that this is true for any newhidups supported device,
> not only MGE. If you want to change these delays, have a look at the
> manpage for ondelay and offdelay.

Yes, I found them after a more in depth look.. I need to remove my APC 
coloured glasses :)

> > I still can't turn the outlets on and off though, the value doesn't
> > change from 0 :( I have tried a few random numbers but no luck. Has
> > anyone had this work? I've tested it using the Win32 software and it does
> > switch so I at least know the hardware isn't broken :)
>
> I haven't yet had time to look at this, but there might be a
> regression as it was working before!

OK, well I can test patches, try and debug etc..

It seems the command is being sent, eg..
1436                                    shut_set_report(hData.ReportID, 
raw_buf, replen);
(gdb)
entering shut_set_report(id: 13, len: 02)
entering shut_packet_send (8)
sent: (11 bytes) => 01 88 21 09 13 03 00 00 02 00 3A
shut_wait_ack(): ACK received
Set2: (2 bytes) => 13 01
entering shut_packet_send (2)
sent: (5 bytes) => 81 22 13 01 12
shut_wait_ack(): ACK received
1450                                    return STAT_SET_HANDLED;
(gdb) print hData.Value
$7 = 1
(gdb) print hData.ReportID
$8 = 19 '\023'
(gdb) print raw_buf
$9 
= "\023\001á\0002á\0002¡\000\205\001\t%\t\037u\b\225\002\025\000&ÿ\000e\000U\000±\003\006ÿÿ\tM\2054%d\225\001±\202\005\205\205\005\t\213\t,
\225\002&ÿ\000±\003\t\203\225\001%d±\003\205\025\t)±\203\205\005\t\215±\003\005\204\tþ&ÿ\000±\003\005\205\t\211\t\217\225\002±\003\006ÿÿ\205\006\tð\225\001±\003\005\204\205\t\tÿ±\003\tý±\003\005\205\205\f\tf%d\201\203\tf±\203\thu\030f\001\020'ÿÿÿ\000\201\203\th±\203\005\204\205\r\t5u\b&ÿ\000e\000±\203\006ÿÿ\205\016\t_%de\000±\202\205#\tH%\001±\202\005\204\205\n\t0&ÿ\000g!"...
(gdb) print replen
$10 = 2

However I haven't worked out how to decode that yet :)

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20060522/2f63541c/attachment.pgp


More information about the Nut-upsuser mailing list