upm
1.7.1
Sensor/Actuator repository for libmraa (v2.0.0)
|
Honeywell TB7300 Communicating Fan Coil Thermostat. More...
This module implements support for the Honeywell TB7300 Communicating Fan Coil Thermostat. It may also support the TB7200, though only the TB7300 was available for development of this driver.
The TB7200 Series PI thermostats are designed for zoning applications, and the TB7300 Series PI thermostats are designed for fan coil control. Both Series are communicating thermostats with models available in BACnet(r) MS/TP protocol and can be easily integrated into a WEBs-AX building automation system based on the NiagaraAX(r) platform.
TB7200 and TB7300 Series thermostats are compatible with the Honeywell Occupancy Sensor Cover. Thermostats equipped with an occupancy sensor cover provide advanced active occupancy logic, which will automatically switch occupancy levels from Occupied to Stand-By and Unoccupied as required by local activity being present or not. This advanced occupancy functionality provides advantageous energy savings during occupied hours without sacrificing occupant comfort. All thermostats can be ordered with or without a factory installed PIR cover.
If you intend to work with this device and driver, it is strongly suggested you get the BACnet Intergration Guide document for this device: 63-4524.pdf as recommended in the device documentation.
This module was developed using the upm::BACNETMSTP library, based on libbacnet-stack 0.8.3. Both libbacnet 0.8.3 and the upm::BACNETMSTP libraries must be present in order to build this module.
It was connected using an RS232->RS485 interface. You cannot use the built in MCU TTL UART pins for accessing this device – you must use a full Serial RS232->RS485 or USB-RS485 interface connected via USB.
Public Member Functions | |
TB7300 (uint32_t targetDeviceObjectID) | |
~TB7300 () | |
void | update () |
float | getTemperature (bool fahrenheit=false) |
void | setTemperatureScale (bool fahrenheit) |
bool | getTemperatureScale () |
Public Member Functions inherited from BACNETUTIL | |
BACNETUTIL (uint32_t targetDeviceObjectID) | |
virtual | ~BACNETUTIL () |
virtual void | initMaster (std::string port, int baudRate, int deviceInstanceNumber, int macAddr, int maxMaster=DEFAULT_MAX_MASTER, int maxInfoFrames=1) |
virtual void | setDebug (bool enable) |
virtual float | getAnalogValue (uint32_t objInstance) |
virtual void | setAnalogValue (uint32_t objInstance, float value) |
virtual float | getAnalogInput (uint32_t objInstance) |
virtual std::string | getAnalogValueUnits (uint32_t objInstance) |
virtual std::string | getAnalogInputUnits (uint32_t objInstance) |
virtual bool | getBinaryInput (uint32_t objInstance) |
virtual std::string | lookupBinaryInputText (uint32_t objInstance, bool value) |
virtual std::string | getBinaryInputText (uint32_t objInstance) |
virtual bool | getBinaryValue (uint32_t objInstance) |
virtual void | setBinaryValue (uint32_t objInstance, bool value) |
virtual std::string | lookupBinaryValueText (uint32_t objInstance, bool value) |
virtual std::string | getBinaryValueText (uint32_t objInstance) |
virtual unsigned int | getMultiStateValue (uint32_t objInstance) |
virtual std::string | lookupMultiStateValueText (uint32_t objInstance, unsigned int value) |
virtual std::string | getMultiStateValueText (uint32_t objInstance) |
virtual unsigned int | getMultiStateValueMaxStates (uint32_t objInstance) |
virtual void | setMultiStateValue (uint32_t objInstance, unsigned int value) |
virtual void | checkReliability (bool enable) |
virtual std::string | getDeviceDescription () |
virtual std::string | getDeviceLocation () |
virtual bool | setDeviceLocation (std::string location) |
virtual std::string | getDeviceName () |
virtual bool | setDeviceName (std::string name) |
virtual std::string | getAllErrorString () |
virtual BACNETMSTP::BACERR_TYPE_T | getErrorType () |
virtual uint8_t | getRejectReason () |
virtual std::string | getRejectString () |
virtual uint8_t | getAbortReason () |
virtual std::string | getAbortString () |
virtual BACNET_ERROR_CLASS | getErrorClass () |
virtual BACNET_ERROR_CODE | getErrorCode () |
virtual std::string | getErrorString () |
virtual std::string | getUPMErrorString () |
Protected Attributes | |
float | m_temperature |
bool | m_isTempInitialized |
bool | m_isCelsius |
Protected Attributes inherited from BACNETUTIL | |
bool | m_debugging |
bool | m_checkReliability |
uint32_t | m_targetDeviceObjectID |
BACNETMSTP * | m_instance |
bool | m_initialized |
binaryInfo_t | m_bvInfo |
binaryInfo_t | m_biInfo |
multiStateInfo_t | m_msvInfo |
avCacheMap_t | m_avUnitCache |
aiCacheMap_t | m_aiUnitCache |
Additional Inherited Members | |
Protected Types inherited from BACNETUTIL | |
typedef std::map< uint32_t, binaryData_t > | binaryInfo_t |
typedef std::map< uint32_t, multiStateData_t > | multiStateInfo_t |
typedef std::map< uint32_t, std::string > | avCacheMap_t |
typedef std::map< uint32_t, std::string > | aiCacheMap_t |
Protected Member Functions inherited from BACNETUTIL | |
virtual void | updateMultiStateValueInfo (uint32_t objInstance) |
virtual void | deleteMultiStateValueInfo (uint32_t objInstance) |
virtual void | updateBinaryValueInfo (uint32_t objInstance) |
virtual void | deleteBinaryValueInfo (uint32_t objInstance) |
virtual void | updateBinaryInputInfo (uint32_t objInstance) |
virtual void | deleteBinaryInputInfo (uint32_t objInstance) |
TB7300 | ( | uint32_t | targetDeviceObjectID | ) |
TB7300 constructor
targetDeviceObjectID | the unique Instance ID of the Device Object. This number is used to uniquely identify devices on the BACnet network, and ranges from 1 to 4194302. This is not the device's MAC address, though on some devices, the MAC address may be used as part of this number. On the TB7300, this number depends on the model and the MAC address. |
void update | ( | void | ) |
Read current temperature from the sensor and update internal stored value. This method must be called prior to querying the temperature. All other values in the device must be queried directly via the appropriate BACNETUTIL::get*() methods depending on the object of interest.
float getTemperature | ( | bool | fahrenheit = false | ) |
Get the current temperature. update() must have been called prior to calling this method.
fahrenheit | true to return the temperature in degrees fahrenheit, false to return the temperature in degrees celsius. The default is false (degrees Celsius). |
void setTemperatureScale | ( | bool | fahrenheit | ) |
Set the device temperature scale to Celsius of Fahrenheit. For devices with an LCD display, this will affect which scale is displayed. When changing the scale, it may take several seconds for the setting to take effect.
fahrenheit | true to set the scale to fahrenheit, false for celsius. |
bool getTemperatureScale | ( | ) |
Get the device temperature scale.