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

help wanted #631

Open
lorenzo6201 opened this issue Dec 3, 2024 · 8 comments
Open

help wanted #631

lorenzo6201 opened this issue Dec 3, 2024 · 8 comments

Comments

@lorenzo6201
Copy link

We are a Romanian company specializing in assembling LFP batteries, primarily utilizing the B2A24S20P BMS. Currently, we are encountering a challenge in configuring 80 BMS units consecutively. Performing this task via the Android app is both time-consuming and prone to human error.

Our factory management application already stores the required parameters in a database, and we aim to develop an automated solution for configuring the BMS via Bluetooth. Although we have explored available online documentation, our attempts have not been successful.

As a proof of concept, we are using an ESP32 preloaded with the necessary parameters to connect to the BMS and push the configuration. However, the parameters are neither saved nor modified within the BMS, and we do not hear the usual confirmation beep associated with the Android app configuration process.

We would greatly appreciate assistance from an engineer to resolve this issue. For inquiries, please contact us via WhatsApp at +40 726 591 154 or email.

Thank you for your support.

@syssi
Copy link
Owner

syssi commented Dec 25, 2024

Do you still need some support?

@lorenzo6201
Copy link
Author

I do

@lorenzo6201
Copy link
Author

We managed to push the settings , but we need few more things.
First thing would be changing the bms bluetooth name and the settings password.

The password is generated by our management app and is a random set of caracters tied to the serial number given to the product.
Same thing applies to the name , is generated by software and usual contains the last six caracters of the serial number.

Currently the name and password are changed manualy and that is taking way to much time. Also having a mixed firmware where we could conect via BLE or serial for the PB series would be fantastic. We could suport this financialy if necesary.

@syssi
Copy link
Owner

syssi commented Dec 25, 2024

Could you make more explicit which features do you miss?

@lorenzo6201
Copy link
Author

Changing bms Bluetooth name and settings password.

@lorenzo6201
Copy link
Author

Could you make more explicit which features do you miss?

I would apreciate if we discuss it over whatsapp. On github I miss the notifications.

@supriik
Copy link

supriik commented Dec 25, 2024

Review BMS Documentation
Ensure you have the complete technical documentation for the BMS. This typically includes command structures, data formats, and specific Bluetooth services/characteristics used by the device. If the documentation is insufficient, I recommend contacting the BMS manufacturer for additional guidance.

  1. Analyze Bluetooth Communication
    It’s crucial to understand how the Android app communicates with the BMS. Use tools such as nRF Connect or similar BLE sniffers to observe the communication between the Android app and the BMS. This will help you replicate the sequence of commands and data structure required for successful configuration.

  2. Debug the ESP32 Code
    Confirm that the ESP32 is correctly configured for BLE communication.
    Ensure the commands are formatted and sent in the correct order. Any deviation can cause the BMS to ignore the configuration.
    Test with minimal configuration steps first to verify that the connection is working and data is being sent correctly.

  3. Check for Command Confirmation
    The missing confirmation beep suggests that the configuration process is not being successfully finalized. Verify if the BMS requires a specific acknowledgment (e.g., an “ACK” response or a closing command) after receiving parameters.

  4. Enable Logging and Debugging
    Log all BLE communication attempts to identify any issues in real time. Compare the log with the communication pattern from the Android app to pinpoint discrepancies.

@lorenzo6201
Copy link
Author

Easier said that done. I have no ideea how to do all that.

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

3 participants