TwiceAsNice
2019-02-18
|
#include <HitachiHighProtocol.h>
Public Member Functions | |
HitachiHighProtocol () | |
HitachiHighProtocol (std::string connection, bool create) | |
virtual | ~HitachiHighProtocol () |
void | createBroker (const std::string &connection) |
void | createBroker () |
void | closeBroker () |
std::string | getAnswer () |
void | queryCpuStatus (bool &run, bool &halt, bool &error, bool &batteryerror, std::string &type) |
void | queryCpuName (std::string &cpuname) |
void | queryPIDconstants (double &c1, double &c2, double &c3, double &timer) |
void | queryHeliumPressureAuxilaries (double &max, double &min, double &hyst) |
void | queryHeliumPressure (double &pressure) |
void | queryDeltaU (int &delta) |
void | queryInputDouble (double &input) |
void | queryFanAndCryoRotation (double &freqcryo, double &freqfan, int &cryorpm, int &fanrpm) |
void | queryDefrost (double &defrost, double &defroststop) |
void | queryCurrentProcessValues (double &actualTemp, double &pt100Temp) |
void | queryHeliumValve (bool &plus, bool &minus) |
void | queryHeliumRange (double &range) |
void | queryCoilTemperature (double &coilTemp) |
void | queryAuxPt100Temperature (double &auxPt100Temp) |
void | querySetPointTemperature (double &setpoint) |
void | queryAdditionalTemperature (double &adTemp) |
void | queryAdditionalPressure (double &adPressure) |
void | setPIDvalueC1 (double newC1) |
void | setPIDvalueC2 (double newC2) |
void | setPIDvalueC3 (double newC3) |
void | setPIDvalueTsample (double newTsample) |
void | setDefrostTemperature (double newDefrost) |
void | setDefrostStopTemperature (double newDefrostStop) |
void | setSetPoint (double setpoint) |
void | setTransferFanPreset (int fanrpm) |
HitachiHighProtocol () | |
HitachiHighProtocol (std::string connection, bool create) | |
virtual | ~HitachiHighProtocol () |
void | createBroker (const std::string &connection) |
void | createBroker () |
void | closeBroker () |
std::string | getAnswer () |
void | queryCpuStatus (bool &run, bool &halt, bool &error, bool &batteryerror, std::string &type) |
void | queryCpuName (std::string &cpuname) |
void | queryPIDconstants (double &c1, double &c2, double &c3, double &timer) |
void | queryHeliumPressureAuxilaries (double &max, double &min, double &hyst) |
void | queryHeliumPressure (double &pressure) |
void | queryDeltaU (int &delta) |
void | queryInputDouble (double &input) |
void | queryFanAndCryoRotation (double &freqcryo, double &freqfan, int &cryorpm, int &fanrpm) |
void | queryDefrost (double &defrost, double &defroststop) |
void | queryCurrentProcessValues (double &actualTemp, double &pt100Temp) |
void | queryHeliumValve (bool &plus, bool &minus) |
void | queryHeliumRange (double &range) |
void | queryCoilTemperature (double &coilTemp) |
void | queryAuxPt100Temperature (double &auxPt100Temp) |
void | querySetPointTemperature (double &setpoint) |
void | queryAdditionalTemperature (double &adTemp) |
void | queryAdditionalPressure (double &adPressure) |
void | setPIDvalueC1 (double newC1) |
void | setPIDvalueC2 (double newC2) |
void | setPIDvalueC3 (double newC3) |
void | setPIDvalueTsample (double newTsample) |
void | setDefrostTemperature (double newDefrost) |
void | setDefrostStopTemperature (double newDefrostStop) |
void | setSetPoint (double setpoint) |
void | setTransferFanPreset (int fanrpm) |
Protected Member Functions | |
void | sendMsg (const std::string &msg) |
this function sends a specific command to the device More... | |
void | readMsg (std::string &rcv) |
this function reads the answer from the device More... | |
void | processCommand (std::string command, std::string &answer) |
this function deals with the command processing More... | |
void | sendMsg (const std::string &msg) |
this function sends a specific command to the device More... | |
void | readMsg (std::string &rcv) |
this function reads the answer from the device More... | |
void | processCommand (std::string command, std::string &answer) |
this function deals with the command processing More... | |
Private Member Functions | |
void | setConnection (std::string connection) |
this function is used to set the m_IpInfo variable to a specific string More... | |
void | setConnection (std::string connection) |
this function is used to set the m_IpInfo variable to a specific string More... | |
Private Attributes | |
Basda::Tempo::Stirling::HexConnectionBroker * | m_broker |
reference to the connection broker dealing with tcp connection via n-port to the cooler More... | |
Basda::Tempo::Stirling::ProtocolUtil | m_util |
the utilities for the H-protocol More... | |
std::string | m_connection |
this string contains the connection informations (ip adress, port) More... | |
bool | m_isConnected |
this boolean indicates if there is an active connection to a device More... | |
std::string | m_answer |
this string contains the latest answer from the device More... | |
Basda::Tempo::HitachiHighProtocol::HitachiHighProtocol | ( | ) |
Basda::Tempo::HitachiHighProtocol::HitachiHighProtocol | ( | std::string | connection, |
bool | create | ||
) |
|
virtual |
Basda::Tempo::HitachiHighProtocol::HitachiHighProtocol | ( | ) |
Basda::Tempo::HitachiHighProtocol::HitachiHighProtocol | ( | std::string | connection, |
bool | create | ||
) |
|
virtual |
void Basda::Tempo::HitachiHighProtocol::closeBroker | ( | ) |
void Basda::Tempo::HitachiHighProtocol::closeBroker | ( | ) |
void Basda::Tempo::HitachiHighProtocol::createBroker | ( | const std::string & | connection | ) |
void Basda::Tempo::HitachiHighProtocol::createBroker | ( | const std::string & | connection | ) |
void Basda::Tempo::HitachiHighProtocol::createBroker | ( | ) |
void Basda::Tempo::HitachiHighProtocol::createBroker | ( | ) |
|
inline |
|
inline |
|
protected |
this function deals with the command processing
command | the command to send to the cooler |
final | answer from the cooler |
The command is pre-processed (checksum creation, converted into right format) and send to the cooler. The ACK/NAK response is checked and if everything is okay, the ready-to-receive message is send to the cooler resulting in the final answer including requested data.
|
protected |
this function deals with the command processing
command | the command to send to the cooler |
final | answer from the cooler |
The command is pre-processed (checksum creation, converted into right format) and send to the cooler. The ACK/NAK response is checked and if everything is okay, the ready-to-receive message is send to the cooler resulting in the final answer including requested data.
void Basda::Tempo::HitachiHighProtocol::queryAdditionalPressure | ( | double & | adPressure | ) |
void Basda::Tempo::HitachiHighProtocol::queryAdditionalPressure | ( | double & | adPressure | ) |
void Basda::Tempo::HitachiHighProtocol::queryAdditionalTemperature | ( | double & | adTemp | ) |
void Basda::Tempo::HitachiHighProtocol::queryAdditionalTemperature | ( | double & | adTemp | ) |
void Basda::Tempo::HitachiHighProtocol::queryAuxPt100Temperature | ( | double & | auxPt100Temp | ) |
void Basda::Tempo::HitachiHighProtocol::queryAuxPt100Temperature | ( | double & | auxPt100Temp | ) |
void Basda::Tempo::HitachiHighProtocol::queryCoilTemperature | ( | double & | coilTemp | ) |
void Basda::Tempo::HitachiHighProtocol::queryCoilTemperature | ( | double & | coilTemp | ) |
void Basda::Tempo::HitachiHighProtocol::queryCpuName | ( | std::string & | cpuname | ) |
void Basda::Tempo::HitachiHighProtocol::queryCpuName | ( | std::string & | cpuname | ) |
void Basda::Tempo::HitachiHighProtocol::queryCpuStatus | ( | bool & | run, |
bool & | halt, | ||
bool & | error, | ||
bool & | batteryerror, | ||
std::string & | type | ||
) |
void Basda::Tempo::HitachiHighProtocol::queryCpuStatus | ( | bool & | run, |
bool & | halt, | ||
bool & | error, | ||
bool & | batteryerror, | ||
std::string & | type | ||
) |
void Basda::Tempo::HitachiHighProtocol::queryCurrentProcessValues | ( | double & | actualTemp, |
double & | pt100Temp | ||
) |
void Basda::Tempo::HitachiHighProtocol::queryCurrentProcessValues | ( | double & | actualTemp, |
double & | pt100Temp | ||
) |
void Basda::Tempo::HitachiHighProtocol::queryDefrost | ( | double & | defrost, |
double & | defroststop | ||
) |
void Basda::Tempo::HitachiHighProtocol::queryDefrost | ( | double & | defrost, |
double & | defroststop | ||
) |
void Basda::Tempo::HitachiHighProtocol::queryDeltaU | ( | int & | delta | ) |
void Basda::Tempo::HitachiHighProtocol::queryDeltaU | ( | int & | delta | ) |
void Basda::Tempo::HitachiHighProtocol::queryFanAndCryoRotation | ( | double & | freqcryo, |
double & | freqfan, | ||
int & | cryorpm, | ||
int & | fanrpm | ||
) |
void Basda::Tempo::HitachiHighProtocol::queryFanAndCryoRotation | ( | double & | freqcryo, |
double & | freqfan, | ||
int & | cryorpm, | ||
int & | fanrpm | ||
) |
void Basda::Tempo::HitachiHighProtocol::queryHeliumPressure | ( | double & | pressure | ) |
void Basda::Tempo::HitachiHighProtocol::queryHeliumPressure | ( | double & | pressure | ) |
void Basda::Tempo::HitachiHighProtocol::queryHeliumPressureAuxilaries | ( | double & | max, |
double & | min, | ||
double & | hyst | ||
) |
void Basda::Tempo::HitachiHighProtocol::queryHeliumPressureAuxilaries | ( | double & | max, |
double & | min, | ||
double & | hyst | ||
) |
void Basda::Tempo::HitachiHighProtocol::queryHeliumRange | ( | double & | range | ) |
void Basda::Tempo::HitachiHighProtocol::queryHeliumRange | ( | double & | range | ) |
void Basda::Tempo::HitachiHighProtocol::queryInputDouble | ( | double & | input | ) |
void Basda::Tempo::HitachiHighProtocol::queryInputDouble | ( | double & | input | ) |
void Basda::Tempo::HitachiHighProtocol::queryPIDconstants | ( | double & | c1, |
double & | c2, | ||
double & | c3, | ||
double & | timer | ||
) |
void Basda::Tempo::HitachiHighProtocol::queryPIDconstants | ( | double & | c1, |
double & | c2, | ||
double & | c3, | ||
double & | timer | ||
) |
void Basda::Tempo::HitachiHighProtocol::querySetPointTemperature | ( | double & | setpoint | ) |
void Basda::Tempo::HitachiHighProtocol::querySetPointTemperature | ( | double & | setpoint | ) |
|
protected |
this function reads the answer from the device
rcv | answer from the device |
|
protected |
this function reads the answer from the device
rcv | answer from the device |
|
protected |
this function sends a specific command to the device
msg | message to send |
|
protected |
this function sends a specific command to the device
msg | message to send |
|
private |
this function is used to set the m_IpInfo variable to a specific string
|
private |
this function is used to set the m_IpInfo variable to a specific string
void Basda::Tempo::HitachiHighProtocol::setDefrostStopTemperature | ( | double | newDefrostStop | ) |
void Basda::Tempo::HitachiHighProtocol::setDefrostStopTemperature | ( | double | newDefrostStop | ) |
void Basda::Tempo::HitachiHighProtocol::setDefrostTemperature | ( | double | newDefrost | ) |
void Basda::Tempo::HitachiHighProtocol::setDefrostTemperature | ( | double | newDefrost | ) |
void Basda::Tempo::HitachiHighProtocol::setPIDvalueC1 | ( | double | newC1 | ) |
void Basda::Tempo::HitachiHighProtocol::setPIDvalueC1 | ( | double | newC1 | ) |
void Basda::Tempo::HitachiHighProtocol::setPIDvalueC2 | ( | double | newC2 | ) |
void Basda::Tempo::HitachiHighProtocol::setPIDvalueC2 | ( | double | newC2 | ) |
void Basda::Tempo::HitachiHighProtocol::setPIDvalueC3 | ( | double | newC3 | ) |
void Basda::Tempo::HitachiHighProtocol::setPIDvalueC3 | ( | double | newC3 | ) |
void Basda::Tempo::HitachiHighProtocol::setPIDvalueTsample | ( | double | newTsample | ) |
void Basda::Tempo::HitachiHighProtocol::setPIDvalueTsample | ( | double | newTsample | ) |
void Basda::Tempo::HitachiHighProtocol::setSetPoint | ( | double | setpoint | ) |
void Basda::Tempo::HitachiHighProtocol::setSetPoint | ( | double | setpoint | ) |
void Basda::Tempo::HitachiHighProtocol::setTransferFanPreset | ( | int | fanrpm | ) |
void Basda::Tempo::HitachiHighProtocol::setTransferFanPreset | ( | int | fanrpm | ) |
|
private |
this string contains the latest answer from the device
|
private |
reference to the connection broker dealing with tcp connection via n-port to the cooler
|
private |
this string contains the connection informations (ip adress, port)
|
private |
this boolean indicates if there is an active connection to a device
|
private |
the utilities for the H-protocol