Replies: 4 comments 1 reply
-
it's very strange, the baud rate is very low (9600) and i found impossible that the hardware is not able to handle it. Have you tested with SNET (PC), an 232TTL and M5STACK RS-485 ? That could confirm that it's not an hardware related issue. Imho it could be something related to the software, i really don't know how espHome handle concurrency (and/or multithreading, reentrancy) and how high latency processes (wifi, web) could impact serial ones. Double check if the conf is the latest used and try to remove logs. Haven't you ever noticed comm problems between samsung devices? |
Beta Was this translation helpful? Give feedback.
-
The communication between the air conditioners is working perfectly, and I am able to send commands without any issues using the S-NET system. However, I currently do not have another TTL to RS-485 adapter to test with. The only adapters I have available are a USB to TTL adapter and a USB to RS-485 adapter. Is there any way I can use these adapters to help identify the source of the problem? If the issue isn't related to network load, it may be caused by voltage on the RS-485 line disturbances affecting the M5STACK ATOM RS-485 converter, as I understand it lacks built-in protections against such disturbances. Thank you for your assistance. |
Beta Was this translation helpful? Give feedback.
-
I was talking about voltage disturbances from the RS-485 line. |
Beta Was this translation helpful? Give feedback.
-
I connected PC -> USB to TTL -> M5STACK RS-485. As expected, the S-NET could only read data and was unable to send commands. This confirms that the issue lies with the M5STACK RS-485 adapter. I’ve decided that I need to purchase a high-quality TTL to RS-485 converter with protections on the RS-485 channel. While M5STACK offers an isolated RS-485 converter with protection, I’d prefer to invest in Waveshares high-end TTL to RS-485 converter. I already have another Waveshare converter that has lasted for years without issues. Even though some of Waveshare’s lower-end USB to RS-485 converters like this one failed quickly, the high-end model has proven to be reliable. Thanks again for your help. |
Beta Was this translation helpful? Give feedback.
-
Peace and blessings,
Two days ago, without any configuration changes, ESPHome updates, or physical adjustments to the cables, I have been unable to send commands to control the air conditioners. This issue occurs both through Home Assistant and the ESPHome web interface, though I am still able to receive data regarding the air conditioners' status without any problems.
I will note that very rarely, I do manage to send a single command to the air conditioners.
I suspect that the RS-485 adapter may have been damaged due to the load (I have 21 indoor units and two outdoor units). In the past, when I used S-NET, my USB to RS-485 adapters would fail until I purchased this model, which has been reliable. Even now, I can send commands through S-NET without issues.
I tried connecting the M5STACK RS-485 directly to another RS-485 converter to verify that data transmission and reception were working correctly, and they did. However, I still suspect that the M5STACK struggles to handle the load when dealing with the heavy traffic from the air conditioning units.
I also tried several troubleshooting steps, including downgrading the ESPHome version, using the ESPHome dev version, resetting the board to default, restarting the air conditioners, and disconnecting and reconnecting the cables, but none of these helped.
Could you help me pinpoint the source of the problem?
(I am already considering buying an ESP32 board with connection Ethernet like this one and connecting it to a robust TTL to RS-485 converter, like this, to create a stable wired setup that will last for years.)
Beta Was this translation helpful? Give feedback.
All reactions