Open txubelaxu opened 2 months ago
@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.
BMS1 <----> | BMS2<-----> |
---|
-----------> ESP32 <-----------------> INVERTER
(RS485) (CAN)
But "esphome-jk-bms-can" project has different posibilities that I do not know.
El jue, 8 ago 2024 a las 21:06, Vladislav @.***>) escribió:
@txubelaxu https://github.com/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.
— Reply to this email directly, view it on GitHub https://github.com/syssi/esphome-jk-bms/issues/564#issuecomment-2276479064, or unsubscribe https://github.com/notifications/unsubscribe-auth/BFHIJMDQF5FCO7SIXE6EJDTZQO6TBAVCNFSM6AAAAABMHB6TI2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZWGQ3TSMBWGQ . You are receiving this because you were mentioned.Message ID: @.***>
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
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...
@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
take a look to the "development" branch of "esphome-jk-bms-can" project. It uses CAN between Inverter and ESP32, and RS485 between ESP32 and BMSs.
El lun, 12 ago 2024 a las 14:09, Vladislav @.***>) escribió:
@txubelaxu https://github.com/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
— Reply to this email directly, view it on GitHub https://github.com/syssi/esphome-jk-bms/issues/564#issuecomment-2283799493, or unsubscribe https://github.com/notifications/unsubscribe-auth/BFHIJMD5V62PUSJNKXVJ6FLZRCQWHAVCNFSM6AAAAABMHB6TI2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBTG44TSNBZGM . You are receiving this because you were mentioned.Message ID: @.***>
@txubelaxu Maybe another branch? I didn't find the developer
It is another project. There are 2 projects: esphome-jk-bms and esphome-jk-bms-can
Here the link to esphome-jk-bms-can --> https://github.com/txubelaxu/esphome-jk-bms-can/
El lun, 12 ago 2024 a las 15:51, Vladislav @.***>) escribió:
@txubelaxu https://github.com/txubelaxu Maybe another branch? I didn't find the developer
— Reply to this email directly, view it on GitHub https://github.com/syssi/esphome-jk-bms/issues/564#issuecomment-2284051242, or unsubscribe https://github.com/notifications/unsubscribe-auth/BFHIJMEGYYR24W5SLMTK4BTZRC4XZAVCNFSM6AAAAABMHB6TI2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBUGA2TCMRUGI . You are receiving this because you were mentioned.Message ID: @.***>
Originally posted by @vpritulin in https://github.com/syssi/esphome-jk-bms/issues/464#issuecomment-2276331029
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!!