kolins-cz / smart-bms-bluetooth-esp32 Goto Github PK
View Code? Open in Web Editor NEWProgram to read out and display data from xiaoxiang Smart BMS over Bluetooth Low Energy
Program to read out and display data from xiaoxiang Smart BMS over Bluetooth Low Energy
I managed to get a connection and the code reports the voltage for each individual cell but for some reason I cannot het the basic data
eg : Volts , Amps , Capacity Remain Ah - they all show 0.000 value.
Is there a way to verify that the data is accepted / incoming ?
Wenn ich zu einer 200Ah Batterie verbinde, erhalte ich ungültige Werte für die Kapazität, da da die Variable CapacityRemainAh mit uint16_t zu klein dimensioniert ist.
Sie sollte mit uint32_t in den Files mydatatypes.h
Zeile 25 uint32_t CapacityAh;
und BMS_process_data.ino
Zeile 59 output->CapacityRemainAh = ((uint32_t)two_ints_into16(data[4], data[5])) * 10;
deklariert werden.
If I connect to a 200Ah battery, I get invalid values for the capacity, because there the variable CapacityRemainAh with uint16_t is dimensioned too small.
It should be defined with uint32_t in the files mydatatypes.h
Line 25 uint32_t CapacityAh;
and BMS_process_data.ino
Line 59 output->CapacityRemainAh = ((uint32_t)two_ints_into16(data[4], data[5])) * 10;
must be declared.
Hello, I can connect to the bms with the ordinary esp32wroom development board and the ESP32 ARDUINO PACKAGE2.0.3 burning program, but there is an error and I cannot read the data,
assert failed: heap_caps_free heap_caps.c:339 (heap != NULL && "free() target pointer is outside heap areas")
Backtrace:0x40083639:0x3ffc8f500x4009254d:0x3ffc8f70 0x40097525:0x3ffc8f90 0x40083972:0x3ffc90c0 0x40097555:0x3ffc90e0 0x4017ed75:0x3ffc9100 0x4017fc1c:0x3ffc9120 0x400d276d:0x3ffc9140 0x400d3483:0x3ffc9190 0x400d351e:0x3ffc91d0 0x400df739:0x3ffc91f0
and I can not compile with arduino package 1.0.6. May I ask is it my choice of development board or the choice of esp32 arduino package wrong or other problems? Hope to hear from you. Thank you.
hello for st7735 and esp32 what pin for plug st7735 ???or ili9341 2.4
esp32 lite
thanks
Hi, I've been looking for information on ant-bms for a long time. I am needing to use the BLE to use with the micropython and esp32. The only thing I could get so far is to use the command 0xdbdb00000000 and send me 20bytes in response. In other ble app i can read few more bytes. Could you tell me if these commands work here? Because I tried a couple of status from here and I don't get any notification. Greetings and I hope someone knows. Greetings
// const char *ssid = "kolin2";
// const char *password = "xxxxxx";
Just in case you didn't change it already :)
Is this code working? I'm trying to compile it under PlatformIo and the re seems to be a lot of invalid includes.
Hi Kolinz,
Your old code is working great with my old BMS; however, unfortunately, it does not work 100% with the newer BMS versions.
printCellInfo(); shows the correct data, but calling printBasicInfo(); gives an "Invalid packer received" error.
I guess that the new BMS units are running an updated protocol?
Do you maybe know more about this and how to fix it?
Thank you.
Not an issue at all, but I'm looking to integrating a LifePo4 battery from a solar system into my home automation. This could be most easily done by sending the data gathered by the ESP32 to and MQTT server.
Any idea if this could be done easily? Unfortunately I'm no coder at all ;)
Thanks in advance!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.