question

vanlifer007 avatar image
vanlifer007 asked

Modbus TCP unit ID keep on changing without reboot.

Hi Guys and Girls,

I would very much appreciate the help of this great community.

I am running Venus OS v2.66. I have Modbus TCP enabled and I am running Home Assistant to automate my campervan. I am able to read and write to registers and perform task suck as turning on and off the Multiplus (via MK3) based on certain conditions; SOC, Solar power etc.

I have been always having issues with the Multiplus Modbus TCP unit ID's changing without reboot. So I don't really know how it happens nor how to reproduce this. It always switches between ID 238 and 237. So this mess with my automation and therefore I am unable to control the Multiplus unless I change the register in Home Assistant to the corresponding ID shown in Venus. And when I change it it switches back again to the the original value. This can happen once every 2 days or twice a day... It is very random.


Is there a way to force the Multiplus to take one ID only like other devices? The smartshunt seems to always take 237 and the MPPT always on 239.


If it is not possible is there anyway ( for those with Home Assistant know-how) to programmatically read the Unit IDs and change them accordingly or a different approach to read and write Modbus registers?


Is Node-Red the cure here?


Many thanks guys and Girls ..;)


screenshot-2021-06-13-10-31-26-258-comandroidchrom.jpg


screenshot-2021-06-13-10-30-46-949-comandroidchrom.jpg

Modbus TCPAssistants
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

2 Answers
wkirby avatar image
wkirby answered ·

That's wierd. It shouldn't be changing the unit ID or the related VRM instance number at all, obviously.
The only thing that I can think of is that the USB is disconnecting and reconnecting as a different device which would then cause the ID to change.

2 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Thanks. I thought it was strange too.. the vrm instance changes sometime. I don't know what caused this.. all genuine cables.
0 Likes 0 ·

Hi, sounds like you're using a raspberrypi? Probably indeed usb disconnects/reconnects as wkirby. And (unlike vedirect connected devices) our software driver taking care of communications to the Multi has no special handling to prevent ID number changes.


We have not scheduled any software improvements soon for this. So the only thing I can advice you from Victron side is to get yourself a real GX device. There the modbus id numbers won't change.


0 Likes 0 ·
vanlifer007 avatar image
vanlifer007 answered ·

This didnt happen again since I last posted about it, Maybe my campervan was stationary all this time, but I am curruious to find a cure. can anyone help please?

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.