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

@txubelaxu Hi! I'm trying to understand your project and if I understood correctly, you connect the inverter to the battery via rs485 via CAN bus and simultaneously receive data from the inverter also via rs485 or is it not quite like that? #564

Open
txubelaxu opened this issue Aug 8, 2024 · 8 comments

Comments

@txubelaxu
Copy link

          @txubelaxu Hi! I'm trying to understand your project and if I understood correctly, you connect the inverter to the battery via rs485 via CAN bus and simultaneously receive data from the inverter also via rs485 or is it not quite like that?

Originally posted by @vpritulin in #464 (comment)

Hi @vpritulin!!

The project was about to add to "esphome-jk-bms" original project the compatibility of JK-PB via internal RS485 ports. At the beginning, I tried to "listen (only) to" the RS485 network to sniffing information across the network. I got it.
But I saw that some information was missing in the network (device info frame type 03 of the JK-BMS that was acting as MASTER 0x00)
So, I changed the strategy: I tried ESP32 to acting as MASTER. So, I moved my jk-bms to address 0x01 and 0x02.
The state of the project is that I have got READ & WRITE almost all paramethers (missing RCV Time and RFV Time). I have inserted the capacity to "broadcast" to all the BMSs in the RS485 network one setting when you change it. This is a "broadcast" setting that you can dissable in the config, of course.

I prefer RS485 to BT because it uses less resources, BT is free to connect with mobile...

Special mention to "esphome-jk-bms-can" project. Now, in the "development" branch there is an integration to @txubelaxu "esphome-jk-bms" project. So, with this two projects together, yes, we have an ESP32 between the Inverter and BMSs. :-)

Welcome!!

@vlxxdev
Copy link

vlxxdev commented Aug 8, 2024

@txubelaxu Maybe I didn't fully understand your project, but I have an inverter with RS485 support and I would like to connect the battery to it via CAN bus and connect the ESP to RS485 so that I could immediately receive data from the inverter and battery. So that I don't have to use RS232 to receive information about the inverter and can get by with 1 ESP instead of 2.

@txubelaxu
Copy link
Author

txubelaxu commented Aug 8, 2024 via email

@vlxxdev
Copy link

vlxxdev commented Aug 8, 2024

I thought to use such a connector, connected to the inverter on the RS485 connector, and then 1 cable to the BMS, where there may be a bus, and the second in parallel to the esp32 through the RS485 to TTL converter
image

@txubelaxu
Copy link
Author

So, your inverter have not a CAN bus, have it?

Those connectors can be used, as far as the impedance in the network complies the RS485 specification. That can see when connecting into the system. If the cable lengths are not too long I think it should work. But as said, you only know when connecting...

@vlxxdev
Copy link

vlxxdev commented Aug 12, 2024

@txubelaxu Hello! My inverter has a CAN bus, but I would like to connect the inverter to the battery via the CAN bus. With the BMS, receive data on the ESP and in parallel from the inverter via the CAN bus send information about the inverter, using only 1 ESP and not using the RS232 connector

@txubelaxu
Copy link
Author

txubelaxu commented Aug 12, 2024 via email

@vlxxdev
Copy link

vlxxdev commented Aug 12, 2024

@txubelaxu Maybe another branch? I didn't find the developer

@txubelaxu
Copy link
Author

txubelaxu commented Aug 12, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants