Skip to content
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] configurable HW-SPI (for Huawei CAN and CMT wireless module) #605

Closed
mager33 opened this issue Jan 13, 2024 · 14 comments · Fixed by #1144
Closed

[Request] configurable HW-SPI (for Huawei CAN and CMT wireless module) #605

mager33 opened this issue Jan 13, 2024 · 14 comments · Fixed by #1144
Labels
enhancement New feature or request

Comments

@mager33
Copy link

mager33 commented Jan 13, 2024

Is your feature request related to a problem? Please describe.

Both use the same HW SPI

Describe the solution you'd like

Make HW-SPI configurable for each device.

Describe alternatives you've considered

Hard-assign HW-SPI 2 to CMT and HW-SPI 1 to Huawei and disable other modules the require SPI, like display

Additional context

No response

@mager33 mager33 added the enhancement New feature or request label Jan 13, 2024
@gitisgreat2023
Copy link

Its an abstract request.
You're interested that the Huawei can be used together with HMT/HMS Hoymiles, right? (those need the CMT module)

Currently only the HM series can be combined with the Huawei.

@mager33
Copy link
Author

mager33 commented Jan 22, 2024 via email

@gitisgreat2023
Copy link

Reading through the software issue here and this I'm wondering whether its feasible to get the software fixed...

@mager33 I don't get how this solution works. Lets say take PCB solutions like on akkudoktor (for example this PCB or this one.
How do they need to be modified? Those designs also use a CAN chip, aren't they? Whats the difference then and why does it solve the problem?!

@mager33
Copy link
Author

mager33 commented Jan 23, 2024 via email

@gitisgreat2023
Copy link

@mager33 yeah, but in those applications the built in CAN controller of the ESP32 is used for the Pylontech communication.

@mager33
Copy link
Author

mager33 commented Jan 23, 2024

The Pylontech has CAN and RS485, so we could free the CAN-bus.
And if the library can use both CAN methods we could add a configuration option: (a) CAN via SPI and external controller and (b) CAN via built-in controller

@gitisgreat2023
Copy link

Which interface is then used to steer the RS485? Some general IO pins of the ESP32?

@mager33
Copy link
Author

mager33 commented Jan 24, 2024 via email

@gitisgreat2023
Copy link

Relevant discussion here on adding an ethernet controller via CAN...

@mager33
Copy link
Author

mager33 commented Jan 26, 2024 via email

@gitisgreat2023
Copy link

Fully agree.

@krissfr
Copy link

krissfr commented Feb 29, 2024

Pylontech can use UART protocol like the JKBMS, and i don't think people will use JKBMS and Pylontech a the same time (and if needed, esp32 has 3 UART controllers).
Pylontech using uart is very used with esp devices :
https://esphome.io/components/pylontech.html
https://github.com/irekzielinski/Pylontech-Battery-Monitoring

So if Pylontech use the UART communication, the Huawei charger can use the CAN bus of the esp, and people can use other SPI for NRF and CMT tranceiver.

@AndreasBoehm
Copy link
Member

I create an pull request to make huawei usable together with HMS: #1144

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
4 participants