-
-
Notifications
You must be signed in to change notification settings - Fork 169
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
Control the BMS via serial interface #20
Comments
@diybateriaslifepo4 We are talking about this value: https://github.com/syssi/esphome-jk-bms/blob/main/components/jk_modbus/jk_modbus.cpp#L135 If we change the value from |
I am trying to get jk me information about this communication, but they insist that I must use their adapter to rs485 and their documentation for communication by rs485, I do not know if you already have it, how could I send it to you? |
You could attach the docs here by drag&drop. |
BMS CAN instruction.pdf I see that it is the same information that you have in the readme... |
The "BMS 485 instruction.pdf" describes the implemented protocol and doesn't contain new details. |
hi, how to write settings via serial? Thanks |
This compoent doesn't support write operations right now. It's also unconfirmed it's possible or not. |
have you been able to try this? I would do it but I don't have much idea about programming... Thanks for your job |
I will give it a try but my powerwall isn't assembled at the moment so my feedback / testing will take a few weeks. |
ok, there is no rush, in case you don't know you can turn on the bms with a power supply, with about 40v, only putting the negative in b0 & B- and positive in b+, without cells |
Any update for such control ? :) ... .Now my JK BMS runs like a charm thanks your component, I would like to see these switch really working.... would be also amazing :) |
I have tried to do it and it has not worked, I have tried creating an external component, changing the value to bms, bluetooth, gps and computer, and not able to change values in any way |
The switch entities are now able to send some instructions to the BMS:
Is somebody willing to test the new feature? |
Sure I wil ltest right now |
Ok ... seems to not working for me :( .... I can see the OFF command sent ... but the switch is returning to its initial state (ON) |
Same for me. |
I tried whatever the password is entered before or not .... switch control does not work for me... |
I talked to the seller of my BMS and he told me the serial interface is read only. :-( I fear it is the truth. |
Damned :( |
I just checked the protocol pdf I got, effectively, we car read R 0 X 84 The current data 2 Hex 10000 (10000-11000) * 0.01 = 10.00), a (discharge) in Read only :( :( .... what's a pity. Maybe time to change them into binary sensor so ? |
I cannot follow / I didn't understand. Could you rephrase your statement? :-) |
I mean if it's only in read only .... no need to define them in switch but more in binary sensors ? |
Yes. I will convert the switches into binary sensors soon and yes the sign of the |
FYI: #50 |
I've converted the switch into binary sensors: #51 |
The strange thing is that they told me that the mosfets could be controlled from the gps, and the gps uses the same serial interface... |
Do you know the exact product (GPS) I've to buy? As soon we have two devices talking to each other the communication can be captured easily. I've captured the traffic between the bluetooth module and the MCU already. I had the hope the same protocol is used here but it looks like this isn't the case: #49 Funny thing: The bluetooth password (123456) isn't passed to the MCU at all. It's used to unlock the bluetooth module but it's not part of the traffic between the bluetooth module and the MCU of the BMS. |
tomorrow I ask the distributor, to see if I can ensure the functions of the GPS, I was going to send one pars test, but he told me that not all the functions would work in Spain, because it is designed to work in China |
I asked my seller (HankzorBMS Store) about connecting an GPS/GSM device and he told me I need a customized version of the BMS. |
Custom firmware ? or also hardware modified ? |
In general the seller wants to sell 1000 pieces of a special BMS version. The difference will be the firmware only. I don't think we will receive an alternative/updated firmware ever. |
sure enough, my dealer is now telling me that the port is read only, sorry 😭 |
The minimum quantity for customized devices is 100. |
It's 99 more that I need :) :) ... Any way are the UVP? UVPR, LVP, LVPR writable ? Coz we could fake charging/discharging by this way ? |
I think UVP, UVPR, LVP and LVPR can be written/controlled via BLE. Whats the goal of faking charging/discharging? I think I didn't get the point. |
By setting UVP=UVPR=LVP=LVPR is disabling charging/discharing de facto |
No write operations are possible via the serial interface. We have to use BLE to control the device. |
Hello Sebastian, will you try to connect the Voltronic inverter to an esp32
that in turn speaks via bluetooth with the jk? Perhaps it's the way to talk
between them.
|
I've implemented a BLE verison of this component a few days ago: https://github.com/syssi/esphome-jk-bms/blob/main/esp32-ble-example.yaml The switches ( |
I will close this issue because it cannot be solved. I assume we must accept the serial connection is "read-only". |
|
@Wiebo Why do you think so? :-) |
The checksum of this line: Still nothing changed though... |
Thanks for your feedback! Too bad it's not working anyway. Did you try different frame sources (f.e. GPS)? |
Yes, but also looking into command code 0x5, but don't really understand what they mean with that chinglish that's put into the manual... If i make any progress i'll post it here. The manual clearly states these registers as R/W, but don't know if it's only for BLE |
Follow-up: #19
@diybateriaslifepo4 @rem72
The text was updated successfully, but these errors were encountered: