Re: [Nut-upsuser] Setting MGE powershare attributes

2006-07-07 Thread Arnaud Quette
Hi,a second try since I've got new info on that point...as you are interested in, I've taken a bit of time to study back these points.2006/6/27, Carlos Rodrigues 
[EMAIL PROTECTED]:Hi!We have two MGE Evolution 1100 here, and I want to make use of the
powershare outlets to force a particular boot sequence on the machinespowered by them. However I'm not sure how to set those variables uponNUT starting, without having to change the init scripts to callupsrw.
Is there some place where I can set them, where they can be readautomatically on startup?One of the UPSes is connected to a SUSE box, and the other to a Debian box.there are two things:
* in the MGE HID data, we have two kind of delay things: - the *DelayBefore* which are timers and are to be considered as instant commands and not as settings as this is currently the case. - then, the interesting point for you, we have *Timer (ShutdownTimer and StartupTimer) which are only available for outlets, and which are settings. This means that your needs would be addressed using this (once cabled on 
outlet.X.delay.*).This way, if you set outlet.1.delay.start to 20 (sec) and  outlet.2.delay.start to 30, then when the power will come back, the UPS will restart, but outlet1 will be powered 20 sec after, and outlet2 30 sec after.
I've not yet changed the data in mge-hid, but if you're interested in, I can make a testing change in trunk so that you can test it...Arnaud-- Linux / Unix Expert - MGE UPS SYSTEMS - RD Dpt
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/Debian Developer - http://people.debian.org/~aquette/
OpenSource Developer - http://arnaud.quette.free.fr/
___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser


[Nut-upsuser] Network UPS Tools version 2.0.4-pre1 released

2006-07-07 Thread Arnaud Quette
Network UPS Tools version 2.0.4-pre1 has been released.

http://www.networkupstools.org/
___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser


Re: [Nut-upsuser] Setting MGE powershare attributes

2006-07-07 Thread Arnaud Quette
I've just commited something in the trunk.It works for newhidups, but I've not tested it much yet...For the recall, the need is to have a special powering order of the outlets at boot time.Use case:
- we have two outlets, identified in the nut tree as outlet.1 and outlet.2- we want to power up outlet.1 10 sec. after the UPS has restarted its _output_, and outlet.2 20 sec. after the UPS has restarted its _output_
How to set this up (while waiting for docs/powersave.txt completion):- configure the ups {on,off}delaydriver.parameter.offdelay: 90driver.parameter.ondelay: 120This means that, in the end of the shutdown process, we will send an order to poweroff the ups 90 sec later. 
When the power will be restored, the ups will wait for 30 more seconds (120 - 90), and will then power up output.- 10 seconds later, outlet.1 will be powered up- 10 more seconds later, outlet.2 will be powered up

enjoy, and remember that it's still to be completed.Feedback welcome.Arnaud-- Linux / Unix Expert - MGE UPS SYSTEMS - RD DptNetwork UPS Tools (NUT) Project Leader - 
http://www.networkupstools.org/Debian Developer - http://people.debian.org/~aquette/OpenSource Developer - http://arnaud.quette.free.fr/

___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser


[Nut-upsuser] protocol for Surge MAX

2006-07-07 Thread Brian Read
I am sorry if this is an FAQ, but there doesn't seem to be searchable 
archives, and the supported manufacturer's list doesn't include surge 
master.  Google was also not much help.


I have just put a Linux box and the customer has a surge max  UPS.  
Anyone any ideas what protocol it uses?  There is a Green serial cable.


The manufacturers web site is here:

http://www.surgemax.net/list_cat.php?category=2

But it isn't much use...

--
Cheers

Brian

Reliable, secure and affordable Office servers using Open Source software 
http://www.abandonmicrosoft.co.uk



___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser


Re: [Nut-upsuser] tracing a problem with newhidups

2006-07-07 Thread Arnaud Quette
Hi Rodrigo,2006/7/7, Rodrigo Ventura [EMAIL PROTECTED]:
On Thursday 06 July 2006 20:15, Arnaud Quette wrote: a good try, and amount of effort. Sadly, notifications are on the PIPE_INTERRUPTOk, let's do it again.HIDGetEvents() calls libusb_get_interrupt() with size=20 (hardcoded), which
calls usb_interrupt_read(), then usb_urb_transfer(), which setsurb.buffer_length=20, going down the ioctl (as uurb), where the kernel urbstruct gets urb.transfer_buffer_length=20. Then, uhci_submit_interrupt()
checks that field withif (urb-transfer_buffer_length  usb_maxpacket(urb-dev, urb-pipe,usb_pipeout(urb-pipe)))return -EINVAL;
What is the endpoint max packet size? According to /proc/bus/usb/devicesC:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=0mAI:If#= 0 Alt= 0 #EPs= 1 Cls=09(hub) Sub=00 Prot=00 Driver=hubE:Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms
T:Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=2 Spd=1.5 MxCh= 0D:Ver= 1.10 Cls=00(ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=1P:Vendor=0463 ProdID= Rev= 1.00S:Manufacturer=MGE UPS SYSTEMSS:Product=Evolution
S:SerialNumber=AF3G03062C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 40mAI:If#= 0 Alt= 0 #EPs= 1 Cls=03(HID) Sub=00 Prot=00 Driver=(none)E:Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=20msAssuming that MxPS means max packet size, it seems to be 8, which is
lower than 20, and therefore it looks like the EINVAL error comes fromthere. Am I going in the right direction this time?your guess seems right.The best to validate your guess is to modify the 20 to 8 in get_interrupt() and to recompile nut.
Let me know the result, and I'll fix that for 2.0.4-pre2 next week. If something is not working, you can try to reset the communication: power
 off the UPS, then unplug its power cable, wait (at least) 10 seconds and replug/restart all.Well, that's something I'd like to avoid, since all the institution serversare fed by the UPS.
I understandArnaud-- Linux / Unix Expert - MGE UPS SYSTEMS - RD DptNetwork UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://people.debian.org/~aquette/OpenSource Developer - http://arnaud.quette.free.fr/
___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser


Re: [Nut-upsuser] protocol for Surge MAX

2006-07-07 Thread Carlos Rodrigues

That page mentions safenet. You can try the safenet driver to see if it works.

On 7/7/06, Brian Read [EMAIL PROTECTED] wrote:

I am sorry if this is an FAQ, but there doesn't seem to be searchable
archives, and the supported manufacturer's list doesn't include surge
master.  Google was also not much help.

I have just put a Linux box and the customer has a surge max  UPS.
Anyone any ideas what protocol it uses?  There is a Green serial cable.

The manufacturers web site is here:

http://www.surgemax.net/list_cat.php?category=2

But it isn't much use...

--
Cheers

Brian

Reliable, secure and affordable Office servers using Open Source software
http://www.abandonmicrosoft.co.uk


___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser




--
Carlos Rodrigues

___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser


Re: [Nut-upsuser] protocol for Surge MAX

2006-07-07 Thread Arjen de Korte
Brian Read wrote:

 I am sorry if this is an FAQ, but there doesn't seem to be searchable
 archives, and the supported manufacturer's list doesn't include surge
 master.  Google was also not much help.
 
 I have just put a Linux box and the customer has a surge max  UPS. 
 Anyone any ideas what protocol it uses?  There is a Green serial cable.
 
 The manufacturers web site is here:
 
 http://www.surgemax.net/list_cat.php?category=2
 
 But it isn't much use...

The devices pictured on this page are identical to the Fenton PowerPal
P600 I have here and which is supported by the safenet driver. It also
mentions SafeNet Version 1 software, which is indicative that this is
the same unit.

Regards,
Arjen

___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser