Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Finished my solar powerwall build with 812 cells
#11
(07-09-2019, 11:04 AM)stevelectric Wrote: Hi DomingoRP, I wrote a small python TCP socket server which communicates with the BMS over the Raspberry's built-in bluetooth module. It is basically in a proof of concept state but working fine. The logging and charting happens in my smart home Raspberry running a german open source thing named FHEM.

Edit: I just published the source here


Thank you for uploading the source code.  Do you have any stability issues with your program?  I programmed mine using the bluepy library, and I have to stop/start the bluetooth service to keep it working reliably.
Modular PowerShelf using 3D printed packs.  40kWh and growing.
https://secondlifestorage.com/t-AJW22-s-...PowerShelf
Reply
#12
Pretty stable I'd say, disconnects did happen but seldom.
Currently it looks like this, continously running since a restart which was due to hardware reasons.

Code:
root       299  0.0  0.9   7200  May13  54:22 /usr/lib/bluetooth/bluetoothd
root      1031  0.0  3.0  49772  May13  54:37 python3 bmstcp.py A4:C1:38:0A:DD:AA 9998
root      1104  0.0  3.1  49772  May13  57:27 python3 bmstcp.py A4:C1:38:0A:7B:B3 9997
root      1169  0.0  3.0  49776  May13  58:56 python3 bmstcp.py A4:C1:38:0A:E3:B3 9999
root      1182  0.0  3.0  49776  May13  56:36 python3 bmstcp.py A4:C1:38:1E:DC:09 9996
ajw22 likes this post
Reply
#13
Turns out the Raspberry Pi3 integrated bluetooth chip has some stability and packet loss issues, most likely to manifest when using WiFi at the same time. Latest Raspbian firmware seems to have made it even worse. Simple solution is to disable it and use a USB/bluetooth adapter - no crashes since!
Modular PowerShelf using 3D printed packs.  40kWh and growing.
https://secondlifestorage.com/t-AJW22-s-...PowerShelf
Reply


Who read this thread?
100 User(s) read this thread:
hbpowerwall (07-25-2019, 06:42 AM), AZ_Tekkie (07-11-2019, 05:13 AM), daromer (07-09-2019, 03:00 PM), Sean (08-09-2019, 08:16 AM), owitte (02-12-2019, 09:37 AM), opus40 (06-19-2019, 12:56 AM), Majorphill (05-28-2019, 08:30 AM), Korishan (08-09-2019, 11:13 AM), PAF (08-09-2019, 10:30 AM), Franky Beuselinck (07-10-2019, 01:39 PM), BobinTN (05-15-2019, 07:34 PM), jdeadman (08-13-2019, 01:12 PM), wim (08-09-2019, 10:13 AM), wimpie007 (02-12-2019, 04:35 PM), melsom (03-28-2019, 02:27 PM), watts-on (06-21-2019, 08:44 AM), jesusangel (06-18-2019, 12:37 PM), Hanssing (05-27-2019, 04:13 PM), tamkov (04-22-2019, 07:10 PM), Stefaan De Ridder (06-20-2019, 06:54 AM), Chiptosser (07-11-2019, 10:23 AM), BlueSwordM (06-15-2019, 07:18 PM), Mazlem (06-28-2019, 11:44 AM), Geek (08-12-2019, 12:35 AM), Ivo Staelens (08-12-2019, 12:03 PM), mr_hypno (02-07-2019, 02:45 PM), David Arnshelm (07-07-2019, 07:24 AM), Herbi (02-22-2019, 09:20 AM), Grumplestiltskin (03-13-2019, 03:51 AM), DCkiwi (02-08-2019, 04:13 AM), zag2me (02-28-2019, 03:25 PM), ChrisD5710 (06-10-2019, 08:43 AM), cristof (06-18-2019, 07:56 PM), Oz18650 (08-09-2019, 07:02 AM), tocool24 (03-24-2019, 09:23 AM), dmallia (07-11-2019, 06:19 AM), Jensk (03-06-2019, 08:08 PM), AmDD (06-24-2019, 07:40 PM), karmi27 (02-08-2019, 06:51 PM), Ste Collister (02-11-2019, 06:34 AM), Charly144 (02-08-2019, 09:49 AM), djuro (07-10-2019, 08:48 PM), sturgeo (08-10-2019, 08:11 AM), jm1 (08-17-2019, 05:25 PM), benwilliam (07-30-2019, 08:13 AM), Drokz (08-26-2019, 05:18 PM), Issac (06-13-2019, 07:55 AM), simonisabella (06-10-2019, 08:00 AM), raul_ap (02-12-2019, 08:09 PM), Chablis_m (07-11-2019, 05:08 AM), Headrc (06-04-2019, 05:25 AM), kanchana (06-03-2019, 12:17 PM), Eratigena (08-11-2019, 10:12 PM), mbrunton (04-10-2019, 04:41 AM), Redpacket (06-10-2019, 03:18 AM), Ibiza (08-09-2019, 12:13 PM), Christian Schneider (04-26-2019, 01:13 PM), Onizuka (02-07-2019, 04:38 PM), Zvonko000 (02-07-2019, 06:05 PM), Jonas Vanbeveren (08-18-2019, 03:19 PM), davidtrn24 (09-15-2019, 08:18 PM), Oliman (07-09-2019, 11:14 PM), cadric (07-08-2019, 09:52 AM), avm131 (07-10-2019, 06:07 PM), choncy12 (02-07-2019, 04:26 PM), Bubba (06-18-2019, 10:15 AM), Wobbleszo (08-18-2019, 12:28 AM), Cherry67 (07-13-2019, 09:00 PM), CBlack (06-25-2019, 09:36 PM), borewik (08-13-2019, 01:32 PM), Sholphin02 (08-12-2019, 11:41 PM), Walde (02-07-2019, 06:11 PM), Riplash (07-10-2019, 10:57 PM), 100fuegos (07-08-2019, 09:02 PM), edd021 (04-22-2019, 05:14 AM), mishok (08-13-2019, 06:09 PM), bukvaahmed@gmail.com (03-25-2019, 09:01 PM), AlexanderDEVGOD (06-06-2019, 11:13 AM), ungp (02-12-2019, 10:20 PM), HikingGuy42 (05-27-2019, 09:42 AM), Mikethezipper (07-30-2019, 02:38 AM), michaell (07-11-2019, 04:37 PM), AcE Krystal (07-17-2019, 12:15 PM), naph (02-13-2019, 07:07 AM), gguillou (09-02-2019, 12:17 AM), Buzz0515 (09-17-2019, 03:21 PM), Oprisiu Dan (06-16-2019, 08:44 AM), neowolf (05-31-2019, 08:26 AM), dirnbeflo (10-10-2019, 03:57 PM), chuckp (07-09-2019, 11:17 PM), Kevin Mason (02-09-2019, 12:17 AM), Powermad00 (02-14-2019, 11:56 AM), emuland-metroman (08-09-2019, 11:00 AM), Robrecht (08-15-2019, 03:53 PM), kwabdul (03-25-2019, 01:28 PM), jaeger-audiodesign (07-12-2019, 01:07 PM), clupton (08-22-2019, 03:10 PM), Leipi35 (08-14-2019, 03:18 PM), runsnbunsn (02-11-2019, 06:48 PM), cowpen (06-20-2019, 01:55 AM)

Forum Jump:


Users browsing this thread: 1 Guest(s)