question

Matesh avatar image

MK3 USB 'S' (State) command does not change panel switch state

Hi everyone,

I implemented the VE.Bus/MK2 protocol following "Whitepaper-Data-communication-with-Victron-Energy-products_EN.pdf" and using a MK2 USB device. All commands and functions work as described.

However switching over to an MK3 USB device, the three Quattros i'm testing with do not react to command 'S' as expected. Using the same commands, the MK2 does the job.

The whitepaper mentions certain jumper settings in the MK2 (which i never touched, the S command worked with a standard MK2 device) however when I opened the MK3 device there were no jumpers inside to play around with.

I have not seen any mention in the whitepaper regarding this. Is there a specific command to issue or a flag I need to set in the MK3 for this command to work properly?

Thank you forward for any responses!

MK3
10 |3000 characters needed characters left characters exceeded

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

6 Answers
jpasop (Victron Energy Staff) avatar image
jpasop (Victron Energy Staff) answered ·

Hi Matesh,

For the MK3 the jumpers where replaced by software control of the VE.Bus standby and panel detect lines. Unfortunately this was not mentioned in the "Interfacing with VE.Bus products - MK2 Protocol" documentation. We will add it.

To get you going, here is the command description.

Command: 'H' <Line state>

Reply: 'H' <Line sate>


<Line state> is specified as follows. Setting a bit pulls the line to GND

Bit number

Meaning

0
Panel detect

1

Standby


The above command is supported by the MK3 only.

Please note that the MK3 chip in the USB dongle is powered through the VE.Bus, when loosing VE.Bus power the above lines will become floating again.

2 comments Share
10 |3000 characters needed characters left characters exceeded

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

so it should be 04 FF 48 01 B4 and 04 FF 48 00 B5. Correct?


Best Regards

Hi Daniel; pls try: if it works; its correct.

dakoal avatar image
dakoal answered ·

@matesh I am trying to connect to a Multiplus II with an MK3USB directly. I read the documentation many times and got the serial read in python to show me some hex values coming from the Multiplus. But I don't get it to send a simple "V" and the response. Can you guide me in some direction, maybe with some lines of code?

Share
10 |3000 characters needed characters left characters exceeded

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

Matesh avatar image
Matesh answered ·

Hello @jpasop,

Thank you very much for your response! That right there was the last missing piece of the puzzle. One line of code later everything is honky dory!

Share
10 |3000 characters needed characters left characters exceeded

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

Matesh avatar image
Matesh answered ·

Hello Matthijs,

Thank you for your response.

I indeed have read the documentation thoroughly, probably a couple dozen times more than 3.

I read the CCGX manual as well, however those sections refer to in what situations (other devices in the system) the panel switch wouldn't work.

In my case, i have 3X Quattros connected in three phase, lead acid configuration, plugged into a MK2 USB, nothing else in the system. Switching the Quattros via the 'S' command works. Then I connect a MK3 USB in the MK2s place, and everything else (parameter reads, device detection, etc.) works just as well, but switching using the 'S' command does not anymore. I feel this related to the MK3 device itself rather than the system configuration, because the function works fine with the MK2 in the same system.


Share
10 |3000 characters needed characters left characters exceeded

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

mvader (Victron Energy) avatar image
mvader (Victron Energy) answered ·

Ps. Check ccgx manual, section MultiPlusses, and then the notes about in what system types it’s (unfortunately! I don’t like it either!) not possible to control the inverter/charger.


I’m not sure if this is mentioned in the mk2 documentation. (?) If not we should add it.

Share
10 |3000 characters needed characters left characters exceeded

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

mvader (Victron Energy) avatar image
mvader (Victron Energy) answered ·

Hi, my first advise is: have you super accurately read the documentation 3 times or more?

There is very little people that can help with this; (which is why all our documentation states that we can’t support anyone working with it..). And, the (Victron) people that do know have work for them from here to the end of the world.

Share
10 |3000 characters needed characters left characters exceeded

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