battery-powered device programming