Comments (6)
Battery agnostic precharge/contactor closing has been added to the software. https://github.com/dalathegreat/BYD-Battery-Emulator-For-Gen24/blob/main/Software/Software.ino#L206
Still needs to be tested and documented!
from battery-emulator.
Just what I wanted to suggest, let the LilyGo handle the startup too!
from battery-emulator.
We did some testing and on the battery we used the bit for LB_MainRelayOn_flag is always 0.
I changed the code temporarily so batteryAllowsContactorClosing = 1; and the precharge worked fine.
This was on an 30kWh battery.
Here is an screenshot on the relevant byte (3) from a log file.
I am not very familiar with Leaf battery and will appreciate if anyone has any ideas on what to test.
Edit:
The battery is reported as LEAF battery gen: 2
Here is some log of values:
__ OK __
Nissan LEAF battery selected
WAITING_FOR_BATTERY...
WAITING_FOR_BATTERY...
Precharge...
Negative...
Positive...
Precharge OFF...
BMS Status (3=OK): 3
Battery Idle
Power: 0
Max discharge power: 30000
Max charge power: 19000
SOH%: 9100
SOC% to Fronius: 4530
Temperature Min: 50
Temperature Max: 60
GIDS: 189
LEAF battery gen: 2
Min cell voltage: 0
Max cell voltage: 0
Cell deviation: 0
BMS Status (3=OK): 3
Battery Idle
Power: 0
from battery-emulator.
Thanks for testing @bobbo3 , you beat me to it! LB_MainRelayOn_flag wont be set to 1 unless both HV connectors are seated. Do you have both the big and the small seated?
from battery-emulator.
Thank you! I think we shorted both interlocks - the drive one and the heater one... but it is possible that we may have missed something. I will double check.
from battery-emulator.
Closing this issue as completed, many are using automatic contactor control already! 🥳
from battery-emulator.
Related Issues (20)
- BMW i3 battery reboot does not work
- Option in User_settings to set name HOT 3
- Battery not found - Fronius Primo Gen24 Plus HOT 5
- OTA handling - add controlled update using Standby/Updating states availabe on BYD protocol
- WIFI disconnects after random periods and never recovers HOT 4
- Huawei inverter HOT 6
- can protocol not working HOT 3
- MQTT sending CellVoltage values (0) before they are initialized. HOT 2
- Toyota hybrid battery support HOT 1
- Build fails in platformio HOT 1
- Github actions fail due to ESP32 randomness HOT 6
- Feature request: SD card support
- Feature request : Add Dacia Spring Battery support
- e-GMP show positive Amp/Volt + battery charging - when discharging HOT 1
- Integration SAFT Batterie HOT 2
- Work with Model 3: RWD - China manufactured pack - LFP cells - Part number 1567439-00-C HOT 1
- BMW i3 battery not working HOT 12
- Hyndai kona 64 battery HOT 1
- Sort order for events in 6.2.1 HOT 1
- Best set AC coupling Dala HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from battery-emulator.