Alex and the list, Alexey Morozov (Powercom sales manager for Russia) has contacted me to propose demo units and information on the new Powercom protocol. This is preferably for a Russian team member... Anyone up? cheers, Arnaud -- Linux / Unix Expert R&D - Eaton - http://www.eaton.com/mgeops Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/ Debian Developer - http://www.debian.org Free Software Developer - http://arnaud.quette.free.fr/
Hi Arnaud, ? Fri, 30 Oct 2009 17:43:26 +0100 Arnaud Quette <arnaud.quette at free.fr> ?????:> Alex and the list, > > Alexey Morozov (Powercom sales manager for Russia) has contacted me to > propose demo units and information on the new Powercom protocol. > > This is preferably for a Russian team member... > Anyone up?Well, I'm here and ready to talk :) -- Alexander -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 490 bytes Desc: not available URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20091031/9644130b/attachment.pgp>
Hi Alexey, 2009/11/3 Morozov Alexey <morozov at pcm.ru>:> Dear All, > Please find attached updated communication protocols for Powercom UPS. > > If you have any questions don't hesitate to contact me. > Sincerely yours > -- > Alexey Morozov > distribution manageryour mail has not reached the list since you're not a member. I've not forwarded these too, since some people might find the package too big. Instead of this, I've created a Powercom section in the Protocols Library, and added your files: http://new.networkupstools.org/ups-protocols.html Thanks a lot for these information. At first glance, adding support for your unit should be quite straightforward... Note that I will also add an Acknowledgement entry, as told previously. @Alex: let us know when you receive a unit so that we can start the work. I (or Arjen or someone else) can bootstrap the work by created a subdriver to complete. cheers, Arnaud -- Linux / Unix Expert R&D - Eaton - http://www.eaton.com/mgeops Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/ Debian Developer - http://www.debian.org Free Software Developer - http://arnaud.quette.free.fr/> -----Original Message----- > From: Alexander Gordeev [mailto:lasaine at lvk.cs.msu.su] > Sent: Tuesday, November 03, 2009 1:03 AM > To: Morozov Alexey > Cc: NUT Users; Arnaud Quette; nut-upsdev at lists.alioth.debian.org > Subject: Re: Powercom support and sponsorship > > Hi Alexey, > > Sorry for the delay, I'm very happy to hear this. > > ? Sat, 31 Oct 2009 17:14:44 +0300 > "Morozov Alexey" <morozov at pcm.ru> ?????: > >> >> Dear Alexander, >> Thank you for your quick reply. We've updated communication protocol >> for Powercom UPS to be compatible with HID for power device and would >> like to add it in NUT. Russian Powercom team can provide communication >> protocol and demo units for testing. Can i send communication >> protocols to your email? > > Sure, you are welcome :) > However, as Arnaud already wrote, it'll be much more effective to send the docs to the dev list so that all team members can participate in the development. > >> I look forward to hearing from you. >> Sincerely yours >> -- >> Alexey M. Morozov >> distribution manager >> POWERCOM CO., Ltd. >> 111024 Moscow, 1st Kabelniy proezd, 2 >> Tel. +7 (495) 651-62-81, +7(495) 651-62-82 Cell phone +7(926)206-8164 > > -- > ?Alexander >
Citeren Arnaud Quette <arnaud.quette op free.fr>:> @Alex: let us know when you receive a unit so that we can start the > work. I (or Arjen or someone else) can bootstrap the work by created a > subdriver to complete.It would help if we would have the following information up front: 1) VendorID:ProductID combination that will be used (all permutations, if VendorID is also used for non USB HID Power Device Class devices) 2) output of usbhid-ups driver when running in explore mode (see 'man 8 usbhid-ups' how to set this up) If I have the above two, I can create a preliminary subdriver within a couple of hours. Best regards, Arjen -- Please keep list traffic on the list
Citeren Arnaud Quette <arnaud.quette op free.fr>:> @Alex: let us know when you receive a unit so that we can start the > work. I (or Arjen or someone else) can bootstrap the work by created a > subdriver to complete.I committed the powercom-hid.[ch] subdriver to the trunk yesterday. I already added the known VID:PID combinations, so it should be able to automatically connect if a supported PowerCOM device is found. What remains to be done, is the mapping of the HID paths to the corresponding NUT variables. You can probably re-use quite a bit of mappings from the existing *-hid subdrivers by matching the HID paths. For instance, the line { "unmapped.ups.powersummary.idevicechemistry", 0, 0, "UPS.PowerSummary.iDeviceChemistry", NULL, "%.0f", 0, NULL }, should be replaced by { "battery.type", 0, 0, "UPS.PowerSummary.iDeviceChemistry", NULL, "%s", 0, stringid_conversion }, In general, it's probably easiest to just use egrep "UPS.PowerSummary.PresentStatus.ACPresent" *-hid.c to find examples of other HID subdrivers with the same paths, than to try to figure out the mapping for yourself. The vast majority of mappings are already available in others already. After filling in these, working out the remainders is probably not such a big deal anymore. Best regards, Arjen -- Please keep list traffic on the list
Citeren Morozov Alexey <morozov op pcm.ru>:> Our engineers fixed problem and prepare updated firmware. I could > provide new demo sample to Alexander this weekend. This firmware get > correct status and data from UPS but not shutdown system.It would be helpful if NUT would be able to shutdown the UPS too. This is essential in case of unattended shutdowns. Are you telling that there is no way to make the UPS power off the outlets and wait for the mains power to return?> Communication via USB in previous version firmware based on get report > (by default) but it changed to interapt report. If it possible please > use both report type (get and interapt reports) in OS.I'm not quite sure I understand what you're saying here. Do you mean the UPS no longer uses feature reports, but instead only pushes data through the interrupt pipeline? We currently do use both feature- and input reports. Currently, when we get an input report (through the interrupt pipeline) we read the corresponding feature report (mostly for working around broken input reports on some Belkin models). We could make this optional however. @Alexander: If you receive the newer unit, could you please run the usbhid-ups driver with -DDD enabled? I would love to see the new (?) report descriptor of this device. The version from the trunk should be able to recognize the VID:PID of the UPS, so there is no more need to use the explore option anymore. Best regards, Arjen -- Please keep list traffic on the list
Citeren Morozov Alexey <morozov op pcm.ru>:> For comparison i tested APC BE-700RS with Debian (release5, core > Linux 2.6.26-1-686, Gnome 2.22.3). There is the same problem which i > found with Powercom updated firmware - system shows correct status > of UPS and battery level but not shutdown automatically as Windows > done.Which driver did you use? The usbhid-ups driver, or the HAL enabled one? The Gnome power manager will only use the HAL enabled one as far as I know.> Is it possible to modify power management functional to set battery > level for shutdown or hibernate? Windows XP/Vista/7 has such > functional, it > very useful for user.We also support this, but only if the UPS allows for setting battery.charge.low and/or battery.runtime.low. If it doesn't, it can be added through the help of the clone driver. In a networked environment you need to make sure that there is one decision moment that determines when the systems need to be shutdown. Otherwise you're vulnerable to power races. This isn't an issue for desktop systems that where there is a one-to-one relationship between UPS and system, but it is when there is a one-to-many relationship.> If you have any questions don't hesitate to contact me.I do. In order to speed up the development of the powercom-hid support, I would like to receive a Powercom UPS (any size). It would also enable me to better judge what needs to be done and find out if we not already support what you're asking for. Best regards, Arjen -- Please keep list traffic on the list