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

numbering (USB) devices by serial number? #63

Closed
LeaseOnLife opened this issue Jan 31, 2021 · 3 comments
Closed

numbering (USB) devices by serial number? #63

LeaseOnLife opened this issue Jan 31, 2021 · 3 comments

Comments

@LeaseOnLife
Copy link

I am running a PI3B with Venus OS and currently have 4 USB-VE-direct cables plugged in (2x BMV, 2x solar). When fiddling with that, and possibly adding more of these via USB hubs, the "VRM" numbers get reordered in VenusOS, which then screws up the logging into influxdb.
My workaround is to re-map the inputs within the plugin, and that seems to work.
But I am wondering if the mapping could be made more consistent by reading the device's serial number. Preferably the controller's serial number, not the one from the USB dongle.
Thanks!
Dirk

@mpvader
Copy link
Contributor

mpvader commented Jan 31, 2021

Hi Dirk,

I think a fix is coming: last week we implemented exactly this in the vedirect-serial driver in Venus OS - where it should be; as then also the numbering on the VRM Portal and so forth remains stable.

What remains stable after that change is the value under /DeviceInstance on D-Bus. It used to be tied to the usb-port number, and now its tied to the serial number of the charge controller (or BMV).

I'm pretty sure that will also fix it when taking the data through the signalk-venus-plugin, but you'll have to test to make sure.

Keep an eye out for a v2.70 beta, or updated Venus OS large image, in the coming weeks.

@LeaseOnLife
Copy link
Author

Excellent! agreed, that is where it belongs.
I keep this open until then, also for others who stumble upon this..

@LeaseOnLife
Copy link
Author

VenusOS 2.63~1 addresses this. VRM numbers on my system staid the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants