issalig / toshiba_air_cond

AB protocol decoder for toshiba air conditioners
37 stars 9 forks source link

I'm interested in PCB #29

Closed krishy2 closed 1 month ago

krishy2 commented 1 year ago

Hello,

I own a Toshiba Estia heat pump. I'd like to assume it has the same "AB" bus. Do you have any experience? Otherwise I'd give a try, just for fun.

Thanks!

issalig commented 1 year ago

Hi, I do not know Estia system, but it would be nice if you can explore it. I can send you one soldered pcb with all the components for 8.5 EUR. Bare pcb would be 2 EUR.

Postage to Europe would be 2 EUR for untracked.

Tell me which option do you prefer and the destination country.

alsig commented 1 year ago

Hey.

I also have a Toshiba Estia heatpump.

Do you have more mounted PCBs in stock? Destination country: Denmark

/Jens

issalig commented 1 year ago

Yes. I have the components, so I can mount them in a couple of days.

Also, take into account that I do not know if my PCB is compatible with Estia.

krishy2 commented 1 year ago

Hey,

I understand that you are not sure if it works with Estia, but we will figure it out.

alsig commented 1 year ago

Super!

issalig commented 1 year ago

PM sent.

krishy2 commented 1 year ago

Hi, Something went wrong, I have nothing in my mailbox :(

alsig commented 1 year ago

Hi,

Just a bit of feedback.

I've received the PCB two days ago, installed right away and the PCB is working with an Esti heat pump! Great work!

I haven't verified the software yet only the hardware.

I used ESPhome with the following recipe:

esphome:
  name: toshiba-link
  friendly_name: toshiba_link

esp8266:
  board: d1_mini

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "magic key :)"

ota:
  password: "top secret password"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Toshiba-Link Fallback Hotspot"
    password: "Yet another password"

captive_portal:

uart:
  tx_pin: D8
  rx_pin: D7
  baud_rate: 2400
  parity: EVEN
  debug:
    direction: RX
    dummy_receiver: true
    after:      
      timeout: 100ms
    sequence:
      - lambda: UARTDebug::log_hex(uart::UART_DIRECTION_RX, bytes, ':');    

So @issalig thank you! /alsig

issalig commented 1 year ago

Nice, I have not tried ESPHome, in fact I did not know someone had added support for toshiba. I will take a look.

From my side, I have a web interface that resides in the eps8266. https://github.com/issalig/toshiba_air_cond#software-installation and it can be found at https://github.com/issalig/toshiba_air_cond/tree/master/air/data

alsig commented 1 year ago

Well there isn't support in esphome, yet. All i did was to make a datalogger in esphome. I'm hoping that I'll be able to add support to esphome for my heat pump. /alsig

issalig commented 1 year ago

I found this repo https://github.com/muxa/esphome-tcc-link , maybe it will work for you

issalig commented 1 year ago

Feel free to open an issue to report your progress with esphome. Then I could add a small guide in the main page.

krishy2 commented 1 year ago

Do we know the datagrams of Estia? Or maybe they are the same as other Toshiba products?

From: alsig @.> Date: Monday, 2023. June 5. 9:40 To: issalig/toshiba_air_cond @.> Cc: Tóth Kristóf @.>, Author @.> Subject: Re: [issalig/toshiba_air_cond] I'm interested in PCB (Issue #29)

Well there isn't support in esphome, yet. All i did was to make a datalogger in esphome. I'm hoping that I'll be able to add support to esphome for my heat pump. /alsig

— Reply to this email directly, view it on GitHubhttps://github.com/issalig/toshiba_air_cond/issues/29#issuecomment-1576236808, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AR4VQ6GEKLI7DFNYDC6SN2DXJWEOXANCNFSM6AAAAAAYGQ5FCU. You are receiving this because you authored the thread.Message ID: @.***>

alsig commented 1 year ago

What I can see from the data is the protocol isn't quite the same. There are similarities but the source and destination adresses are different, the checksum calculation doesn't match your implantation and the temperature conversion are also using a different equation...

issalig commented 1 year ago

It would be great if you manage to guess the protocol. If you have doubts, just paste the bytes and I can try to guess what´s going on. I tried to document it how I decoded it (main page of repo) but maybe it is not as clear as I thought.

You could just ignore crc (at least for RX) . Also you can try https://www.scadacore.com/tools/programming-calculators/online-checksum-calculator/

alsig commented 1 year ago

Good evening.

I have had some success last night and tonight.

It looks like they have modified the protocol a bit. Here is what I have learned so far.

It looks like the remote control has address 0xA0 and the master has address 0x00. The status command is 0x1C and ping/alive is 0x10. All (source, destination, opcode-1 and length) are 8 bits. A padding(?) bytes have been inserted in position 4 (zero indexed) and the read/write byte is in position 6. The checksum is actually a crc16 (info here: https://crccalc.com/?crc=A0001C0F00080000FE03C6C30010845C660000&method=CRC-16/MCRF4XX&datatype=hex&outtype=0)

I also discovered that the temperature calculations are done like this: hex_value = temp_deg_c * 2 + 0x20

I have attached a long file for those of you who are curious.

logs_toshiba-link_logs_with_timestamps.txt

issalig commented 1 year ago

Great, it works for the messages starting with A0 but it does not work the others, for example: AF:FB:55:C9:FF:DB:7F:CB:FE:FB:F6:FF:B7: (AF:6F) should be DC:11

alsig commented 1 year ago

Damn it :/ Oh well back to the drawing board

issalig commented 1 year ago

I have tried reveng to guess the CRC algorithm without success https://reveng.sourceforge.io/

issalig commented 1 year ago

Hi, did you finally manage to decode it?

alsig commented 1 year ago

Kind of... I did manage to decode part of the protocol but then I got cough up at work and then summer hit... I get back to the project at autumn time. I'll keep you updated...

krishy2 commented 9 months ago

Hello Guys,

Is there any update at your side?

From: alsig @.> Date: Wednesday, 19 July 2023 at 12:02 To: issalig/toshiba_air_cond @.> Cc: Tóth Kristóf @.>, Author @.> Subject: Re: [issalig/toshiba_air_cond] I'm interested in PCB (Issue #29)

Kind of... I did manage to decode part of the protocol but then I got cough up at work and then summer hit... I get back to the project at autumn time. I'll keep you updated...

— Reply to this email directly, view it on GitHubhttps://github.com/issalig/toshiba_air_cond/issues/29#issuecomment-1641794337, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AR4VQ6HGTBXNSAA5SUMB5W3XQ6WBTANCNFSM6AAAAAAYGQ5FCU. You are receiving this because you authored the thread.Message ID: @.***>

issalig commented 9 months ago

I wanted to integrate it with homeassistant but I have not tried yet :)

krishy2 commented 9 months ago

But the protocol is clear?

In fact, I’d like to change between two modes in my house at the countryside.

  1. Most of the times I’m away and I want to have 15C VLT just for frost protection. This would allow the best COP.
  2. When I’m in the house I need the 45C VLT to ramp it up, later 30-35C is ok.

So, I need to change the VLT continuously. I haven’t found any possibility to achieve this by digital inputs. Even the modbus converter hasn’t Ethernet or wifi, but costs almost 600€.

If the protocol works, I could issue the VLT set command at least. HA can wait 😊

Thanks

From: issalig @.> Date: Tuesday, 14 November 2023 at 16:36 To: issalig/toshiba_air_cond @.> Cc: Tóth Kristóf @.>, Author @.> Subject: Re: [issalig/toshiba_air_cond] I'm interested in PCB (Issue #29)

I wanted to integrate it with homeassistant but I have not tried yet :)

— Reply to this email directly, view it on GitHubhttps://github.com/issalig/toshiba_air_cond/issues/29#issuecomment-1810472250, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AR4VQ6FNRP6ZO7JCSYG6UIDYEOFW7AVCNFSM6AAAAAAYGQ5FCWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJQGQ3TEMRVGA. You are receiving this because you authored the thread.Message ID: @.***>

issalig commented 9 months ago

I was referring to my unit not Estias, so nothing from my side.

krishy2 commented 9 months ago

I’d kill for a Modbus coupler 😊 in that case we could sniff the data.

From: issalig @.> Date: Tuesday, 14 November 2023 at 19:28 To: issalig/toshiba_air_cond @.> Cc: Tóth Kristóf @.>, Author @.> Subject: Re: [issalig/toshiba_air_cond] I'm interested in PCB (Issue #29)

I was referring to my unit not Estias, so nothing from my side.

— Reply to this email directly, view it on GitHubhttps://github.com/issalig/toshiba_air_cond/issues/29#issuecomment-1810892487, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AR4VQ6ADR5LK4KQYACES2D3YEOZ5ZAVCNFSM6AAAAAAYGQ5FCWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJQHA4TENBYG4. You are receiving this because you authored the thread.Message ID: @.***>