[Nut-upsuser] Incorrect battery status on MGE Pulsar M 3000

Oksenchuk Dmitry oksenchuk at swamp.ru
Tue Apr 1 15:18:43 UTC 2008


Hello!
We have two upses: MGE Pulsar M 3000 and MGE Pulsar EXtreme 3200C. They 
connect to server by USB. EXtreme works good with usbhid-ups (nut 2.2.1) and 
newhidups (nut 2.0.5). But Pulsar M doesn't want to work with usbhid-ups.

- my ups.conf:
[extreme]
        driver = usbhid-ups
        port = auto
        product = "EXtreme"
[pulsar]
        driver = usbhid-ups
        port = auto
        product = "PULSAR M"

- starting:
# /usr/local/nut-2.2.1/bin/upsdrvctl start
Network UPS Tools - UPS driver controller 2.2.1-
Network UPS Tools: 0.29 USB communication driver - core 0.32 (2.2.1-)

Using subdriver: MGE HID 1.01
Network UPS Tools: 0.29 USB communication driver - core 0.32 (2.2.1-)

Using subdriver: MGE HID 1.01
# /usr/local/nut-2.2.1/sbin/upsd
Network UPS Tools upsd 2.2.1-
listening on 0.0.0.0 port 3493
Connected to UPS [extreme]: usbhid-ups-extreme
Connected to UPS [pulsar]: usbhid-ups-pulsar

- logs:
Apr  1 18:38:30 spider usbhid-ups[13235]: Startup successful
Apr  1 18:38:35 spider usbhid-ups[13246]: Startup successful
Apr  1 18:38:43 spider upsd[13262]: listening on 0.0.0.0 port 3493
Apr  1 18:38:43 spider upsd[13262]: Connected to UPS [extreme]: 
usbhid-ups-extreme
Apr  1 18:38:43 spider upsd[13262]: Connected to UPS [pulsar]: 
usbhid-ups-pulsar
Apr  1 18:38:43 spider upsd[13263]: Startup successful

- ups variables:
# /usr/local/nut-2.2.1/bin/upsc pulsar at localhost
battery.capacity: 27.00
battery.protection: yes
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.product: PULSAR M
driver.version: 2.2.1-
driver.version.data: MGE HID 1.01
driver.version.internal: 0.32
input.frequency.nominal: 50
input.voltage.nominal: 230
outlet.0.desc: Main Outlet
outlet.1.desc: PowerShare Outlet 1
outlet.2.desc: PowerShare Outlet 2
output.frequency.nominal: 50
output.voltage.nominal: 230
ups.load.high: 100
ups.mfr: MGE UPS SYSTEMS
ups.model: Pulsar M 3000
ups.power.nominal: 3000
ups.productid: ffff
ups.realpower.nominal: 2700
ups.serial: AQ2G1901J
ups.status: OB
ups.test.interval: 604800
ups.test.result: Done and passed
ups.vendorid: 0463

- debug inforation:
# /usr/local/nut-2.2.1/bin/usbhid-ups -DD -a pulsar
Network UPS Tools: 0.29 USB communication driver - core 0.32 (2.2.1-)

debug level is '2'
upsdrv_initups...
Checking device (0000/0000) (002/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 002
Trying to match device
Device does not match - skipping
Checking device (0463/FFFF) (001/050)
- VendorID: 0463
- ProductID: ffff
- Manufacturer: MGE UPS SYSTEMS
- Product: PULSAR M
- Serial Number: AQ2G1901J
- Bus: 001
Trying to match device
Device matches
HID descriptor length 2025
Report Descriptor size = 2025
Using subdriver: MGE HID 1.01
Path: UPS.BatterySystem.Battery.AudibleAlarmControl, Type: Feature, ReportID: 
0x28, Offset: 0, Size: 8, Value: 2.000000
Path: UPS.BatterySystem.Battery.BatteryID, Type: Feature, ReportID: 0x20, 
Offset: 0, Size: 8, Value: 1.000000
Path: UPS.BatterySystem.Battery.Count, Type: Feature, ReportID: 0x21, Offset: 
0, Size: 8, Value: 1.000000
Path: UPS.BatterySystem.Battery.DeepDischargeProtection, Type: Feature, 
ReportID: 0x22, Offset: 0, Size: 8, Value: 1.000000
Path: UPS.BatterySystem.Battery.DesignCapacity, Type: Feature, ReportID: 0x23, 
Offset: 0, Size: 32, Value: 97200.000000
Path: UPS.BatterySystem.Battery.PresentStatus.Present, Type: Feature, 
ReportID: 0x27, Offset: 0, Size: 8, Value: 1.000000
Path: UPS.BatterySystem.Battery.PresentStatus.Present, Type: Input, ReportID: 
0x27, Offset: 0, Size: 8, Value: 1.000000
Path: UPS.BatterySystem.Battery.Test, Type: Feature, ReportID: 0x24, Offset: 
0, Size: 8, Value: 1.000000
Path: UPS.BatterySystem.Battery.TestPeriod, Type: Feature, ReportID: 0x25, 
Offset: 0, Size: 32, Value: 604800.000000
Path: UPS.BatterySystem.BatterySystemID, Type: Feature, ReportID: 0x20, 
Offset: 8, Size: 8, Value: 1.000000
Path: UPS.BatterySystem.Charger.ChargerID, Type: Feature, ReportID: 0x20, 
Offset: 16, Size: 8, Value: 1.000000
Path: UPS.BatterySystem.Charger.ChargerType, Type: Feature, ReportID: 0x26, 
Offset: 0, Size: 8, Value: 0.000000
Path: UPS.BatterySystem.Charger.PresentStatus.InternalFailure, Type: Feature, 
ReportID: 0x27, Offset: 8, Size: 8, Value: 0.000000
Path: UPS.BatterySystem.Charger.PresentStatus.InternalFailure, Type: Input, 
ReportID: 0x27, Offset: 8, Size: 8, Value: 0.000000
Path: UPS.BatterySystem.Charger.PresentStatus.VoltageTooHigh, Type: Feature, 
ReportID: 0x27, Offset: 16, Size: 8, Value: 0.000000
Path: UPS.BatterySystem.Charger.PresentStatus.VoltageTooHigh, Type: Input, 
ReportID: 0x27, Offset: 16, Size: 8, Value: 0.000000
Path: UPS.BatterySystem.Charger.PresentStatus.VoltageTooLow, Type: Feature, 
ReportID: 0x27, Offset: 24, Size: 8, Value: 0.000000
Path: UPS.BatterySystem.Charger.PresentStatus.VoltageTooLow, Type: Input, 
ReportID: 0x27, Offset: 24, Size: 8, Value: 0.000000
Can't retrieve Report 254: Connection timed out
Path: UPS.COPIBridge, Type: Feature, ReportID: 0xfe, Offset: 0, Size: 8
Path: UPS.COPIBridge, Type: Feature, ReportID: 0xff, Offset: 0, Size: 8, 
Value: 1.000000
Path: UPS.Flow.[1].ConfigFrequency, Type: Feature, ReportID: 0x14, Offset: 0, 
Size: 8, Value: 50.000000
Path: UPS.Flow.[1].ConfigVoltage, Type: Feature, ReportID: 0x15, Offset: 0, 
Size: 8, Value: 230.000000
Path: UPS.Flow.[1].FlowID, Type: Feature, ReportID: 0x0b, Offset: 0, Size: 8, 
Value: 1.000000
Path: UPS.Flow.[4].ConfigActivePower, Type: Feature, ReportID: 0x74, Offset: 
0, Size: 16, Value: 2700.000000
Path: UPS.Flow.[4].ConfigApparentPower, Type: Feature, ReportID: 0x75, Offset: 
0, Size: 16, Value: 3000.000000
Path: UPS.Flow.[4].ConfigFrequency, Type: Feature, ReportID: 0x36, Offset: 0, 
Size: 8, Value: 50.000000
Path: UPS.Flow.[4].ConfigPercentLoad, Type: Feature, ReportID: 0x16, Offset: 
0, Size: 8, Value: 100.000000
Path: UPS.Flow.[4].ConfigVoltage, Type: Feature, ReportID: 0x72, Offset: 0, 
Size: 8, Value: 230.000000
Path: UPS.Flow.[4].FlowID, Type: Feature, ReportID: 0x0b, Offset: 8, Size: 8, 
Value: 4.000000
Path: UPS.HistorySystem.Event.[1].Code, Type: Feature, ReportID: 0x71, Offset: 
0, Size: 16, Value: 0.000000
Path: UPS.HistorySystem.Event.[1].EventID, Type: Feature, ReportID: 0x70, 
Offset: 0, Size: 8, Value: 1.000000
Path: UPS.HistorySystem.Event.[2].Code, Type: Feature, ReportID: 0x71, Offset: 
16, Size: 16, Value: 0.000000
Path: UPS.HistorySystem.Event.[2].EventID, Type: Feature, ReportID: 0x70, 
Offset: 8, Size: 8, Value: 2.000000
Path: UPS.HistorySystem.Event.[3].Code, Type: Feature, ReportID: 0x71, Offset: 
32, Size: 16, Value: 0.000000
Path: UPS.HistorySystem.Event.[3].EventID, Type: Feature, ReportID: 0x70, 
Offset: 16, Size: 8, Value: 3.000000
Path: UPS.HistorySystem.Event.[4].Code, Type: Feature, ReportID: 0x71, Offset: 
48, Size: 16, Value: 0.000000
Path: UPS.HistorySystem.Event.[4].EventID, Type: Feature, ReportID: 0x70, 
Offset: 24, Size: 8, Value: 4.000000
get_model_name(PULSAR M, 3000)

comparing with: ellipse 300
comparing with: ellipse 500
comparing with: ellipse 650
comparing with: ellipse 800
comparing with: ellipse 1200
comparing with: ellipse premium 500
comparing with: ellipse premium 650
comparing with: ellipse premium 800
comparing with: ellipse premium 1200
comparing with: Ellipse 600
comparing with: Ellipse 750
comparing with: Ellipse 1000
comparing with: Ellipse 1500
comparing with: Ellipse MAX 600
comparing with: Ellipse MAX 850
comparing with: Ellipse MAX 1100
comparing with: Ellipse MAX 1500
comparing with: Protection Center 420
comparing with: Protection Center 500
comparing with: Protection Center 675
comparing with: Pulsar Evolution 500
comparing with: Pulsar Evolution 800
comparing with: Pulsar Evolution 1100
comparing with: Pulsar Evolution 1500
comparing with: Pulsar Evolution 2200
comparing with: Pulsar Evolution 3000
comparing with: Pulsar Evolution 3000 XL
comparing with: Evolution 650
comparing with: Evolution 850
comparing with: Evolution 1150
comparing with: Evolution S 1250
comparing with: Evolution 1550
comparing with: Evolution S 1750
comparing with: Evolution 2000
comparing with: Evolution S 2500
comparing with: Evolution S 3000
comparing with: Pulsar M 2200
comparing with: Pulsar M 3000
Found Pulsar M 3000

Report descriptor retrieved (Reportlen = 2025)
Found HID device
Detected a UPS: MGE UPS SYSTEMS/Pulsar M 3000
Path: UPS.BatterySystem.Battery.DesignCapacity, Type: Feature, ReportID: 0x23, 
Offset: 0, Size: 32, Value: 97200.000000
Path: UPS.BatterySystem.Battery.DeepDischargeProtection, Type: Feature, 
ReportID: 0x22, Offset: 0, Size: 8, Value: 1.000000
Path: UPS.Flow.[4].ConfigPercentLoad, Type: Feature, ReportID: 0x16, Offset: 
0, Size: 8, Value: 100.000000
Path: UPS.BatterySystem.Battery.Test, Type: Feature, ReportID: 0x24, Offset: 
0, Size: 8, Value: 1.000000
Path: UPS.BatterySystem.Battery.TestPeriod, Type: Feature, ReportID: 0x25, 
Offset: 0, Size: 32, Value: 604800.000000
Path: UPS.Flow.[4].ConfigApparentPower, Type: Feature, ReportID: 0x75, Offset: 
0, Size: 16, Value: 3000.000000
Path: UPS.Flow.[4].ConfigActivePower, Type: Feature, ReportID: 0x74, Offset: 
0, Size: 16, Value: 2700.000000
Path: UPS.BatterySystem.Battery.PresentStatus.Present, Type: Feature, 
ReportID: 0x27, Offset: 0, Size: 8, Value: 1.000000
Path: UPS.BatterySystem.Charger.PresentStatus.InternalFailure, Type: Feature, 
ReportID: 0x27, Offset: 8, Size: 8, Value: 0.000000
Path: UPS.BatterySystem.Charger.PresentStatus.VoltageTooHigh, Type: Feature, 
ReportID: 0x27, Offset: 16, Size: 8, Value: 0.000000
Path: UPS.BatterySystem.Charger.PresentStatus.VoltageTooLow, Type: Feature, 
ReportID: 0x27, Offset: 24, Size: 8, Value: 0.000000
Path: UPS.Flow.[1].ConfigVoltage, Type: Feature, ReportID: 0x15, Offset: 0, 
Size: 8, Value: 230.000000
Path: UPS.Flow.[1].ConfigFrequency, Type: Feature, ReportID: 0x14, Offset: 0, 
Size: 8, Value: 50.000000
Path: UPS.Flow.[4].ConfigVoltage, Type: Feature, ReportID: 0x72, Offset: 0, 
Size: 8, Value: 230.000000
Path: UPS.Flow.[4].ConfigFrequency, Type: Feature, ReportID: 0x36, Offset: 0, 
Size: 8, Value: 50.000000
Path: UPS.BatterySystem.Battery.Test, Type: Feature, ReportID: 0x24, Offset: 
0, Size: 8, Value: 1.000000
Path: UPS.BatterySystem.Battery.Test, Type: Feature, ReportID: 0x24, Offset: 
0, Size: 8, Value: 1.000000
Path: UPS.BatterySystem.Battery.Test, Type: Feature, ReportID: 0x24, Offset: 
0, Size: 8, Value: 1.000000
upsdrv_initinfo...
upsdrv_updateinfo...
Quick update...
dstate_init: sock /var/state/ups/usbhid-ups-pulsar open on fd 5
upsdrv_updateinfo...
Quick update...
upsdrv_updateinfo...
Quick update...
upsdrv_updateinfo...
Quick update...
upsdrv_updateinfo...
Quick update...
upsdrv_updateinfo...
Quick update...
upsdrv_updateinfo...
Quick update...
upsdrv_updateinfo...
Quick update...
upsdrv_updateinfo...
Quick update...
upsdrv_updateinfo...
Quick update...
upsdrv_updateinfo...
Quick update...
upsdrv_updateinfo...
Quick update...
upsdrv_updateinfo...
Quick update...
Signal 2: exiting
upsdrv_cleanup...

- ups variables from newhidups:
# /usr/local/nut-2.0.5/bin/upsc pulsar at localhost
battery.charge: 100
battery.charge.low: 20
battery.charge.restart: 0
battery.runtime: 1764
battery.type: PbAc
battery.voltage: 82.0
driver.name: newhidups
driver.parameter.port: auto
driver.parameter.product: PULSAR M
driver.version: 2.0.5
driver.version.data: MGE HID 1.0
driver.version.internal: 0.30
input.frequency: 50.0
input.voltage: 208.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: 7.40
output.frequency: 50.0
output.voltage: 231.0
output.voltage.nominal: 72.0
ups.beeper.status: enabled
ups.delay.shutdown: -1
ups.delay.start: -1
ups.load: 67
ups.mfr: MGE UPS SYSTEMS
ups.model: Pulsar M 3000
ups.power.nominal: 3000
ups.serial: AQ2G1901J
ups.status: OL CHRG OFF
ups.test.interval: 604800
ups.test.result: Done and passed





More information about the Nut-upsuser mailing list