marc2@rechte.fr
2007-Mar-12  15:35 UTC
[Nut-upsuser] upsmon keeps broadcasting on battery / on power (driver is newhidups)
Hi,
I try to install the newhidups driver for a MGE Pulsar M2200 connected to a USB
port under Linux Red Hat 4 Upd 4.
I have compiled and installed the usb driver (make usb && make
install-usb). I
followed the instructions in /nut-2.0.5/scripts/hotplug-ng/README abour the
/etc/udev/rules.d/025_nut-usbups.rules.
The ups is recognized by the kernel:
Mar 12 14:52:03 serveur1 kernel: usb 4-1: new low speed USB device using address
8
Mar 12 14:52:03 serveur1 kernel: usbhid: probe of 4-1:1.0 failed with error -5
Network UPS Tools - UPS driver controller 2.0.5
Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30 (2.0.5)
Detected a UPS: MGE UPS SYSTEMS/PULSAR M
Using subdriver: MGE HID 1.0
upsc pulsar@localhost reports:
[root@serveur1.sassine.eu rules.d]# upsc pulsar@localhost
battery.charge: 100
battery.charge.low: 20
battery.charge.restart: 0
battery.runtime: 1923
battery.type: PbAc
battery.voltage: 81.0
driver.name: newhidups
driver.parameter.offdelay: 180
driver.parameter.ondelay: 30
driver.parameter.port: auto
driver.version: 2.0.5
driver.version.data: MGE HID 1.0
driver.version.internal: 0.30
input.frequency: 50.0
input.voltage: 232.0
outlet.0.desc: Main Outlet
outlet.0.id: 0
outlet.0.switchable: yes
outlet.1.autoswitch.charge.low: 0
outlet.1.delay.shutdown: 2147483648
outlet.1.delay.start: 3
outlet.1.desc: PowerShare Outlet 1
outlet.1.id: 1
outlet.1.status: on
outlet.1.switchable: yes
outlet.2.autoswitch.charge.low: 0
outlet.2.delay.shutdown: 2147483648
outlet.2.delay.start: 6
outlet.2.desc: PowerShare Outlet 2
outlet.2.id: 2
outlet.2.status: on
outlet.2.switchable: yes
output.current: 1.90
output.frequency: 50.0
output.voltage: 231.0
output.voltage.nominal: 72.0
ups.beeper.status: enabled
ups.delay.shutdown: 0
ups.delay.start: 0
ups.load: 16
ups.mfr: MGE UPS SYSTEMS
ups.model: Pulsar M 2200
ups.power.nominal: 2200
ups.serial: AQ1G4103Y
ups.status: OL CHRG
ups.test.interval: 604800
ups.test.result: Done and passed
ups.conf is:
[root@serveur1.sassine.eu rules.d]# cat /etc/ups/ups.conf
# UPS Conf for NUT
[pulsar]
        driver=newhidups
        port=auto
        desc="Pulsar M2200 RT3U"
        # vendorid=0463
        # offdelay = 180 s
        offdelay=180
        # ondelay = 30 x 10 = 300 s
        ondelay=30
Howerver starting upsmon keeps reporting:
Mar 12 16:19:46 serveur1 upsmon[20453]: UPS pulsar@localhost on line power
Mar 12 16:19:46 serveur1 wall[20501]: wall: user ups broadcasted 1 lines (36
chars)
Mar 12 16:19:51 serveur1 upsmon[20453]: UPS pulsar@localhost on battery
Mar 12 16:19:51 serveur1 wall[20506]: wall: user ups broadcasted 1 lines (33
chars)
Mar 12 16:20:01 serveur1 upsmon[20453]: UPS pulsar@localhost on line power
Mar 12 16:20:01 serveur1 wall[20509]: wall: user ups broadcasted 1 lines (36
chars)
Thanks for your help
Marc Rechte
Arjen de Korte
2007-Mar-12  15:40 UTC
[Nut-upsuser] upsmon keeps broadcasting on battery / on power (driver is newhidups)
> ups.conf is: > [root@serveur1.sassine.eu rules.d]# cat /etc/ups/ups.conf > # UPS Conf for NUT > [pulsar] > driver=newhidups > port=auto > desc="Pulsar M2200 RT3U" > # vendorid=0463 > # offdelay = 180 s > offdelay=180 > # ondelay = 30 x 10 = 300 s > ondelay=30Try if adding 'pollfreq = 5' to the helps. Best regards, Arjen -- Eindhoven - The Netherlands Key fingerprint - 66 4E 03 2C 9D B5 CB 9B 7A FE 7E C1 EE 88 BC 57
Arnaud Quette
2007-Mar-12  16:51 UTC
[Nut-upsuser] upsmon keeps broadcasting on battery / on power (driver is newhidups)
salut Marc, 2007/3/12, marc2@rechte.fr <marc2@rechte.fr>:> ... > Howerver starting upsmon keeps reporting: > > Mar 12 16:19:46 serveur1 upsmon[20453]: UPS pulsar@localhost on line power > Mar 12 16:19:46 serveur1 wall[20501]: wall: user ups broadcasted 1 lines (36 > chars) > Mar 12 16:19:51 serveur1 upsmon[20453]: UPS pulsar@localhost on battery > Mar 12 16:19:51 serveur1 wall[20506]: wall: user ups broadcasted 1 lines (33 > chars) > Mar 12 16:20:01 serveur1 upsmon[20453]: UPS pulsar@localhost on line power > Mar 12 16:20:01 serveur1 wall[20509]: wall: user ups broadcasted 1 lines (36 > chars)can you also try the following, after having fully stopped nut components: start newhidups in debug mode: $ newhidups -DDD -a pulsar and send me back the output. Arnaud -- Linux / Unix Expert - MGE UPS SYSTEMS - R&D 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/
marc2@rechte.fr
2007-Mar-14  11:25 UTC
[Nut-upsuser] upsmon keeps broadcasting on battery / on power (driver is newhidups)
Hello Arjen, Thanks for your suggestions. I set the pollfreq = 5 and pollinterval = 20 in ups.conf. It has helped to reduce the frequency of broadcast messages but not fully. I have attached a log that you can see the frequency. Many thanks. Marc -------------- next part -------------- A non-text attachment was scrubbed... Name: messages Type: application/octet-stream Size: 2205 bytes Desc: not available Url : http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20070314/ba495a01/messages.obj
Reasonably Related Threads
- upsmon keeps broadcasting on battery / on power (driver is newhidups)
- Cannot move /bin/upsdrvctl to /sbin
- Incorrect battery status on MGE Pulsar M 3000
- Is newhidups driver still in memory just before o/s halt ?
- Differences between USB and serial on an MGE Pulsar Evolution 3000