Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase the max number of connectable (vedirect) devices #130

Closed
4 of 6 tasks
mpvader opened this issue Mar 15, 2017 · 10 comments
Closed
4 of 6 tasks

Increase the max number of connectable (vedirect) devices #130

mpvader opened this issue Mar 15, 2017 · 10 comments

Comments

@mpvader
Copy link
Contributor

mpvader commented Mar 15, 2017

Right now, the max number of VE.Direct devices that can be connected to a CCGX is around 5: 2 direct and 3 via USB. The exact number depends a bit: enabling MQTT reduces it. As does connecting energy meters, enabling ModbusTCP, etcetera.

The max for the Venus GX is 6: 2 direct ,and 4 via USB.

With below changes in place, the max for the Venus GX becomes ~20, and the CCGX possibly more.

@jhofstee investigated the cause for these limits, out of which came several required changes:

And a few nice to haves:

  • Change the ssh-tunnel script so it does not create so many dbus name-owner changes when unable to connect.
  • Change the bbe hardware: right now the limit is 10 devices via USB, because of the max number of end-points in the TI driver/hardware. By connecting one of the two ports directly instead of via a hub, this can be increased to ~20. Note that the CCGX driver/hardware implementation does not have this limit.

Obviously it could be that more changes are needed. Fixing one unveils the next.

And, just because images are nice, the test rig:
image

@mpvader mpvader changed the title Increasing the max number of connectable (vedirect) devices Increase the max number of connectable (vedirect) devices Mar 15, 2017
@mpvader
Copy link
Contributor Author

mpvader commented Apr 20, 2017

@izak do you also have this kernel patch in the rpi kernel(s)? https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/usb/serial/ftdi_sio.c?id=c6dce2626606ef16434802989466636bc28c1419

you should. And if you did, I can tick the first one on above task list.

@izak
Copy link
Collaborator

izak commented Apr 20, 2017

Nope, I don't have that! I had to actually check the source code, it's not there. Can add it, it looks like the patch will apply cleanly with no massaging.

@mpvader
Copy link
Contributor Author

mpvader commented Apr 20, 2017

Pls do.

@izak
Copy link
Collaborator

izak commented Apr 20, 2017

It's done. We can merge it next time along with the u-boot fixes.

@mpvader
Copy link
Contributor Author

mpvader commented Apr 22, 2017

thanks. I've closed the first task. Its in for all three machines now.

@mpvader
Copy link
Contributor Author

mpvader commented Aug 1, 2017

The previous test setup didnt work. A photo of the new test setup under construction:

img_2165

@mpvader
Copy link
Contributor Author

mpvader commented Oct 16, 2017

gui v3.5.1 includes the fixes to allow more devices:

  • let Qitems directly make dbus calls instead of allocating proxy objects (takes too long on bigger systems)
  • bulk get initial values / text

It was added in v2.12~1. Next step is to actually test it on the test bench.

@mpvader
Copy link
Contributor Author

mpvader commented Nov 8, 2017

a test with 14 MPPTs, one Quattro, running ESS and BOL (adds voltage sense) on a gridless octo results in 30~50% cpu idle.

v2.12~8

Sun was low, no actual charging going on. More tests later.

@mpvader
Copy link
Contributor Author

mpvader commented May 17, 2018

14 active mppts, 1 x quattro, ESS, DVCC incl shared voltage sense, normal lead battery, charge current limit set to 50A.

First some tests to find the worst situation:

v2.15, Octo GX

  • gui on some static page: ~20% idle
  • gui on overview with moving balls: ~10% idle

these were visually taken from top. Below are taken with mpstat 2 120 (every 2 seconds, for 4 minutes).

v2.20~30 Octo GX

  • gui-moving-balls, no AC in: 17.63% avg
  • gui-moving-balls, AC in: 2.85% avg

@mpvader
Copy link
Contributor Author

mpvader commented Jun 22, 2019

Closing this issue.

The maximum of VE.Direct devices is now documented for customers here.

most easy improvements have been done. Some more are right now being worked on (reduce the impact of having ESS or DVCC enabled). But out of scope of this issue.

Also, the coming GX hardware designs are all more powerful.

@mpvader mpvader closed this as completed Jun 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants