INTRODUCTION Overview Download and Install Documentation Publications REPOSITORY Libraries DEVELOPER Dev Guide Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
gbxsmartbatteryacfr Namespace ReferenceSmartBattery library. More...
Detailed DescriptionSmartBattery library.This namespace is part of a SmartBattery library.
Enumeration Type DocumentationSmart battery data specification Specs can be found at http://sbs-forum.org/specs/
Function Documentation
Issues a short and verbose warning if the charge of one or more batteries is below the threshold or if the charge of any battery deviates by chargeDeviationThreshold percent from the average of all batteries Returns true if there was a warning otherwise false
Issues a short and verbose warning if any of the individual modules have "bad power" or are "charge-inhibited" Returns true if there was a warning otherwise false
Issues a short and verbose warning if the number of expected batteries are not installed Returns true if there was a warning otherwise false References gbxsmartbatteryacfr::OceanServerSystem::availableBatteries(). Referenced by conductAllHealthChecks().
Issues a short and verbose warning if the number of recharge cycles of one or more batteries are exceeded Optionally includes the raw battery record in warnVerbose Returns true if there was a warning otherwise false
Issues a short and verbose warning if the temperature threshholds are of one or more batteries are exceeded Optionally includes the raw battery record in warnVerbose Returns true if there was a warning otherwise false
Conducts all of the health checks above given a battery health configuration Adds up short and verbose warning messages Optionally includes the raw battery record at the end of warnVerbose if any check generated a warning Returns true if there were warnings otherwise false References gbxsmartbatteryacfr::BatteryHealthWarningConfig::chargeDeviationThreshold, gbxsmartbatteryacfr::BatteryHealthWarningConfig::chargeTempThreshhold, gbxsmartbatteryacfr::BatteryHealthWarningConfig::chargeWarnThreshhold, checkNumberOfBatteries(), gbxsmartbatteryacfr::BatteryHealthWarningConfig::dischargeTempThreshhold, gbxsmartbatteryacfr::BatteryHealthWarningConfig::expectedNumBatteries, gbxsmartbatteryacfr::BatteryHealthWarningConfig::numCyclesThreshhold, gbxsmartbatteryacfr::OceanServerSystem::rawRecord(), and toString().
Computes an XOR checksum from 'input' (skips the first character). Returns true if it matches with 'expected', otherwise false
Converts a key (string) to a SmartBatteryDataField. Throws a ParsingException if key is unknown.
Expects 4 hex characters, translates them into uint16_t May throw ParsingException
Expects 4 hex characters, returns capacity [%] May throw ParsingException
Expects 4 hex characters, returns a count May throw ParsingException
Expects 4 hex characters, returns current [A] May throw ParsingException
Expects 2 hex characters and translates them into a vector of boolean flags May throw ParsingException
Expects 4 hex characters, returns minutes May throw ParsingException
Expects 2 hex characters, returns number of batteries May throw ParsingException
Expects 4 hex characters, returns a number May throw ParsingException
Expects 2 hex characters, returns percentage [%] May throw ParsingException
Expects 4 hex characters, returns percentage [%] May throw ParsingException
Expects 4 hex characters, returns a rate May throw ParsingException
Expects 4 hex characters, returns temperature [degC] May throw ParsingException
Expects 4 hex characters, returns voltage [V] May throw ParsingException
Decomposes 'fields' (a flat list of keys and values) into 'pairs' (a map of keys and values). May throw ParsingException.
Updates all fields in 'to' with data from 'from'. Also reaps batteries in 'to' if they are not in 'from'. Has persistence capabilities: if fields in 'from' are not set and corresponding fields in 'to' are set, the ones in 'to' are kept. There's one exception: the rawRecord field is always updated Use case: a class stores 'to' as a member variable, receives the latest records into 'from', calls this function to update 'to'. The reaping capability makes sure that battery modules which are no longer connected don't persist. References gbxsmartbatteryacfr::SmartBattery::absoluteStateOfCharge(), gbxsmartbatteryacfr::SmartBattery::atRate(), gbxsmartbatteryacfr::SmartBattery::atRateOk(), gbxsmartbatteryacfr::SmartBattery::atRateTimeToEmpty(), gbxsmartbatteryacfr::SmartBattery::atRateTimeToFull(), gbxsmartbatteryacfr::OceanServerSystem::availableBatteries(), gbxsmartbatteryacfr::SmartBattery::averageCurrent(), gbxsmartbatteryacfr::SmartBattery::averageTimeToEmpty(), gbxsmartbatteryacfr::SmartBattery::averageTimeToFull(), gbxsmartbatteryacfr::OceanServerSystem::batteries(), gbxsmartbatteryacfr::OceanServerSystem::battery(), gbxsmartbatteryacfr::SmartBattery::batteryMode(), gbxsmartbatteryacfr::SmartBattery::batteryStatus(), gbxsmartbatteryacfr::OceanServerSystem::chargeInhibitedStates(), gbxsmartbatteryacfr::OceanServerSystem::chargePowerPresentStates(), gbxsmartbatteryacfr::SmartBattery::chargingCurrent(), gbxsmartbatteryacfr::OceanServerSystem::chargingStates(), gbxsmartbatteryacfr::SmartBattery::chargingVoltage(), gbxsmartbatteryacfr::SmartBattery::current(), gbxsmartbatteryacfr::SmartBattery::cycleCount(), gbxsmartbatteryacfr::SmartBattery::designCapacity(), gbxsmartbatteryacfr::SmartBattery::designVoltage(), gbxsmartbatteryacfr::SmartBattery::deviceChemistry(), gbxsmartbatteryacfr::SmartBattery::deviceName(), gbxsmartbatteryacfr::OceanServerSystem::eraseBattery(), gbxsmartbatteryacfr::SmartBattery::fullChargeCapacity(), gbxsmartbatteryacfr::SmartBattery::has(), gbxsmartbatteryacfr::SmartBattery::manufactureDate(), gbxsmartbatteryacfr::SmartBattery::manufacturerAccess(), gbxsmartbatteryacfr::SmartBattery::manufacturerData(), gbxsmartbatteryacfr::SmartBattery::manufacturerName(), gbxsmartbatteryacfr::SmartBattery::maxError(), gbxsmartbatteryacfr::OceanServerSystem::messageToSystem(), gbxsmartbatteryacfr::OceanServerSystem::minToEmpty(), gbxsmartbatteryacfr::OceanServerSystem::percentCharge(), gbxsmartbatteryacfr::OceanServerSystem::powerNoGoodStates(), gbxsmartbatteryacfr::OceanServerSystem::rawRecord(), gbxsmartbatteryacfr::SmartBattery::relativeStateOfCharge(), gbxsmartbatteryacfr::SmartBattery::remainingCapacity(), gbxsmartbatteryacfr::SmartBattery::remainingCapacityAlarm(), gbxsmartbatteryacfr::SmartBattery::remainingTimeAlarm(), gbxsmartbatteryacfr::SmartBattery::runTimeToEmpty(), gbxsmartbatteryacfr::SmartBattery::serialNumber(), gbxsmartbatteryacfr::SmartBattery::setAbsoluteStateOfCharge(), gbxsmartbatteryacfr::SmartBattery::setAtRate(), gbxsmartbatteryacfr::SmartBattery::setAtRateOk(), gbxsmartbatteryacfr::SmartBattery::setAtRateTimeToEmpty(), gbxsmartbatteryacfr::SmartBattery::setAtRateTimeToFull(), gbxsmartbatteryacfr::SmartBattery::setAverageCurrent(), gbxsmartbatteryacfr::SmartBattery::setAverageTimeToEmpty(), gbxsmartbatteryacfr::SmartBattery::setAverageTimeToFull(), gbxsmartbatteryacfr::SmartBattery::setBatteryMode(), gbxsmartbatteryacfr::SmartBattery::setBatteryStatus(), gbxsmartbatteryacfr::SmartBattery::setChargingCurrent(), gbxsmartbatteryacfr::SmartBattery::setChargingVoltage(), gbxsmartbatteryacfr::SmartBattery::setCurrent(), gbxsmartbatteryacfr::SmartBattery::setCycleCount(), gbxsmartbatteryacfr::SmartBattery::setDesignCapacity(), gbxsmartbatteryacfr::SmartBattery::setDesignVoltage(), gbxsmartbatteryacfr::SmartBattery::setDeviceChemistry(), gbxsmartbatteryacfr::SmartBattery::setDeviceName(), gbxsmartbatteryacfr::SmartBattery::setFullChargeCapacity(), gbxsmartbatteryacfr::SmartBattery::setManufactureDate(), gbxsmartbatteryacfr::SmartBattery::setManufacturerAccess(), gbxsmartbatteryacfr::SmartBattery::setManufacturerData(), gbxsmartbatteryacfr::SmartBattery::setManufacturerName(), gbxsmartbatteryacfr::SmartBattery::setMaxError(), gbxsmartbatteryacfr::OceanServerSystem::setMessageToSystem(), gbxsmartbatteryacfr::OceanServerSystem::setMinToEmpty(), gbxsmartbatteryacfr::OceanServerSystem::setPercentCharge(), gbxsmartbatteryacfr::SmartBattery::setRelativeStateOfCharge(), gbxsmartbatteryacfr::SmartBattery::setRemainingCapacity(), gbxsmartbatteryacfr::SmartBattery::setRemainingCapacityAlarm(), gbxsmartbatteryacfr::SmartBattery::setRemainingTimeAlarm(), gbxsmartbatteryacfr::SmartBattery::setRunTimeToEmpty(), gbxsmartbatteryacfr::SmartBattery::setSerialNumber(), gbxsmartbatteryacfr::SmartBattery::setSpecificationInfo(), gbxsmartbatteryacfr::SmartBattery::setTemperature(), gbxsmartbatteryacfr::SmartBattery::setVoltage(), gbxsmartbatteryacfr::SmartBattery::specificationInfo(), gbxsmartbatteryacfr::OceanServerSystem::supplyingPowerStates(), gbxsmartbatteryacfr::SmartBattery::temperature(), and gbxsmartbatteryacfr::SmartBattery::voltage(). Referenced by gbxsmartbatteryacfr::OceanServer::walk().
|