-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
[Request] Support for Huawei R4850G2 via SN64HVD230DR #999
Comments
there's an esphome component for connecting that way |
I think that this should not be too big of a deal but we will need someone that can write code and has the hardware. I thought about buying a Huawei PSU but I am not sure if i will actually use it. |
assuming you're the one who could write code? ;) schätz mal du würdest es easy wieder anbringen.. meins rennt schon ziemlich viel, hab aber auch einiges an ac-überschuss aus 800+1500W microwechselrichtern - mal schaun wie's dann mit weniger sonne und dafür extremeren schwankungen beim dynamischen import-preis ausschaut.. |
eeeeer, yes?! one of only two actually active contributors right now. sooo... where is your pull request? |
@schlimmchen If there is need for it, I could implement this. I don't have a Huawei PSU, but I could do some mocking on the CAN bus and at least make sure that there is nothing obvious broken before giving a build to someone to test. |
@LennartF22 Well, I am not sure if "need" is the right word here, but this is a valid request and implementing it would be highly appreciated, so I would certainly want to merge it. I would love to use the AC charging feature myself one day and using the OpenDTU Fusion CAN shield would definitely be a great plus. So please go ahead 😊 I can probably contribute some matching updates to the documentation. |
and well (again), it would be the only way to allow NRF+CMT+huaweiAC, isn't it? btw i'm thinking about getting a second huaweiAC to spread load on two phases - which a. will probably make my next feature request ;) and b. allow me to more easily test if anyone starts working on this.. |
No, as @LennartF22 is also hard at work with the SpiManager, which will eventually allow to use this combination -- as far as I understand. |
@drahdiwaberl With the new
Devices that don‘t support shared SPI buses yet still need a dedicated SPI bus. Therefore, nRF + CMT (+ W5500) + Huawei-CAN currently need 3 SPI buses, which is one too many. In the future, nRF + CMT + Huawei-CAN will work via the same SPI bus, so that one bus is completely free for 1/3 more devices, depending on whether these additional devices support sharing. Still, implementing support for ESP32’s internal CAN controller makes sense, not only because of the Fusion CAN/ISO shield, also because it’s a bit absurd that one must add an external CAN controller while the ESP32 already comes with it. Only when a second CAN bus is needed, one should have to add an additional, external CAN bus controller. @schlimmchen I will start working on the implementation next week. I just wanted to make sure that nobody is working on that yet. |
word! 🤗 also - while it's nice that they exist and are available - all these extra boards and cheap components are potential points of failure in the whole system which makes the systems less reliable and errors possibly hard to find.. |
@LennartF22 Are you far along with adjusting the MCP2515 driver for SpiManager? I started but did not get far, yet. The MCP2515 lib is a hot mess (my opinion) and I am planning to re-implement the parts that are needed to support the Huawei PSU. skippermeister's fork includes a version compatible with SpiManager, however it's unrecognizable from the original lib and I am unsure if it even works, as his TWAI implementation was broken in at least two places... Maybe I can copy'n'paste some tricky bits. |
might add this https://github.com/mjpalmowski/CAN-BUS-control-R4875G1-with-ESPHome-and-MQTT also using SN65HVD230 transceiver, but seems to have gotten further with reversing the can bus, even seems to have worked out how to identify and likely even assign IDs to multiple devices on the bus.. |
@Manos1966 pointed out that project to me as well. I will gladly take a look. For now, I am happy to be able to soon release VP203 support to talk to the Huawei PSU at all. |
Describe the solution you'd like
there's a new - potentially simpler and safer - option for adding a CAN-bus with
this extension for the Fusion board which is using a TI SN65HVD230DR
also the upcoming pcb of @swingstate #541 uses this transceiver chip
it would be nice to have the option to configure a Huawei PSU connected to this.
Describe alternatives you've considered
tried the current implemented solution with a MCP2515/TJA1050 with the Fusion Board and one other ESP-board - but got neither to work (or stopped trying due to magic smoke in the air).
so for now i'm running it without issues a SN65HVD230DR board with esphome
The text was updated successfully, but these errors were encountered: