joshbenner / esphome-daikin-s21

ESPHome Component for Daikin Mini-Splits using the S21 serial port.
GNU General Public License v3.0
52 stars 18 forks source link

ESP32 board can't receive the state of the AC #15

Open meditation1985 opened 7 months ago

meditation1985 commented 7 months ago

I'm using a standard [ESP32] board to connect Daikin's S21 (ftka20bv1h) with default config mentioned here: https://github.com/joshbenner/esphome-daikin-s21#configuration-example

but keep show the following error. Sending poweron commond is work but can't receive the state of the AC.

21:31:47 [W] [component:214] Component daikin_s21 took a long time for an operation (0.90 s). 21:31:47 [W] [component:215] Components should block for at most 20-30ms. 21:31:48 [E] [uart:015]
Reading from UART timed out at byte 0! 21:31:48 [W] [daikin_s21:257]
Timeout waiting for F1 response 21:31:49 [E] [uart:015]
Reading from UART timed out at byte 0! 21:31:49 [W] [daikin_s21:257]
Timeout waiting for F5 response 21:31:49 [E] [uart:015]
Reading from UART timed out at byte 0! 21:31:49 [W] [daikin_s21:257]
Timeout waiting for RH response 21:31:49 [E] [uart:015]
Reading from UART timed out at byte 0! 21:31:49 [W] [daikin_s21:257]
Timeout waiting for RI response 21:31:49 [E] [uart:015]
Reading from UART timed out at byte 0! 21:31:49 [W] [daikin_s21:257]
Timeout waiting for Ra response 21:31:49 [E] [uart:015]
Reading from UART timed out at byte 0! 21:31:49 [W] [daikin_s21:257]
Timeout waiting for RL response 21:31:49 [E] [uart:015]
Reading from UART timed out at byte 0! 21:31:49 [W] [daikin_s21:257]
Timeout waiting for Rd response

image image

wrouesnel commented 6 months ago

What's your interface circuit look like? Do you have level shifters connected?

In my setup I have an M5Stack Lite, and I found I needed 10kOhm pull resistors between the RX/TX lines and the +5V.

hoangtridung commented 3 months ago

I'm using a standard [ESP32] board to connect Daikin's S21 (ftka20bv1h) with default config mentioned here: https://github.com/joshbenner/esphome-daikin-s21#configuration-example

but keep show the following error. Sending poweron commond is work but can't receive the state of the AC. ........._

I have the same error. My circuit using ESP32 S2 mini with level shifters and regulator to power ESP32 and shifters Any solution ?.

bjornenvall commented 1 month ago

What's your interface circuit look like? Do you have level shifters connected?

In my setup I have an M5Stack Lite, and I found I needed 10kOhm pull resistors between the RX/TX lines and the +5V.

Hi! can you explain, I'm struggling with a m5stack s3 lite. a resistor between what and where?

wrouesnel commented 1 month ago

What's your interface circuit look like? Do you have level shifters connected? In my setup I have an M5Stack Lite, and I found I needed 10kOhm pull resistors between the RX/TX lines and the +5V.

Hi! can you explain, I'm struggling with a m5stack s3 lite. a resistor between what and where?

I don't know what pin configuration you're using, but you'll have a +5V power supply line. That's the first point. The resistors you need should go from +5V to the RS-232 serial receive line, and the RS-232 serial trasmit line - 2 separate 10 kiloohm resistors.

Since transmit is working, you probably only need 10kOhm from +5V to the RS-232 serial receive line. You might be able to do it by stripping a small section of your control wires, though to do this I got some prototype board.

bjornenvall commented 1 month ago

What's your interface circuit look like? Do you have level shifters connected? In my setup I have an M5Stack Lite, and I found I needed 10kOhm pull resistors between the RX/TX lines and the +5V.

Hi! can you explain, I'm struggling with a m5stack s3 lite. a resistor between what and where?

I don't know what pin configuration you're using, but you'll have a +5V power supply line. That's the first point. The resistors you need should go from +5V to the RS-232 serial receive line, and the RS-232 serial trasmit line - 2 separate 10 kiloohm resistors.

Since transmit is working, you probably only need 10kOhm from +5V to the RS-232 serial receive line. You might be able to do it by stripping a small section of your control wires, though to do this I got some prototype board.

Sorry but i still don’t understand. My ac only provide me with 14v so I have a stepdown thing (buck something) connected to atom 5v pin. The ground and the other two I have connected directly to the atom G and pin 1 and 2

wrouesnel commented 1 month ago

What's your interface circuit look like? Do you have level shifters connected? In my setup I have an M5Stack Lite, and I found I needed 10kOhm pull resistors between the RX/TX lines and the +5V.

Hi! can you explain, I'm struggling with a m5stack s3 lite. a resistor between what and where?

I don't know what pin configuration you're using, but you'll have a +5V power supply line. That's the first point. The resistors you need should go from +5V to the RS-232 serial receive line, and the RS-232 serial trasmit line - 2 separate 10 kiloohm resistors. Since transmit is working, you probably only need 10kOhm from +5V to the RS-232 serial receive line. You might be able to do it by stripping a small section of your control wires, though to do this I got some prototype board.

Sorry but i still don’t understand. My ac only provide me with 14v so I have a stepdown thing (buck something) connected to atom 5v pin. The ground and the other two I have connected directly to the atom G and pin 1 and 2

Right, so you need to put a 10 kiloOhm resistor connected between the 5V pin of the atom, to pin 1 of the AC line - and another one connected from the 5V pin of the atom to pin 2 of the atom.

bjornenvall commented 1 month ago

IMG_1937

like this?

wrouesnel commented 1 month ago

Yes

hoangtridung commented 1 month ago

I used a board ESP32-C3 Supermini. My heatpump is FTXS serries, When set mode to Auto / HeatCool the heatpump are acknowledge but on the frontend of HA, it shows as OFF . Other mode setting is OK. Any one have that error ??? My wiring as follow:

- PIN 4, 5 on S21 connector → DC-DC buck → PIN Gnd, VCC on ESP32-C3 - PIN 2, 3 on S21 connector → Shift Level → PIN 20,21 on ESP32-C3

and coding are:

uart:
  - id: s21_uart
    tx_pin: GPIO20
    rx_pin: GPIO21
    baud_rate: 2400
    data_bits: 8
    parity: EVEN
    stop_bits: 2
daikin_s21:
  tx_uart: s21_uart
  rx_uart: s21_uart