-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FTXP25M5V1B9 no connection #62
Comments
If you connect the pins on the Faikin module, pins 3 and 4 together, and power it on, it should blink red, green, blue (if latest firmware loaded), that shows it has detected a loop back and confirms the Faikin board is working correctly, which would be a good start. The voltages look sane. If that works, there is some debug that can be enabled via MQTT. |
Loopback seems to work, LED is blinking. I enabled the debug output. This is the info topic
And the error topic
Latest firmware is installed |
Looks like it is not seeing any responses at all. Short of an oscilloscope on Tx/Rx, or trying one of the official wifi modules to confirm the port works, I am not sure what else to suggest. It would be a shame if we found an aircon that did not work with it. |
I can connect it to one of my other ACs (same model, but one is more powerful) and see if that works, to rule out if the port on this one is broken. I can test with a scope later this week probably. Otherwise I'll have to buy the official Wifi modules. |
Well let me know. I think the S21 port is very standard in Daikin, but I have not found a specification to follow sadly, but a lot of models do work. So I hope we can work it out. |
@revk do you know which direction are the pins are officially numbered from? |
The triangle is pin 1, which is the one that is not used on my board (NC), and is normally 5V. |
I just tested the module on all units I have (2x FTXP25M and 1x FTXP35M) and all of them have the same problem. I also tested with another faikin board and that also did not help. I'll check with an oscilloscope later this week. I think it should be possible to get this working as these units support the official Wifi modules through the S21 port. |
Someone has confirmed FTXF35D5V1B worked, if that helps. This is very strange. |
That is a bugger, but does explain it. And well done diagnosing that. It is possible to make a design that uses pin 1 (5V) to drive the output. But usually 3.3V is enough to work a logic level like that. What is the exact model, I'll make a note on the compatibility list, and see if I can work out any way of tackling this. One issue is some leads only have 4 connections not 5, i.e. don't have the 5V connection, so they would not work with a new design. One possible think to try might be a resistor from pin 1 to the Tx pin to pull it up a bit. It may not need much. Have you got a picture of your Faikin module? Trying to work out if the one you has includes a 100 ohm on the Tx, which would make that reasonably safe to do. Maybe 1k resistor? |
OK, I wonder if something like a 1k resistor from NC to 26 would work - do you have a means to try that? |
The fact you measured 5V on that pin means there may be a pull up. It may be an open collector output would do the trick. If I also did a resistor to pin 1 for when pin 1 is in use, that may work in either case. I'll have to try that out here. It may make for a design that will work to 5V properly. |
OK, I have checked mine, and it has a pull up internally to 5V, so an open collector output should work. I'll order some samples, it will take a week. Where in the world are you? I could send you a sample of the new design... |
I tried the resistor but that did not help unfortunately. I'm currently trying to set the TX pin to open drain output mode to see if that helps. (Can I push my own binary via OTA?) |
The pin itself will have a parasitic diode to 3.3V I bet, but worth a try. If you have a p-channel FET you may be able to fit in in place of 100 hon resistor and cap, and set port to You can, via MQTT, tell it the cost to get binary. But I can make the change here and let you update if you want to wait a moment. |
Ok I tried setting OUTPUT_OD and then re-setting the iomux - but the documentation for that is crap and it did not work. If you find a way, let me know. In meant time, I'll make new boards - but that is at least a week. |
I have ordered new PCBs using open drain. |
DM me on https://toot.me.uk/@RevK and I can post that one to you anyway. New boards will be at least a week. |
DM sent, glad to hear it already works on your unit! |
Yup! That was me. My modules are self-made, I'm not using the Faikin boards, and I tried to wire directly the ESP32 module to the S21 port of the A/C unit. With that in place it works like a charm, so maybe some recent units are more voltage picky than older ones? The A/C units were all installed this quarter. Thanks for such a great project! |
OK that does sort of confirm these units want 5V signalling, so my change should fix that. I'll post out a board for you. |
From what I gathered, some units need 5V and their TX is not inverted? I have the same problem with FTXC-D unit which officially uses BRP069B45 module. Granted, I use esphome-daikin-s21 rewrite of this code for ESPHome on my DIY build, but the symptoms are the same. In serial log it says that the ESP didn't receive ACK even with level shifter. And if I don't connect UART at all, it logs timeouts, not ACK errors, so I guess that would indicate correct wiring but that it received unexpected data - possibly inverted? I'll try it and report back. If it works on my unit too, that would indicate that all units that need *045 wifi module will need this modification. See this brochure, page 122. My FTXC-D and @haissio's FTXF-D are listed under BRP069B045. |
It is easy to make the code try tx inverted and not. That would also solve the problem of my newer modules having an inverting output. But my code allows you to set the gpio inverted - I assume the port does the same. Does that work? |
I have an FTXV71UVMA, and after installing it today, I'm wondering if I'm hit with this too. Can you suggest any quick method for verifying? Of course, I'd love a replacement board - but I'm in NZ, so might be a bit annoying for shipping! edit: I should add - I purchased a BRP980B42 to install to get an S21 port. |
Tx invert is easy to try via a setting, but I expect to have code later today that tries inverting Tx, and that may be easier. To try 5V you probably need to budge a FET on to the board. |
OK latest code will try S21/X50 and S21/X50 with inverted Tx, until it finds a valid reply. It stores this so next restart will try the right one first. |
no joy on my end, I'm happy to give a bodge a go, can you recommend a part number? |
Speaking for my unit (FTXC-D):
Now, this doesn't rule out other possible combinations which we maybe just haven't encountered yet, such as inverted Daikin's RX or even 3.3V signals. So perhaps the best solution would be to cover them in advance (with jumpers maybe?), default to 3.3V and instruct users to experiment if the communication doesn't work? |
Ok the 5V/3.3V I think I have covered. Ideally need someone to try a sample when they arrive. I can make s/w handle all invert cases, just in case. |
New version issued, including Tx/Rx invert checks, and F9 handling (if no RH/Ra). Let me know if that works OK for you? |
It should work with my DIY board (just an ESP32 devkitc board with level shifter wired to GPIO), right? I can test it later today. |
It tries inverted and non inverted, so yea. |
Are your bin files not complete images (flashable to 0x0 with esptool.py)? When I flash with
|
They are what esp idf makes which is, I think, separate to boot loaded. But if have updated the ones are ota.RevK.Uk now so you can do an OTA upgrade. |
I setup the esp-idf environment and got it working, but unfortunately I can't test it right now. Without getting in the details, I'm deadlocked with the wiring right now and my ESP must be powered from the USB, which results in the AC not communicating over S21 because it expects some power draw from VCC line to enable the bus. Perhaps the better test would be if someone else in this thread can try it on an actual Faikin board (@Di-rk @mjbnz). I can test it next week when I get all the connectors and wires and finish my HW. In the meantime, I sniffed the bus again when powered on. RH and RI still don't respond, and Rd always responds with 999. |
"power draw from VCC line to enable the bus" worries me as my module does not do that. Is that a thing? I expect to have new Faikin with open drain on Tx to allow for 5V, and pull up to VCC (will that be "power draw"?). I only have a few coming, but can post out. I'll let you know when they arrive and we can sort addresses. |
Sorry, I meant 12V line, not 5V. When anything (official adapter, Faikin, etc.) starts drawing power, the AC beeps once. It's independent of whether the RX and TX lines are connected. In my case, there's currently (temporarily) no power draw from 12V, the unit doesn't beep and there's nothing on the data bus. |
That is weird, IMHO, but good, we do that, phew. You had me worried for a moment :-) |
Im powering my own board with 12V from the s21 and then use an ADuM1201 for TX/RX shifting, this one is powered on one site from the 5V from the S21 on the other Site from 12V(s21) --> to 3V for the ESP32. This works fine without an inverted signal on the RX or TX. Also you should not power your ESP32 from the s21 5V line I think possible supply current on this one is maybe not high enough for the ESP32 during max consumption like transmitting or so. I cannot confirm that you need to pull substancial power over the 5V line to activate the interface. (its only powering one site of the Adum which only need maybe 1-2ma from the 5V. |
Indeed, I am using the nominal 12V for power, and the 5V as a reference if present. |
As I already clarified, power draw on 12V line is needed to activate the S21 bus, not 5V. I use 5V only to power the level shifter, too. |
I just tested the board with the mosfet on it and it works perfectly! Thank you! |
@revk I know this is closed, but I'd just let you know that, for some reason, Faikin reports "system if offline" and there seems to be no connection, both on OTA firmware and latest grabbed from the repository. When I switch to ESPHome communication works. As I previously stated, this is on a custom PCB with ESP32 devkitc, UART wired to pins 26 and 27 and a level shifter powered from 5V on S21 connector and 3.3V on ESP32 board (the board doesn't invert any signals). So you don't have to waste time on my custom contraption, but I'm curious because it's obviously not some wiring issue and Faikin uses same pins, 26 and 27. |
Does setting debug show anything received at all? Does setting dump show anything? Does looping back 26 and 27 show "loopback"? |
Alira X the second number is FF when AC power is down. |
A tad more would help, does that say tx or rx, etc. if rx then that is a big clue. |
I found some time to setup everything (I have successfully avoided MQTT until now), here's some info:
Messages 408 and 409 at the bottom are what my unit should respond to, but it doesn't appear to. This same board works when I flash ESPHome with Daikin S21 component. |
The next step would be oscilloscope and comparing between the working and non working s/w. I am somewhat at a loss on this one. |
@Di-rk : Would you mind sharing the wiring scheme? I have a FTXP35M5V1B like yourself, and a Faikin underway. Not too many people with this combination AFAIK. It's a bit confusing reading through all the threads. EDIT: I can confirm both Faikin and S21 connector are identical and the JST-EH cable (I ordered this one) fits both connectors. I ended up soldering two pcs together, as they come in a set of 5 pcs. |
Hey there, I can't tell how pissed I am from Daikin, I bought Daikin because of their easy to use local API just to find out that the shifted to a cloud solution.. and know finding out they shut down the old cloud api, and again somewhat new.. I hoped on your faikin but now I read that. Glad I read it before ordering. |
Not sure what your exact question is, but I can confirm it works flawless with my FTXP35M5V1B. Both through the web interface as well as Home Assistant (MQTT). |
sorry for my waffling, indeed that is good news ! |
There was a post on S403 here - #281 |
I seem to have an additional board placed, compared to the link @alexcf posted: I simply had an (unused) S21 connector on that board, fitting a JST-EH connector on both the board and the Faikin (1:1) did it for me... |
Looks like you need a Daikin S21 adapter board as explained here |
Hi, I just bought some of your faikin boards, they look very promising. Unfortunately I can't get any connection when connected to the S21 port on my FTXP25M5V1B9. I don't have any other wifi modules to test on these airco units.
I measured the following voltages on the S21 port (measured to pin 5 which I assume is GND):
Pin 1: 5V
Pin 2: 5V
Pin 3: 5V
Pin 4: 14V
Pin 5: 0V
I connected the faikin board dupont cables. The faikin works and connects to my WiFi network without problems, so I assume my wiring is correct, however I can not control the AC with it. It also says on the web interface that the system is off line.
Do you have any ideas on how to get it working or how I can debug this?
Thanks
The text was updated successfully, but these errors were encountered: