chadhouser
New Member
- Joined
- Nov 13, 2019
- Messages
- 12
Part 1 finished today. Working on Part 2.
Eh, not worth it then. What I have in mind would put the Pi in easy cable distance from the BMS, and wired connections tend to be more reliable, but... The concept for the system is coming together nicely, now to convince the CFO...would involve de-soldering the bluetooth chip and connecting a Serial TTL device.
Part 1 finished today. Working on Part 2.
Great project... was exactly what I was looking for to get my bms data online... Thanks for sharing! I was running a nissan leaf battery at 6P14S with just the single bms for the whole battery, and no remote monitoring... I now have a single bms running on 14s am planning on converting the rest of my cells to series with 6 separate bms.. the remote monitoring now is great for peace of mind... and not having to make a trip into my power shed to use my phone to log into the bluetooth... every other function in my power shed has been online for a while now.. the bms is the last to go...
Part 1 finished today. Working on Part 2.
AA55AAFF021D102A102A1027102A102A1028102810281026102910281029102C00000000000000000000000000000000000000000000000000000000000000000000000000000000000064025317C0025306110008C78E0008572000150015001400140014001401010003E8001701000000000D102C09102610280D00000073006F02A70000000011620B00 |
AA55AAFF021D102A102A1027102A102A1028102810281026102910281029102C00000000000000000000000000000000000000000000000000000000000000000000000000000000000064025317C0025306100008C78E0008572100150016001400140014001401010003E8001701000000000D102C09102610280D00000073006F02A70000000015620B00 |
AA55AAFF021D102A102A1027102A102A1028102810281026102910281029102C00000000000000000000000000000000000000000000000000000000000000000000000000000000000064025317C0025306110008C78E0008571F00150016001400140014001401010003E8001701000000000D102C09102610280D00000073006F02A7000000000D620B00 |
This is nice. I'm adopting it and I'll edit it to also post to emoncms.Okay, so finally got this working (spent most of the weekend learning how to code python!) Basically I couldn't get node-red to run the files because it's installed in a docker container. I'm sure there is a way - I couldn't find it. So instead I changed your program to post the values to MQTT. I still need to add it as a service and figure out how to connect to bluetooth on startup, but this is running well so far. I also added some error handling as I now run it on a 5 second loop and somehow it gets dodgy data every couple of hours and was crashing.
I've attached my file - you'll need to edit it for your MQTT server settings. I'm sure there are lots of things that could be done better... learning here! You'll also need to install paho mqtt for python 2.7.
[bluetooth]# pair AA:BB:CC:B1:23:45
Attempting to pair with AA:BB:CC:B1:23:45
Failed to pair: org.bluez.Error.ConnectionAttemptFailed
info AA:BB:CC:B1:23:45
Device AA:BB:CC:B1:23:45
Name: BMS-ANT20S
Alias: BMS-ANT20S
Class: 0x001f00
Paired: yes
Trusted: yes
Blocked: no
Connected: no
LegacyPairing: no
UUID: Serial Port (00001101-0000-1000-8000-00805f9b34fb)
connect AA:BB:CC:B1:23:45
Attempting to connect to AA:BB:CC:B1:23:45
Failed to connect: org.bluez.Error.Failed