[Nut-upsdev] Re: Belkin and newhidups (was: Belkin F6C550-AVR UPS)

zaid_aj at telus.net zaid_aj at telus.net
Wed Aug 10 20:01:03 UTC 2005


Hi,
Is it normal for all the UPS variables to be have 00860035 concatenated 
to them? a quick example of this follows :

entering identify_ups(0x050d, 0x0012)

Found a Belkin UPS!
upsdrv_updateinfo...
dstate_init: sock /home/ghost/development/newhidups-auto open on fd 5
upsdrv_updateinfo...
Waiting for notifications...
 ok

Notification: (2 bytes) => 3C 01                                           
entering lookup_path()
Looking up 00840024
Looking up 008500d0
Looking up 00860035
Object: UPS.PowerSummary.ACPresent00860035 = 1
upsdrv_updateinfo...
Waiting for notifications...
 ok

Notification: (2 bytes) => 34 64                   
entering lookup_path()
Looking up 00840024
Looking up 00850066
Looking up 00860035
Object: UPS.PowerSummary.RemainingCapacity00860035 = 100

=>Got 1 HID Objects...
Object: UPS.PowerSummary.RemainingCapacity00860035 = 100
find_hid_info: unknown variable: 
UPS.PowerSummary.RemainingCapacity00860035

upsdrv_updateinfo...
Waiting for notifications...
 ok

Notification: (2 bytes) => 3D 00                                           
entering lookup_path()
Looking up 00840024
Looking up 00850042
Looking up 00860035
Object: UPS.PowerSummary.BelowRemainingCapacityLimit00860035 = 0

upsdrv_updateinfo...
Waiting for notifications...
 ok

Notification: (2 bytes) => 34 64                                           
entering lookup_path()
Looking up 00840024
Looking up 00850066
Looking up 00860035
Object: UPS.PowerSummary.RemainingCapacity00860035 = 100

=>Got 1 HID Objects...
Object: UPS.PowerSummary.RemainingCapacity00860035 = 100
find_hid_info: unknown variable: 
UPS.PowerSummary.RemainingCapacity00860035

upsdrv_updateinfo...
Waiting for notifications...
 ok

Notification: (2 bytes) => 2E 00                                           
entering lookup_path()
Looking up 00840024
Looking up 00850045
Looking up 00860035
Object: UPS.PowerSummary.Discharging00860035 = 0
upsdrv_updateinfo...
Waiting for notifications...
 ok

....

and this keeps repeating with the remaining variables...

I am guessing that the RemainingCapacity value is correct since I 
connected this UPS to a different box running Win2k and using Belkin's own 
software, it gave me that reading as well(if I remember correctly).

I thought of mapping those variables to the ones in NUT so I 
tried adding them to the HID<->NUT mappings in belkin-hid.h  but it 
didn't work:

{"battery.charge", 0, 1,"UPS.PowerSummary.RemainingCapacity0x00860035", 
	NULL, "%.0f", HU_FLAG_OK, NULL },

Anyone knows of the correct way to do this?

Thanks,

Zaid



More information about the Nut-upsdev mailing list