diff options
Diffstat (limited to 'src/main/proto/messages/VehicleRemoteHvac.proto')
-rw-r--r-- | src/main/proto/messages/VehicleRemoteHvac.proto | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/src/main/proto/messages/VehicleRemoteHvac.proto b/src/main/proto/messages/VehicleRemoteHvac.proto new file mode 100644 index 0000000..d122621 --- /dev/null +++ b/src/main/proto/messages/VehicleRemoteHvac.proto @@ -0,0 +1,78 @@ +syntax = "proto3"; + +package messages; +import "vss/vspec.proto"; +import "messages/VehicleMessageHeader.proto"; + + +// # Remote HVAC Commands and Settings +// +// This set of messages define requests and response for sending remote commands to vehicles +// +// ## Message Orchestration +// [TO-DO] +// +// ## MQTT Topic Design +// | Direction | Subscribe Topic | Publish Topic | +// | ----------- | ----- | -------- | +// | Vehicle to Cloud | rohv/* | rohv/<device_id> | +// | ----------- | ----- | -------- | +// | Cloud to Vehicle | <device_id>/rohv| <device_id>/rohv | + +/** +* Cabin Preconditioning can be used to remotely start and Set the Interior canbin HVAC and set the desired temperature. +*/ + +message CabinPreconditionRequest { + VehicleMessageHeading messageHeader = 1; + SetAcStatusRequest setAcStatus = 2; + SetTemperatureRequest setTemp = 3; +} + + +message CabinPreConditionReponse { + VehicleMessageHeading messageHeader = 1; + SetAcStatusReply setAcStatusReply = 2; + SetTemperatureReply setTemperatureReply = 3; +} + +message SetAcStatusRequest { + AcStatusEnum desiredStatus = 1; // The desired status of A/C +} + +/** + * @brief + * + */ +message SetAcStatusReply { + AcStatusEnum status = 1; + + +} + +enum AcStatusEnum { + ON = 0; + OFF = 1; + UKNONWN_ERROR = 2; +} + +/** + * @brief + * + */ +message SetTemperatureRequest { + float temperature = 1; // The desired cabin temperature in degree Celsius +} + +/** + * @brief + * + */ +message SetTemperatureReply { + SetTempStatusEnum tempStatus = 1; +} + +enum SetTempStatusEnum { + TEMP_SUCCESS = 0; + TEMP_ERROR = 1; +}
\ No newline at end of file |