question

Jonny Sollid avatar image
Jonny Sollid asked

How to change the data instance for BMV-712 in NMEA2000?

Is it possible to change the data instance for BMW-712 using the Yacht Devices Can Log Viewer or do i have to use root menu and command lines on Cerbo gx?


cerbo gxNMEA 2000 - N2K
2 |3000

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

9 Answers
Greg Ireland avatar image
Greg Ireland answered ·

I am also having difficulties with this, I have two BMV-712 devices and despite modifying the instance number via Maretron N2K Analyzer the instance within the devices remain at 0.

Are we able to directly change the device instance number?

See images showing PGN's being transmitted.


bvm1.png (213.9 KiB)
bvm2.png (249.0 KiB)
7 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.

Jonny Sollid avatar image Jonny Sollid commented ·

Hi.

I am still working to solve this and will try to change this with command lines via color gx later today. I don't have Maretron or Actisence. Have you seen this instruction using Maretron?https://www.victronenergy.com/live/ve.can:changing_nmea2000_instances

0 Likes 0 ·
Greg Ireland avatar image Greg Ireland Jonny Sollid commented ·

Hi Jonnys, yes I have seen the instructions on howto update the instances, that is how I changed the instance nuber to 50 on the example shown in the clip - the actual data being transmitted shows the deviceis still transmitting as Battery Instance 0 for the primary battery and as 1 for the start battery. This occurs for both units. I have had to disconnect the second BMV as my generator start is monitoring instance 0 SOC and this way the system can see two of them.

0 Likes 0 ·
jeroen avatar image jeroen ♦ Greg Ireland commented ·

Indeed, when changing the device instance (what the Maretron tool calls unique instance), the Device instance gets changed, not the battery instances.

0 Likes 0 ·
jeroen avatar image jeroen ♦ commented ·

The unique instance changes the Device Instance (lower + upper) in the ISO address claim message. Unique instance = 8 * high + low, so that is changed.

Do make sure you run at least v2.51!

0 Likes 0 ·
Greg Ireland avatar image Greg Ireland jeroen ♦ commented ·

Hi Jeroen, my Venus GX is running v2.52, I am not sure what you mean by the changing of high and low and that high plus low = 8. Can you explain in more detail?

0 Likes 0 ·
jeroen avatar image jeroen ♦ Greg Ireland commented ·

Changing the unique instance sets the Device Instance field in the ACL, see below.

0 Likes 0 ·
1585485517257.png (241.7 KiB)
jurjenhoekstra avatar image jurjenhoekstra commented ·

@Greg Ireland, hi Greg. In N2KAnalyser, add the column Device instance (I do not see it in your screenshots). The device instances for each identical piece of equipment needs to differ from each other. This also counts for your tank sensors (see other post), which I do not see in these screenshots, which might explain why they do not show on VRM/Remote console.

0 Likes 0 ·
jeroen avatar image
jeroen answered ·

There should be no need to change data instances on the CAN-bus. From the specs: "Data instances shall be unique in the same PGNs transmitted by a device. Data instances shall not be
globally unique on the network. Field programmability shall be implemented through the use of
PGN 126208, Write Fields Group Function."

Preferably, don't change them. It is a workaround for broken implementation. If the Yacht Devices Can Log Viewer can change them depends if mentioned write fields is implemented, which I doubt. The Maretron doesn't support it as far as I know. But the best solution is to just fix setups which incorrectly assume network wide unique data instances.

3 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.

Jonny Sollid avatar image Jonny Sollid commented ·
Hi and thanks for the reply. The problem I am experiencing is that YD web gauges switch on measurements between two battery banks. I have three battery banks REC-bms + two battery banks connected to the BMW712. This is what I got from the YD engineer: Is it wrong?
Battery banks appear in the NMEA 2000 network under the same battery instance. Web Gauges is capable to display data from 16 different batteries but they must have different NMEA 2000 battery instance settings. Victron gives the following instructions on changing N2K instances (IMPORTANT: you have to change data instances, not device or system instances):
0 Likes 0 ·
jeroen avatar image jeroen ♦ Jonny Sollid commented ·

The text is not wrong, that is apparently what they do. It is not conform NMEA 2000 specs though.


0 Likes 0 ·
Jonny Sollid avatar image Jonny Sollid jeroen ♦ commented ·

I agree. The new YD gateway has a number of problems with integration. Experience the web gauges software like an early beta version. I downloaded the "Wilhelmsk" app and it works perfectly with all nmea 2000 data without making changes device instance. Problem solved, and I have got the best integration and app I have ever used! Recommended! Thank you so much for explaining this to me, it got me on the right track after many days of troubleshooting.

0 Likes 0 ·
Greg Ireland avatar image
Greg Ireland answered ·

@jurjenhoekstra Hi Jurjen, thank you for your input, I am still unsure how the unique instance adds up to the upper and lower limits ie 6 + 2 = 50? The image below shows the Device Instance column added and showing 50 but the battery instances still at 0 and 1. The instance 50 does not register any data on my display.

Also, I have added an image for the tanks/pressure sensors, as you will see they are all Device Instance 0 but Tank Instance 0, 1, 2, 5 respectively.


bvm3.png (220.9 KiB)
fpm1.png (287.2 KiB)
2 |3000

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

jurjenhoekstra avatar image
jurjenhoekstra answered ·

@Greg Ireland, hi Greg. Let's take a step back to your original question as to better understand what your are trying to solve: why are you trying to change the data instance for the BMV712? What is the exact problem? Is one of the BMV's not showing up on VRM or are you getting no data? This 6 + 2 = 50 does not make any sense to me.

By the way the setup on your yacht is quite similar to mine: Quattro 24-8000, Venus GX, Simrads and some Maretron stuff. Separate answer on the tank issue.

2 |3000

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

Greg Ireland avatar image
Greg Ireland answered ·

@jurjenhoekstra Good idea Jurjen, my vessel has 4 batteries, one for each engine, house bank and a back up navigation battery. I have previously been monitoring them via a Blue Power Panel and 4 shunts, however with the install of a Venux GX I was keen to get the battery data onto my Maretron N2K system.

I installed a 712 and connected my House Bank via a shunt and the Port Start Batt to the 2nd input to test, waited patiently for 12 months for the Venus Firmware to work and successfully displayed both batteries on N2K View. N2K View is configured to display battery instances 0 and 1.

Having had success, I installed a second 712 to monitor the Navigation Bank via a shunt and the Starboard Start battery on the 2nd input. But both are reporting on the same Device Instance, I would expect that I should be able to change it to Device Instance 1 (as it is the 2nd 712 on the system) and be able to change battery instance to 2 and 3 thus allowing me to separate them on N2K View.

As for the Tanks all report perfectly on N2K view, but it would be great to separate them on VRM for remote monitoring capability as I don’t use Maretron as it is silly expensive.

Thanks for your help, I really appreciate it - if you are interested you can see a bit more about my vessel at https://www.facebook.com/TSMVSeachange/

2 |3000

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

jurjenhoekstra avatar image
jurjenhoekstra answered ·

@Greg Ireland, hi Greg. Looked at your facebook page, great adventures. In case your are interested, I keep a weblog of the build of my yacht: Xanthiona. It has a lot of technical stuff, not so many adventures yet.

I did a search on the Victron Community on 'multiple bmv' and found there are some issues when trying to connect 2 BMVs to a Victron system. I believe it contributes to your issue of trying to get the information of both BMVs on the N2K View. Take a look at some of those issues, it might help or point you to the right direction.

To me it also would seem most logical to change the device instance and you would expect once that is done, that N2KView would be able to handle that. You could try changing the system instance, what we discussed yesterday.

On the other hand, it is the Venus GX who has to put the information from both BMVs onto the N2K network and as long that is done the same way for both BMVs without distinction between the 2, N2K will see them as one.

I think you might need some assistance here from a Victron staff member.

@mvader (Victron Energy), hi Matthijs, can you assist in this issue?

2 |3000

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 @jurjenhoekstra, @Greg Ireland and @jonnys, thank you for all your questions and input.

@Jeroen and myself have been on the phone the last couple of hours spelling out all the nitty gritty details regarding the NMEA2000-out function in the GX Devices. As well as writing down in as clear and complete a manner as possible all there is to know about instances.

The result is here:
https://www.victronenergy.com/live/ccgx:start#marine_mfd_integration_by_nmea_2000

Can I ask you to close read & review? I hope it helps to solve your issue. If you have any comments, please comment to this answer. Thank you! Matthijs

29 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.

mvader (Victron Energy) avatar image mvader (Victron Energy) ♦♦ commented ·

ps: please look into using the Comment feature, rather than adding new answers when replying to someone else. It makes it really hard to read & catch up ;o).

0 Likes 0 ·
Greg Ireland avatar image Greg Ireland commented ·

Hi Matthijs @mvader (Victron Energy)

I have communicated with Maretron and they advise that the relevant data to them is the PGN and the Data Instance thus excluding the Device Instance as an identifying parameter. I can only assume that this a choice made by each manufacturer and therefore makes it difficult to mix the products. If, for example, Victron allowed the modification of the data instance so as to be compatible with Maretron then it would not work on the Victron platform, however, if Maretron recognized the Device Instance it would increase its flexibility and perhaps fit a broader market (but put at risk its own monitoring devices).

I have asked Maretron if they will consider this change, wait and see what their response is I guess.

Is it possible for Victron to allow modification of the Data Instance passing the responsibility to the user which way they program the devices?


@jurjenhoekstra @jonnys


Greg


0 Likes 0 ·
mvader (Victron Energy) avatar image mvader (Victron Energy) ♦♦ Greg Ireland commented ·

Hi Greg,

The data instances are configurable. Device instances are too. Though I haven't used it myself, I've heard from my colleague that the Maretron software N2KView, tries to simplify things and doesn't show the Device instance as well as the Data instance individually. Instead, they introduced a new term, called Unique instance, with magic behind it.

I don't know how to use their software to change our data instances - and if thats possible. Please ask them.

On our products, the data instances are configurable using the NMEA2000 Complex write commands as per NMEA2000 specification. But you need tooling to send such commands.

I recommend to ask Maretron on how to best change that instance.

Best regards, Matthijs

Ps. I changed your answer to a comment, to keep it in a thread. Please reply by comment also in this thread, thanks!

Ps2. I've updated our documentation to confirm that indeed data instances are configurable.

0 Likes 0 ·
Greg Ireland avatar image Greg Ireland mvader (Victron Energy) ♦♦ commented ·

Hi Matthiji @mvader (Victron Energy) , after some comms with Maretron it would seem that they are unable to assist me with the issue of displaying data from multiple BMV712 Devices.

That leaves me with 5 DC Voltage PGN’s - three using data instance 0 (Quattro Inverter, BMV 1 and BVM 2) and two using data instance 1 (second input on BMV 1 and BMV 2).

Ideally, if I can change the device data instances to 0, 1, 2, 3 & 4 it would resolve my N2KView issues (the same would need to be done for the DC Current data instances). However this may have some impact on the Venus Battery data being displayed?

Am I able to do this? And if so how? You mentioned tooling and complex commands in a previous post. Any assistance would be appreciated as this is the final piece of my display system to get operational.

Greg

0 Likes 0 ·
mvader (Victron Energy) avatar image mvader (Victron Energy) ♦♦ Greg Ireland commented ·

Hi Greg,


Victron equipment supports the official canbus commands as per NMEA2000 specification to change data instances.

We don’t have a user friendly way to do so yourself as a user or installer.

It might be possible to use maretron software to change data instances for Victron equipment; but I have not been able to verify that/look into that in detail.

I know for sure that you can change them using Actisense NMEAReader. Documentation on how to do that is here:

https://www.victronenergy.com/live/ve.can:changing_nmea2000_instances

0 Likes 0 ·
mvader (Victron Energy) avatar image mvader (Victron Energy) ♦♦ mvader (Victron Energy) ♦♦ commented ·

Ps. I’m sorry this is such a challenge to figure out. Its a challenge for Victron/myself as well.

0 Likes 0 ·
Show more comments
Jonny Sollid avatar image Jonny Sollid commented ·

I have several devices in nk2 networks that send battery data such as Multiplus, MPPT, rec-bms and smart shunt all connected to Cerbo gx- Without modifications, only two batteries are displayed on Raymarine instruments. (I have 3 battery banks) Changing the device instance as described in the Victron GX manual chapter 11.5.4 does not change anything on my Raymarine instruments. Using a programmable interface, we tried to change the device instance, the same result. When we change the data instance, batteries are presented correctly.

The question is why device instance is made available in the menu on Venus os and manual describes change of device instance. Are there other manufacturers this works on?

I run venus large image 2.70-3 on cerbo gx.

Had been very grateful for information that can confirm or deny my findings.

0 Likes 0 ·
mvader (Victron Energy) avatar image mvader (Victron Energy) ♦♦ Jonny Sollid commented ·

Hi, you are right. Raymarine requires changing the Data instances.

See chapter 11.1, and then find the document specific for Raymarine; and then go to the last chapter of the Raymarine document.


Other brands do work by only changing the Device instance.

0 Likes 0 ·
sunnycoastgreg avatar image sunnycoastgreg mvader (Victron Energy) ♦♦ commented ·

could i respectfully suggest that victron update their documentation .

in at oeast 2 documents it very specifically says to change device instance for raymarine.

i spent a lot of wasted time following these instructions, fault findning, changes back and forth.. and then posting (elsewhere on this forum questions..)

0 Likes 0 ·
mvader (Victron Energy) avatar image mvader (Victron Energy) ♦♦ sunnycoastgreg commented ·

hi @sunnycoastgreg yes for sure. Where did you read that Device instance needs changing for a Raymarine system?

The leading information I'm aware of is this one:
https://www.victronenergy.com/live/venus-os:mfd-raymarine#nmea_2000

0 Likes 0 ·
sunnycoastgreg avatar image sunnycoastgreg mvader (Victron Energy) ♦♦ commented ·

https://www.victronenergy.com/upload/documents/Technical-Information-Data-communication-with-Victron-Energy-products_EN.pdf


quote

Raymarine needs the device instance to be different in order to show information for (for example) multiple batteries. They use the data-instance to connect multiple products, for example gps-es, as a way of redundancy.

0 Likes 0 ·
Show more comments
Show more comments
Robert Krinner avatar image
Robert Krinner answered ·

Hi! I still can‘t figure out how to change the switch bank instance for the 702 or Multuplus.


Both units set switched on default switch bank 0. I want to uses one of the devices switch bank 1, as there is an overlap in switches 5-7.

This is also interesting when running two 702.

I am driving alarms from the switch bank with the AlarmButton for Yacht Devices.


Thanks for input.

2 |3000

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

tigrecito avatar image
tigrecito answered ·

Hi .. Good to find this thread.. after reading, I could successfully change the data instances of my smartsolar mppt (via dbus-spy in shell). By the way, not only raymarine had those issues.. also I use NMEAremote app together with SignalK - here I had the same issues with flipping values.


I posted my thread here: https://community.victronenergy.com/questions/232392/nmea-2000-mppt-and-bmv-show-battery-0-and-1.html?childToView=232555#answer-232555

but it is solved in meantime thanks to this thread..


I just wonder about the possible problems with that on my CerboGX system (like mentioned in the manual) .. is this only for skylla devices? How can I check if I have some other problems here now?


Thanks, Tig

2 |3000

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

Related Resources