Comments (13)
@JHendrikz , did you enable the "#define CAN_BYD" in the Software.ino? After doing this, it will send the startup CAN data once, and it will re-send it incase it sees 0x151 with 0x01 in frame1.
Also, did you enable battery in the inverter settings? Not sure if the Goodwe inverter needs to be configured before starting to act on the CAN messages.
from battery-emulator.
Hi Dala, thanks for your feedback and yes running the CAN_BYD enabled but still have a battery comms error on the inverter setup app.
Looks like it might be something at the inverter side so I will do some more investigation and let you know, I will note that the Goodwe seems to be quite finicky/glitchy with its initial configuration setup.
One question I had was that currently I have isolated the battery output (to make sure the comms are working). I imagine the battery comms should still work with the battery isolated from the inverter? It would be somewhat of a safety risk if this wasn't the case.
Will keep you posted on what I find.
from battery-emulator.
@JHendrikz try the latest released v2.1.0 version, it now makes the LED on the board blue incase the CAN wiring is incorrect! https://github.com/dalathegreat/BYD-Battery-Emulator-For-Gen24/releases/tag/v2.1.0
In your log I don't see any CAN messages sent from the LilyGo board, so I suspect you might have wiring issues
from battery-emulator.
Hi Dala,
The CAN wiring was correct, I just sent hadn't sent the startup CAN initialization data. The inverter also required the battery to be connected to the inverter before the comms would show up as functional. Found two bugs with the BYD code as shown below:
BYD_110.data.u8[4] = (max_target_charge_power >> 8);
BYD_110.data.u8[5] = (max_target_charge_power & 0x00FF);
Should be max_target_discharge_current:
BYD_110.data[4] = (max_target_discharge_current >> 8);
BYD_110.data[5] = (max_target_discharge_current & 0x00FF);
and
BYD_110.data.u8[6] = (max_target_discharge_power >> 8);
BYD_110.data.u8[7] = (max_target_discharge_power & 0x00FF);
Should be max_target_charge_current
BYD_110.data[6] = (max_target_charge_current >> 8);
BYD_110.data[7] = (max_target_charge_current & 0x00FF);
max_target_charge_current = (max_target_charge_power*10)/LB_Total_Voltage;
max_target_discharge_current = (max_target_discharge_power*10)/LB_Total_Voltage;
Other than that the GW6000-EH appears to be operating as expected, will monitor for any issues/bugs going forward. Thanks once again @dalathegreat for the excellent bit of software.
from battery-emulator.
Thanks @JHendrikz , merged PR #38 ! Please let me know if you still have any feedback 😁
from battery-emulator.
Following up on this; @JHendrikz do you have a working installation with a GoodWe inverter on dalas system? Would be interested in chatting a bit, if you don't mind?
from battery-emulator.
Hi @GubbJVL, happy to help with your GoodWe installation.
Have been running mine on and off for about 2 months now. Currently chasing a bug on the SOC% not displaying correctly on the SolarGo app but other that it is working pretty well.
I'm running a version of Dala's code, however I have rewritten in a FreeRTOS environment so not exactly the same. Let me know how far you are with your installation or what you need particular help with and we can go from there.
from battery-emulator.
2 months - good. Where are you located, if I may ask? And are you on Dala's patreon Discord channel?
I'm quite early so far. Still haven't decided on inverter; Solax or GoodWe. GoodWe fits all the boxes, but seems very few have done the installations. I'm more confident now, knowing there's at least one!
from battery-emulator.
Down in New Zealand and not on discord at the moment. The setup with goodwe was relatively straight forward and easy to source here in NZ.
- Follow the goodwe inverter installation manual up to the point when you plug the comms and battery connector terminals in
- Unsolder the canbus terminating resistor on the Lilygo board
- Connect both the BMS canbus and inverter canbus to the board
- Double check your code to make sure the contactors will isolate under the required fault conditions
- Plug in the battery connector (make sure the terminals are not live)
- Double double check all your wiring
- Switch your battery breaker on
- Enable the contactors and the inverter will configure and connect if all has gone well.
- Configure the inverter with the battery connected (this is where the goodwe software can be a little glitchy)
That's more or less the approximate process, the inverter setup is pretty glitchy so once you get to that point I can provide a bit more step-by-step info/videos.
from battery-emulator.
Goldmine! Much appreciated! Will get back to you whenever I bump into anything :) Again; Much appreciated!
from battery-emulator.
Hi @JHendrikz , I am also in NZ (Hamilton) and was hoping to reach out and see if you hade some time to help. I have gone as far as I can with my knowledge but still haven't got this working. I am using a goodie 10kw ET series, Nissan Leaf 24 battery and the coding and lilly go as recommended on Dalas threads. I have followed his guides very closely.
I can run the battery through the goodwe in manual define mode (no BMS) but this is obviously a bit risky, I only make the point to confirm battery is energised fine and supplying voltage. The lily glows green when connected to the leaf battery, goes blue if I unplug it, so I think the can from the battery is working. I have tried both the BYD modbus and the CAN options in Dallas setup file but both options present with what appears to be communications errors CRC check error, packet length etc. And when trying to configure the battery to BYD HVM or HVS in the software the inverter informs communications error. Any ideas? Can get in direct contact with you via email?
Update 17/10/23 - @JHendrikz , false alarm mate, I blundered on and now have a working system. Its working quite well actually with Goodwe GW10KL-ET. Ultimately it was an amateur mistake that was holding me up, Thanks to you and @dalathegreat too for the guidance. Cool stuff!
Thanks
Regards
Kane
from battery-emulator.
9. Configure the inverter with the battery connected (this is where the goodwe software can be a little glitchy)
That's more or less the approximate process, the inverter setup is pretty glitchy so once you get to that point I can provide a bit more step-by-step info/videos.
Hi J
Hi @JHendrikz , I am also in NZ (Hamilton) and was hoping to reach out and see if you hade some time to help. I have gone as far as I can with my knowledge but still haven't got this working. I am using a goodie 10kw ET series, Nissan Leaf 24 battery and the coding and lilly go as recommended on Dalas threads. I have followed his guides very closely.
I can run the battery through the goodwe in manual define mode (no BMS) but this is obviously a bit risky, I only make the point to confirm battery is energised fine and supplying voltage. The lily glows green when connected to the leaf battery, goes blue if I unplug it, so I think the can from the battery is working. I have tried both the BYD modbus and the CAN options in Dallas setup file but both options present with what appears to be communications errors CRC check error, packet length etc. And when trying to configure the battery to BYD HVM or HVS in the software the inverter informs communications error. Any ideas? Can get in direct contact with you via email?
Update 17/10/23 - @JHendrikz , false alarm mate, I blundered on and now have a working system. Its working quite well actually with Goodwe GW10KL-ET. Ultimately it was an amateur mistake that was holding me up, Thanks to you and @dalathegreat too for the guidance. Cool stuff!
Thanks Regards Kane
Hey Kane,
Do you want share your amateur mistake with another amateur? :-)
I just hooked up a Tesla model 3 battery to my Goodwe GW10KL-ET but I can't get the communication with the inverter up.
Contactors are closing fine, but BMS communication has a status 'Abnormal'.
Last week I got it running for a few hours as a 'Lead acid' battery (detected by Goodwe) and then all communication dropped.
Kind Regards,
Steven
from battery-emulator.
Hi @ssamoy-poulpharm ,
Yeah sure thing. A number of contributing factors actually as follows;
- As per Page 4 of the manual, item 5 is shown as having either a cover or a dual gland plate with another BMS port. Well my inverter had two ports labelled as BMS! The BMS Lan port I was initially using was on the same gland plate as the smart meter connection and I never got anything out of it...... after some hair pulling I realised the inverter had another port labelled BMS and this one was next to the DRED, so took that gland plate off and found another LAN port which actually worked!
- My Lillygo go was not dual CAN out, it had CAN on the top and 485 on the bottom and so I had interpreted from the goodwe manual page 16 showing the pin outs including 485 to mean that I could use 485 on this inverter as long as connecting to the right pins. I tried everything to get 485 working and couldn't, have learnt its not possible with this inverter, you need to use CAN
- Need to remove CANBUS terminating resistor as per other guidance on this site and connect both the inverter and the battery on the same CAN terminals on the Lillygo.
- After sorting the above, it worked and I was able to configure BYD HVM (or HVS) battery in the Solar and all other settings seem to be working fine.
I hope this helps!
Regards
from battery-emulator.
Related Issues (20)
- vs code
- Hooking This Up While Still In The Car HOT 3
- Canbus failure on Sungrow SH10RS HOT 7
- Feature request: 800 Volt architectures. HOT 5
- MQTT sensor names in 5.3.0 changed HOT 4
- more than one battery HOT 6
- Testing Kostal Plenticore HOT 9
- Differentiation between multiple emulators in MQTT integration HOT 1
- Code quality - Adding Linting rules HOT 2
- CAN sending breaks when inverters change baud rate HOT 4
- Feature request: Batteries in parallel HOT 2
- Solis single phase hybrid inverter possible? HOT 4
- Solax X3 Ultra compatibility? HOT 6
- Standalone Battery Check HOT 1
- Modbus eats too much resources, causes CAN to deadlock HOT 4
- Feature request: Add ability to save WiFi settings to flash HOT 1
- Feature request bucket: MQTT HOT 3
- Feature request : Add support for Volkswagen MEB BMS HOT 5
- Connection schema for Leaf+Sungrow SH10RT HOT 2
- No contact between two Lillygo 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.