GrKoR / esphome_aux_ac_component

ESPHome component for AUX based air conditioners. Direct wifi control of HVAC by ESPHome and Home Assistant. HVAC status and command feedback are available.
Other
197 stars 47 forks source link

This is my wifi module, one of which does not work properly #71

Closed yybl closed 1 year ago

yybl commented 1 year ago

This is my wifi module, 20230323100340 20230323100326 20230323102753

I have two esps, one of which can read information and operate normally (the only disadvantage is that the original wifi module can view the latest information but cannot operate), but the other one with the same wiring and different esps (d1-mini, esp-01s) cannot read information correctly.

21:36:12    [D] [AirCon:1213]   
0001144126: [<=] [BB 00 01 00 00 00 00 00] [43 FF] 
21:36:12    [D] [AirCon:1479]   
0001144160: [=>] [BB 00 01 80 01 00 08 00] 1C 27 00 00 00 00 00 00 [1E 58] 
21:36:14    [D] [sensor:126]    
'AC WiFi Signal': Sending state -47.00000 dBa with 0 decimals of accuracy
21:36:15    [D] [AirCon:1213]   
0001147093: [<=] [BB 00 01 00 00 00 00 00] [43 FF] 
21:36:15    [D] [AirCon:1479]   
0001147127: [=>] [BB 00 01 80 01 00 08 00] 1C 27 00 00 00 00 00 00 [1E 58] 
21:36:16    [D] [AirCon:1479]   
0001148197: [=>] [BB 00 06 80 00 00 02 00] 11 01 [2B 7E] 
21:36:16    [W] [AirCon:949]    
Sequence  [step 1]: step timed out (it took 593 ms instead of 580 ms)
21:36:17    [D] [AirCon:1213]   
0001150072: [<=] [BB 00 01 00 00 00 00 00] [43 FF] 
21:36:18    [D] [AirCon:1479]   
0001150109: [=>] [BB 00 01 80 01 00 08 00] 1C 27 00 00 00 00 00 00 [1E 58] 
21:36:20    [D] [AirCon:1213]   
0001153042: [<=] [BB 00 01 00 00 00 00 00] [43 FF] 
21:36:21    [D] [AirCon:1479]   
0001153096: [=>] [BB 00 01 80 01 00 08 00] 1C 27 00 00 00 00 00 00 [1E 58] 
21:36:23    [D] [AirCon:1479]   
0001155200: [=>] [BB 00 06 80 00 00 02 00] 11 01 [2B 7E] 
21:36:23    [W] [AirCon:949]    
Sequence  [step 1]: step timed out (it took 592 ms instead of 580 ms)
21:36:23    [D] [AirCon:1213]   
0001156025: [<=] [BB 00 01 00 00 00 00 00] [43 FF] 
21:36:24    [D] [AirCon:1479]   
0001156062: [=>] [BB 00 01 80 01 00 08 00] 1C 27 00 00 00 00 00 00 [1E 58] 
21:36:25    [D] [AirCon:1213]   
0001158007: [<=] [BB 00 01 00 00 00 00 00] [43 FF] 
21:36:25    [D] [AirCon:1479]   
0001158031: [=>] [BB 00 01 80 01 00 08 00] 1C 27 00 00 00 00 00 00 [1E 58] 
21:36:28    [D] [AirCon:1213]   
0001160978: [<=] [BB 00 01 00 00 00 00 00] [43 FF] 
21:36:28    [D] [AirCon:1479]   
0001161031: [=>] [BB 00 01 80 01 00 08 00] 1C 27 00 00 00 00 00 00 [1E 58] 
21:36:30    [D] [AirCon:1479]   
0001162210: [=>] [BB 00 06 80 00 00 02 00] 11 01 [2B 7E] 
21:36:30    [W] [AirCon:949]    
Sequence  [step 1]: step timed out (it took 593 ms instead of 580 ms)
21:36:31    [D] [AirCon:1213]   
0001163970: [<=] [BB 00 01 00 00 00 00 00] [43 FF] 
21:36:31    [D] [AirCon:1479]   
0001164006: [=>] [BB 00 01 80 01 00 08 00] 1C 27 00 00 00 00 00 00 [1E 58] 
21:36:32    [D] [number:012]    
'AC Vertical Louvers': Sending state 1.000000
21:36:34    [D] [AirCon:1213]   
0001166945: [<=] [BB 00 01 00 00 00 00 00] [43 FF] 
21:36:34    [D] [AirCon:1479]   
0001166981: [=>] [BB 00 01 80 01 00 08 00] 1C 27 00 00 00 00 00 00 [1E 58] 
21:36:37    [D] [AirCon:1479]   
0001169207: [=>] [BB 00 06 80 00 00 02 00] 11 01 [2B 7E] 
21:36:37    [W] [AirCon:949]    
Sequence  [step 1]: step timed out (it took 592 ms instead of 580 ms)
21:36:37    [D] [AirCon:1213]   
0001169909: [<=] [BB 00 01 00 00 00 00 00] [43 FF] 
21:36:37    [D] [AirCon:1479]   
0001169963: [=>] [BB 00 01 80 01 00 08 00] 1C 27 00 00 00 00 00 00 [1E 58] 
21:36:40    [D] [AirCon:1213]   
0001172897: [<=] [BB 00 01 00 00 00 00 00] [43 FF] 
21:36:40    [D] [AirCon:1479]   
0001172934: [=>] [BB 00 01 80 01 00 08 00] 1C 27 00 00 00 00 00 00 [1E 58] 
21:36:43    [D] [AirCon:1213]   
0001175872: [<=] [BB 00 01 00 00 00 00 00] [43 FF] 
21:36:43    [D] [AirCon:1479]   
0001175909: [=>] [BB 00 01 80 01 00 08 00] 1C 27 00 00 00 00 00 00 [1E 58] 
21:36:44    [D] [sensor:126]    
'AC WiFi Signal': Sending state -46.00000 dBa with 0 decimals of accuracy
21:36:44    [D] [AirCon:1479]   
0001176220: [=>] [BB 00 06 80 00 00 02 00] 11 01 [2B 7E] 
21:36:44    [W] [AirCon:949]    
Sequence  [step 1]: step timed out (it took 593 ms instead of 580 ms)
21:36:46    [D] [AirCon:1213]   
0001178846: [<=] [BB 00 01 00 00 00 00 00] [43 FF] 
21:36:46    [D] [AirCon:1479]   
0001178883: [=>] [BB 00 01 80 01 00 08 00] 1C 27 00 00 00 00 00 00 [1E 58] 
21:36:49    [D] [AirCon:1213]   
0001181817: [<=] [BB 00 01 00 00 00 00 00] [43 FF] 
21:36:49    [D] [AirCon:1479]   
0001181854: [=>] [BB 00 01 80 01 00 08 00] 1C 27 00 00 00 00 00 00 [1E 58] 
21:36:51    [D] [AirCon:1479]   
0001183231: [=>] [BB 00 06 80 00 00 02 00] 11 01 [2B 7E] 
21:36:51    [W] [AirCon:949]    
Sequence  [step 1]: step timed out (it took 592 ms instead of 580 ms)
21:36:52    [D] [number:012]    
'AC Vertical Louvers': Sending state 1.000000
21:36:52    [D] [AirCon:1213]   
0001184791: [<=] [BB 00 01 00 00 00 00 00] [43 FF] 
21:36:52    [D] [AirCon:1479]   
0001184815: [=>] [BB 00 01 80 01 00 08 00] 1C 27 00 00 00 00 00 00 [1E 58] 
21:36:55    [D] [AirCon:1213]   
0001187770: [<=] [BB 00 01 00 00 00 00 00] [43 FF] 
21:36:55    [D] [AirCon:1479]   
0001187791: [=>] [BB 00 01 80 01 00 08 00] 1C 27 00 00 00 00 00 00 [1E 58] 
21:36:57    [D] [AirCon:1213]
yybl commented 1 year ago

Please forgive me for my poor English

GrKoR commented 1 year ago

Hi! Please describe in detail your hardware and connections. Do it for the working and failed one separately.

Questions for every hardware:

  1. What esp do you use?
  2. What pin for AUX_TX → ESP_RX line do you use?
  3. What pin for AUX_RX ← ESP_RX line do you use?
  4. Did you connect GND of esp board and AC?
  5. How do you perform power connection of the esp?
  6. Did you disconnect from AC this big board from the photos? Or may be you just disconnected AC_TX & AC_RX wires?
  7. If answer is not for (6) then did you check if there is no other connected chips and smd components on these lines on the board?

Your log looks like the esp receives data. But AC isn't receives esp's signals. The reasons may be different:

GrKoR commented 1 year ago

By the way: I never see in the AUX-based air conditioners boards like on your photos. Are your AC really AUX-based? (log from esp tells me that it probably are, but...)

yybl commented 1 year ago

Perhaps this air conditioner is only sold in China.

The first device, which I directly welded to the tx and rx of the wifi module of AUX, can work normally and control AC, indicating that my wiring is correct.

So I started to disassemble the second air conditioner, which was initially directly welded to the tx and rx of the wifi module, but this time it couldn't work properly and obtain information. Then I directly cut off the circuit board of the AUX and soldered it directly onto the+5V RX and+5V TX of the host. The same error was reported. Restore the WIFI module using AUX, it can work normally.

I'll give you more information after work in the evening.

yybl commented 1 year ago

My normal working air conditioner is welded here 20230324104101

The second one was also wired like this and couldn't work properly, so I changed to 20230324104519222 Added a conversion module 5V to 3.3V IIC UART SPI 20230324105943 20230324110003

yybl commented 1 year ago

AUX_ AC1 is working properly The normal one

Aux-ac2 is abnormal

Abnormal

yybl commented 1 year ago

The latest progress is that only the RX of ESP is connected, and the WIFI module of AUX is reserved. It is found that the AC status can be obtained, which means that the TX data transmission of ESP is abnormal?

GrKoR commented 1 year ago

Yes. I write you the same info earlier:

bad connection somewere on the AC_RX ← ESP_TX line (bad soldering, bad connector connections, using of dupont-wires and so on).

GrKoR commented 1 year ago

Try to exclude shift converter (5V to 3.3V IIC UART SPI) from your connection. Maybe it makes sense

yybl commented 1 year ago

Final solution:

  1. The connection is shown in the figure below

  2. If the TX transmission is abnormal, it is necessary to cut off the TX line of the aux wifi module, as shown in the marked position below 2023033014471622222

yybl commented 1 year ago

Supplementary information:

This is AUX's Aegean series

The WiFi module is integrated with the display board. 20230330145553

GrKoR commented 1 year ago

Tell me please model name (code) of yours conditioners. I'll update the tested list for help other people with such ACs.

yybl commented 1 year ago

KFR-26GW/BpR3QYQ1+1 KFR-35GW/BpR3QYQ1+1 KFR-26GW/BpR3QYQ2+2 KFR-35GW/BpR3QYQ2+2 KFR-35GW/BpQYD1+1R3 KFR-35GW/BpQYD2+2R3 KFR-26GW/BpR3QYD1+1 KFR-26GW/BpQYD2+2R3 KFR-35GW/BpQYA1+1R3 KFR-35GW/BpQYA2+2R3 KFR-26GW/BpR3QYA1+1 KFR-26GW/BpQYA2+2R3

This is a series of machines,

It's called the Aegean Sea(爱琴海)

yybl commented 1 year ago

My machine itself comes with a WiFi module.

If the machine itself does not have a WiFi module, there may be differences. Below are the pictures found online. If there is no communication line reserved on the display board, it depends on whether there is an interface on the main board.. 
![20230331093805](https://user-images.githubusercontent.com/12569482/229001562-deb8ecbe-bc9b-4170-8ef1-9c92b3834071.png)
20230331093849

yybl commented 1 year ago

20230331093805

GrKoR commented 1 year ago

Thank you! I've added this info into the documentation.