Git Product home page Git Product logo

Comments (10)

ai-republic avatar ai-republic commented on June 10, 2024

Hi Todor,
can you tell me the exact model of your Growatt inverter? Then I can have a look in the manual what would be the right connection for the CAN communication. Usually its via a RJ45 plug (network cable) where some pins act as CAN H (high) and CAN L (low). These pins need to be connected to your CAN to USB module. Try and unplug your module then plug it in again and run dmesg to check which port it is running on. Then you should be able to find your module running on port ttyS0 or similar.
Please tell me also the brand and model of your CAN to USB module. I use the Waveshare 2CH-CAN-FD expansion hat since I read the BMS on one channel and write to the inverter on the other channel so that there is no collision.

BTW: You mention reading inverter data? ATM this application is reading data from a BMS and sending it to an inverter. This way you have no restriction on what battery brands you can use with the inverter. Many inverter manufacturers only allow batteries from certain battery manufacturers and certain models. Maybe you can give me a short description of your actual use case?

from bms-to-inverter.

sanitariu avatar sanitariu commented on June 10, 2024

Hello,
Thank you very much for your support !
My inverter is - Growatt SPF 5000 XS.
Yes I have bms port and rs-485 port. I also have usb port where currently i have Wifi dongle which is connected to growatt website and is reporting inverter data. Also i can edit inverter settings from that web page. I can edit from inverter buttons too. I have tried and removed the dongle. At that place i have connected via usb cable directly to my PI device. I am able to read data using growatt-x000ES programe downloaded from github. So i think i have 3 different types of connections i can use. I have ordered CAN and RS-485 adapters (usb or ttl) so i can use that too.
My perfect goal is to read battery data from Daly BMS and send it to the inverter. So inverter knows how much battery ...
Currently i have the following can/rs-485 adapters:

  1. https://www.aliexpress.com/item/1005005373061818.html
  2. https://www.aliexpress.com/item/1005005461959890.html
  3. https://www.aliexpress.com/item/1005003395927937.html
  4. https://www.aliexpress.com/item/1005005526945498.html
  5. https://www.aliexpress.com/item/1005005632050165.html
  6. https://www.aliexpress.com/item/1005001621746811.html

I ordered many so i can test all :)
I can order yours but we will wait some days to arrive.

from bms-to-inverter.

ai-republic avatar ai-republic commented on June 10, 2024

Hi Todor,
thanks for the quick reply. Is https://www.aliexpress.com/item/1005005461959890.html a CAN or RS485 TTL module?
I also bought lots of modules but some didn't work as expected and the best suitable I think is the Waveshare 2-Channel CAN FD HAT module because it has 2 isolated CAN channels. It is a little more expensive but does the job perfectly.
I hope I have time tomorrow, then I will check the inverter specifications?

from bms-to-inverter.

sanitariu avatar sanitariu commented on June 10, 2024

Hello, this link is CAN TTL i have ordered that. I have all the devices above.

from bms-to-inverter.

ai-republic avatar ai-republic commented on June 10, 2024

Hi Todor,
I've checked the manual of your inverter and on page 6 they give you all the info how to connect the RJ45 to the inverter on pins 4 (CANH) & 5 (CANL).

image

On your Daly BMS its exactly the other way around pin 4 (CANL) & 5 (CANH).

image

I've had a look at the CAN to TTL module but I think that it will only be usable to read CAN frames. But for a bi-directional communication I fear its to slow, since I think it will only be working at 9600 baud standard serial port speed. But I couldn't find any information on that.

from bms-to-inverter.

sanitariu avatar sanitariu commented on June 10, 2024

I am going to try anyway. Do you think that https://www.aliexpress.com/item/1005005373061818.html is better ? If none of the both adapters are working i am going to order one like yours.

from bms-to-inverter.

ai-republic avatar ai-republic commented on June 10, 2024

I would really go for the Waveshare 2CH-CAN-FD expansion hat if you have the possibility to use BMS CAN to inverter CAN communication. That will be the most reliable.

from bms-to-inverter.

sanitariu avatar sanitariu commented on June 10, 2024

Hi, Finally i got Waveshare 2CH-CAN-FD. Going to install it today and prepare for the tests.
How is your Daly BMS connected to PI ? Mine is via ttl-to-usb adapter and the usb adapter is in PI device. Also in which mode did you setup your CAN ? Mode A or mode B (with resistor jumper) ?
Next part is installing your software :)

from bms-to-inverter.

ai-republic avatar ai-republic commented on June 10, 2024

Mode A with resistor jumper ON

from bms-to-inverter.

ai-republic avatar ai-republic commented on June 10, 2024

Closed. All issues are resolved I guess.

from bms-to-inverter.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.