Replies: 3 comments 1 reply
-
Congratulations! You are the first one that gives feedback about communication. Let me know if you discover more things. |
Beta Was this translation helpful? Give feedback.
-
Not sure if different to your unit, but more details for my use case:
There seem to be 2 flags that correspond to HEATING status. They are not always the same. E.g. in DRY mode HEATING 1 is |
Beta Was this translation helpful? Give feedback.
-
Also some differences for setting temp or fan. For setting fan the mode byte is The fan byte is set to Here's my implementation snippet of the write logic: uint8_t get_fan_bit_mask_for_mode(uint8_t mode) {
switch (mode) {
case MODE_HEAT:
case MODE_AUTO:
return 0b00100000 | 0b00001000;
case MODE_COOL:
case MODE_DRY:
case MODE_FAN_ONLY:
return 0b00010000 | 0b00001000;
}
return 0;
}
void write_set_parameter_flags(struct DataFrame *data_frame, struct StateStore *state_store, uint8_t set_flags) {
uint8_t payload[6] = {
static_cast<uint8_t>(state_store->mode | set_flags),
static_cast<uint8_t>(state_store->fan | get_fan_bit_mask_for_mode(state_store->mode)),
temp_celcius_to_payload(state_store->target_temp),
EMPTY_DATA,
get_heat_cool_bits(state_store->mode),
get_heat_cool_bits(state_store->mode),
};
write_set_parameter(data_frame, state_store, 0x4C, payload, sizeof(payload));
}
// the flags
const uint8_t COMMAND_SET_TEMP = 0b00001000;
const uint8_t COMMAND_SET_FAN = 0b00010000; |
Beta Was this translation helpful? Give feedback.
-
I'm building the interface for my parent's air con:
RBC-AMS41E
MMD-AP0271BH
I'm capturing the data frames for different commands etc. Mostly it's the same as @issalig captured, but there are some differences. I'm starting this discussion for people to share their data capture so we can better understand the differences and hopefully learn more about the TCC-Link protocol.
00
for master I have01
. I'm guessing this is to support multiple units from a single remote, and in my case the unit is configured as01
. E.g:01:FE:10:02:80:8A:E7
01:40:18:02:80:A1:7A
40:01:15:07:08:0C:81:00:00:48:00:9E
01:40:18:08:80:0C:82:03:00:00:48:00:14
01:FE:1C:08:80:81:35:6C:02:00:78:08:C1
01:FE:58:0A:80:81:35:6C:02:00:78:67:E9:00:01
Beta Was this translation helpful? Give feedback.
All reactions