background image

APPENDIX A - Advanced Information

I2C Registers: 

The SmartUPS appears as a set of registers as follows:

Register

Read

Write

0x00-
0x07

Firmware version – 

Vxxxx

-

0x08-
0x0f

Vendor Id – 

Openelec

 -

0x10-
0x17

Device ID – SmartUPS

-

0x41

Command

0x42

Restart option

0x43

Button click status

0x44

Restart time

0x46

Battery state (See battery 
states for more info.)

0x48

Battery current

0x4A

Battery voltage

0x4C

Battery capacity

0x4E

Estimated battery time

0x50

Battery temperature

0x51

Battery health

0x52

Output voltage

-

0x54

Output current

-

0x56

Battery maximum capacity

0x58

Seconds

Supported I2C Commands:

CMD

Hex

Description

  S

0x53 Shutdown the SmartUPS in 10 seconds.

These commands are issued on command register (0x41).

UPSPanel Headings: 

The upspanel gives multiple outputs:

Heading

Description

Heartbeat

Tick count lets user know the I2C connection is 
continuously reading.

Copyright © 2014  OpenElectrons.com

 6/7

Summary of Contents for SmartUPS

Page 1: ...labeled 2 in picture above 3 Data connection Connect I2C Access Point Board on GPIO pins of your Pi as shown in adjacent picture and connect the 4 pin colored wire from the i2c connector of that boar...

Page 2: ...indications Flashing Meaning Red Green and Blue SmartUPS is starting up and button must be pressed once to initialize I2C communication and send output power White occasional blink Normal operation b...

Page 3: ...m upspanel Hold for about 2 seconds LED starts blinking fast Green indicating shutdown approaching in 50 seconds at this point SmartUPS issues a shutdown command to Pi Hold longer about 6 seconds LED...

Page 4: ...e Raspberry Pi until the battery status reaches Critical Verbose The SmartUPS will display a message through command prompt every minute of the shutdown process Quiet The SmartUPS will not display mes...

Page 5: ...I2C Pin Layout The pins on the boards are as follows Pin with white square paint mark I2CAPB Ground 5V SCL SDA SmartU PS Ground SCL SDA I2C Bus address Factory Default Address 0x24 Changing the I2C B...

Page 6: ...Battery current 0x4A Battery voltage 0x4C Battery capacity 0x4E Estimated battery time 0x50 Battery temperature 0x51 Battery health 0x52 Output voltage 0x54 Output current 0x56 Battery maximum capaci...

Page 7: ...See Battery States section below for more information Battery Temperature Battery temperature in celcius Battery States Idle SmartUPS is figuring out the battery status Precharg SmartUPS is condition...

Reviews: