Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pip4048 + raspberry pi + influxdb + grafana
#11
Hi guys,

@nexsupene101 the node.js script reads the serial port connected to the PIP and send data  to influxdb



In the last 3 days i made a progress...

I connected my REC-BMS , to the raspberry pi3 using a PICAN2  board, (all in the same raspberry pi3)

http://skpang.co.uk/catalog/pican2-canbu...-1475.html

Now i have the cell info in the same grafana panel.

the raspberry pi 3 is working on..

1. Read / write data from PIP. (serial port)
2. read data from BMS (CAN BUS) PICAn2
3. read data from DS18B20 temperature sensor.
4. read data from SMAPPEE, this device can read data from power utility, now i have control about power coming from utility and power coming from batteries (please google it), if some needs the code i will publish it :-)
5. store all the data (influxdb)
6 grafana server.

Not bad for a 100 usd computer..

Next week i will add another REC-BMS to control 2 packs of 14 cell each one, i have just 0.08v differences between cells :-)


next step , maybe is home automation , siri kit, open ev , (for electric car), charge the car when more power available.. i don't know..




 




(06-07-2017, 06:45 PM)daromer Wrote: Its not that easy im afraid hehe. Nodejs scriptet fetches data from the inverter and then delivers it to influxdb. So you need to install influx and configure that with grafana.

I have an image up and running now. Included support for above script and with support for running without the serial adapter. Ie works with USB directly.

What do you change to use the USB directly? just plug the usb to pip and change the port in the code? which port do you use?

Thanks!
nexsuperne101 and ruby2 like this post
Reply
#12
Hey

Good work
Kind of yes but still no. Thing is that the USB units end up as a Cypress Semiconductor USB to Serial ie a HID device. Hid devices will have or get you alot of crap and since there is not much error handling in your code it did not work out Smile
But yes its just a matter of using /dev/hidrawx for it.

Js is not also perhaps the best to handle serial ports but it do work. I have done some minor work in it before but the reason I use it is that it works on most systems and its damn simple. It can also easily be used with electron so that is one good thing Smile

I also fits good in a stack with NodeRed/mqtt and so forth and that i like. This did fit perfectly to my existing work on the rasp and it confirmed that it should work when you have done it. So i thanks again!


Regarding the main issue. The data coming in is sometimes scrambled so it was hard to rely on the length. I had to find first and last char that i know would define a line and then check length or the first parameters. I actually have it running against PCM/Hybrid/PIP now and it does it job. The other have different protocols though. But i had done work with it in c# and python before so i just ported the protocol data over.
The Ultimate DIY Solar and build place
YouTube / Forum system setup / My webpage  Diy Tech & Repairs

Current: 10kW Mpp Hybrid | 4kW PIP4048 | 2x PCM60x | 83kWh LiFePo4 | 10kWh 14s 18650 |  66*260W Poly
Upcoming: 14S 18650~30kWh | Automatic trip breakers, and alot more
Reply
#13
Question 
Hi!  Smile

I have set up pip4048 + 2x pcm60x + raspberry pi + influxdb + grafana but i need the scrypt for the REC BMS, i have the same Pi-Can module as you recommended.
What settings are you running on the REC BMS?

F
Reply
#14
(07-05-2017, 07:07 AM)Fredd Wrote: Hi!  Smile

I have set up pip4048 + 2x pcm60x + raspberry pi + influxdb + grafana but i need the scrypt for the REC BMS, i have the same Pi-Can module as you recommended.
What settings are you running on the REC BMS?

F


Fredd, do you have 1 or 2 rec-bms?

You don't need to have special settings in the REC-BMS.
Attached is a version with 1 REC-Bms, if you have problems, please PM

https://pastebin.com/2HUfdyGG

thanks
Reply
#15
Thanks!   Smile
I will test it out now.
Only 1x REC but maybe more in the future. 

F
Reply
#16
Fredd,
the can messages are identified with an id, like 0x031,0x032 ... etc. if you have more than 1 bms, you need that every bms has differentes id, just ask to the guys of rec-bms, and they will change the id of the messages with differents one, like bms 1= can message=031, bms2 = can message =131, ...
Reply
#17
Could someone please share pcm60 script for getting it's data through USB?
Thank you
Reply
#18
Its kind of same as doing it via serial if you talking about Linux. I have included an example in the Iso i built for raspberry. http://secondlifestorage.com/t-Esperyd%C...PI-project
The Ultimate DIY Solar and build place
YouTube / Forum system setup / My webpage  Diy Tech & Repairs

Current: 10kW Mpp Hybrid | 4kW PIP4048 | 2x PCM60x | 83kWh LiFePo4 | 10kWh 14s 18650 |  66*260W Poly
Upcoming: 14S 18650~30kWh | Automatic trip breakers, and alot more
Reply
#19
(07-14-2017, 12:10 PM)daromer Wrote: Its kind of same as doing it via serial if you talking about Linux. I have included an example in the Iso i built for raspberry.  http://secondlifestorage.com/t-Esperyd%C...PI-project

I don't currently have a free sd card to burn the iso just to get the pcm60.js file out from it.
Could someone share this one file, that's all I need.
Pleaaaaase? Smile
Reply
#20
Hi guys I'm new user, I have 2 pip 4048 in parallel mode and I see only now this beautiful post. I'm not very expert user and not have understand how it's work , can you explain me how it's possible to make this to monitoring my inverter with raspberry? Thanks to all for helping . Have a nice day ?
Reply


Who read this thread?
100 User(s) read this thread:
hbpowerwall (07-27-2017, 04:49 AM), AZ_Tekkie (07-15-2017, 08:11 AM), Chickey (07-20-2017, 01:17 PM), ShaneE (08-20-2017, 04:09 AM), daromer (08-19-2019, 02:37 PM), Minatugar (07-05-2017, 07:51 AM), Sean (08-06-2019, 09:24 AM), mike (08-07-2019, 12:43 PM), 18650Shrink (06-05-2017, 09:21 PM), goodnowm (10-18-2017, 03:39 AM), AveRageJoe (08-11-2017, 08:57 AM), BigBen (07-19-2017, 02:06 PM), PaulKennett (07-06-2017, 03:19 AM), Joaquinsfy (01-27-2019, 10:21 PM), SJBW (07-31-2017, 11:03 AM), NiVa (10-29-2017, 10:29 AM), Lux_Gamer (07-05-2017, 01:41 PM), owitte (06-12-2018, 02:50 PM), opus40 (05-07-2018, 09:42 AM), RudyLiPower (06-14-2017, 01:43 AM), dakoal (07-09-2017, 08:43 AM), VdVoort4 (04-24-2019, 07:12 PM), Majorphill (06-20-2017, 01:11 AM), coolfx (07-18-2017, 11:46 AM), nexsuperne101 (06-11-2017, 07:38 PM), Herebus (07-20-2017, 01:19 AM), BatteryDIY (09-07-2017, 11:24 PM), ruby2 (08-25-2017, 10:11 AM), JustJim (11-30-2017, 06:28 PM), Korishan (08-06-2019, 09:41 AM), A + A (09-05-2017, 09:50 PM), PAF (08-15-2019, 07:10 AM), Prahe86 (08-16-2017, 07:18 PM), APD (06-14-2017, 02:26 AM), Franky Beuselinck (08-30-2019, 08:25 AM), Batrium (10-19-2017, 09:28 PM), Darmok (07-14-2017, 12:50 PM), Wattsup (07-05-2017, 09:23 AM), Scepterr (06-07-2017, 09:25 PM), BobinTN (11-24-2017, 02:56 AM), Iordanis Kouroutsidis (10-28-2017, 01:35 PM), Frnandu Martiński (10-31-2017, 12:56 PM), egam (06-11-2017, 12:39 AM), CrankyCoder (07-11-2017, 02:47 PM), Mike C (01-25-2019, 10:41 PM), Droid126 (06-08-2017, 04:03 PM), jdeadman (08-19-2019, 04:15 PM), charlie246 (06-13-2017, 09:12 PM), 2146 (10-27-2017, 04:04 PM), wim (08-19-2019, 04:07 PM), wimpie007 (06-10-2017, 06:31 PM), MajStealth (06-07-2017, 07:09 PM), Joe Farrugia (08-11-2017, 11:49 PM), frnandu (07-18-2017, 04:11 PM), josearaujo10 (06-26-2017, 10:11 PM), typ49 (07-10-2017, 02:04 PM), HandyAndy (07-07-2017, 01:46 PM), John (06-07-2017, 10:44 PM), Robert Baumer (06-08-2017, 10:17 PM), Charles Francis Speakman (06-08-2017, 01:25 PM), Jeremy Choy (06-11-2017, 04:59 AM), 1958 greyhound (07-21-2017, 07:03 AM), kktuo (10-01-2017, 01:14 PM), Tobbe O Kompani (06-09-2017, 03:39 PM), Off Grid Power wall (06-05-2017, 05:45 PM), Ragulin83 (09-06-2017, 07:20 PM), Tychipowerwall (07-05-2017, 11:05 AM), kaits31 (06-08-2017, 10:27 AM), watts-on (07-18-2017, 09:28 AM), Dan Lim (06-10-2017, 08:54 AM), jesusangel (08-06-2019, 07:52 PM), Daggerzz (07-05-2017, 02:25 PM), Hanssing (08-22-2019, 05:13 AM), MetalFang (06-08-2017, 05:21 PM), Fredd (09-17-2019, 11:32 AM), autobd (07-26-2017, 01:22 PM), ajcc71 (06-12-2017, 06:55 AM), Mark Daniel Olsen (12-25-2017, 12:38 PM), DrkHrs13 (07-15-2017, 02:56 PM), tamkov (12-16-2018, 01:48 PM), kot (07-17-2017, 10:37 AM), mitchvr (06-19-2017, 12:08 PM), Arie Bal (10-13-2017, 11:54 PM), ismaildoganw (07-18-2017, 01:07 PM), kazbach (07-18-2017, 12:39 PM), ltdorn (07-19-2017, 01:09 AM), Davel (07-07-2017, 02:26 PM), Stefaan De Ridder (07-14-2017, 11:57 AM), fin020 (07-01-2017, 03:34 AM), AzJames (07-05-2017, 07:54 PM), TomTinkerDIY (07-18-2017, 06:32 PM), Chicken (07-05-2017, 07:41 AM), Power Up (07-18-2017, 02:53 PM), Chris Evans (09-11-2017, 12:25 PM), roel.nagels@telenet.be (07-05-2017, 08:23 AM), Piotr Dziel (11-18-2017, 02:26 PM), Dennis Van Hoek (07-19-2017, 03:06 PM), alildabldo (07-15-2017, 03:44 AM), Happy Camper Homesteader (07-14-2017, 01:57 PM), brafi (07-14-2017, 08:41 PM)

Forum Jump:


Users browsing this thread: 1 Guest(s)