Replies: 2 comments
-
You could try to use this project and enable the log level If you call the |
Beta Was this translation helpful? Give feedback.
-
Hello. |
Beta Was this translation helpful? Give feedback.
-
You could try to use this project and enable the log level If you call the |
Beta Was this translation helpful? Give feedback.
-
Hello. |
Beta Was this translation helpful? Give feedback.
-
Hello
I used these files as a basis and created a program in C++/Qt to communicate with the bms board.
Everything works, but there are only two commands in those files - COMMAND_CELL_INFO and COMMAND_DEVICE_INFO
commands are formed into a stream of bytes by the function bool JkBmsBle::write_register(uint8_t address, uint32_t value, uint8_t length) (line 1224)
I get the answers to them in function void JkBmsBle::decode_(const std::vector<uint8_t> &data) (line 409)
for me, the switch works on frame_type = 0x01 (followed by a call to this->decode_jk02_settings_(data); (line 418) or frame_type = 0x03 followed by a call to this->decode_device_info_(data); (line 429)
For some reason frame_type = 0x02 does not come....
Is there a complete description of this protocol?
This repository is the only thing I found that somehow works.
PS my board is bms B2A8S20P
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions