ve.can:changing_nmea2000_instances
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
ve.can:changing_nmea2000_instances [2020-06-27 21:26] – [4. Changing Instance Using Maretron N2KAnalyzer] mvader | ve.can:changing_nmea2000_instances [2020-06-28 21:36] – [5.2 New method - changing Data instance] mvader | ||
---|---|---|---|
Line 16: | Line 16: | ||
- Use [[http:// | - Use [[http:// | ||
- | - Use [[https:// | + | - Use [[https:// |
- | - From the [[open_source: | + | - From the commandline of a [[venus-os: |
=== Device instance, data instances and other instances === | === Device instance, data instances and other instances === | ||
- | There various types of instances. Please make sure to study [[https:// | ||
- | In summary, and as per NMEA2000 specification, | + | There various types of instances, and for marine systems are two that matter in most cases: the Device instance |
- | + | ||
- | === Required hardware === | + | |
- | + | ||
- | Changing the device instance requires an usb-canbus adapter | + | |
- | + | ||
- | * For Actisense, see the [[http://www.actisense.com/product/ | + | |
- | * For Maretron, see their [[https:// | + | |
=== Related information === | === Related information === | ||
Line 40: | Line 32: | ||
Note: make sure to use a recent Actisense driver. Otherwise the instance might not ‘stick’. | Note: make sure to use a recent Actisense driver. Otherwise the instance might not ‘stick’. | ||
+ | |||
+ | Requires the [[http:// | ||
Changing a device instance: | Changing a device instance: | ||
Line 51: | Line 45: | ||
===== 3. Changing a data instance with Actisense ===== | ===== 3. Changing a data instance with Actisense ===== | ||
+ | |||
+ | Requires the [[http:// | ||
Changing a data instance: | Changing a data instance: | ||
Line 69: | Line 65: | ||
WARNING: At Victron we do not understand what and how the Maretron software works with regards to this. We advise to use another tool, not Maretron, so that you know what you are doing, ie know what instance you are changing. So far, we have not been able to use Maretron software to change a data instance. And changing the other instance, the device instance can also be done straight from the Victron GX device its user interface. To change a data instance, for example to fix instance conflicts as reported by the Maretron software, we recommend to use Actisense. Not Maretron. | WARNING: At Victron we do not understand what and how the Maretron software works with regards to this. We advise to use another tool, not Maretron, so that you know what you are doing, ie know what instance you are changing. So far, we have not been able to use Maretron software to change a data instance. And changing the other instance, the device instance can also be done straight from the Victron GX device its user interface. To change a data instance, for example to fix instance conflicts as reported by the Maretron software, we recommend to use Actisense. Not Maretron. | ||
+ | |||
+ | This procedure requires a Maretron USB adapter. | ||
Open N2KAnalyzer and make sure that the " | Open N2KAnalyzer and make sure that the " | ||
Line 78: | Line 76: | ||
{{: | {{: | ||
- | ===== 5. Changing the DeviceInstance | + | ===== 5. Changing the instances |
- | Instead of using Actisense or Maretron software, it is also possible to change the device | + | |
+ | ==== 5.1 Introduction | ||
+ | Instead of using Actisense or Maretron software, it is also possible to change the VE.Can aka N2K Device | ||
+ | |||
+ | Once logged into the shell, follow below instructions. More back ground information of the used commands such as dbus and dbus-spy is found by reading about root access document. | ||
+ | |||
+ | ==== 5.1 New method - changing a Device instance ==== | ||
+ | |||
+ | All devices available on the canbus are enumerated under the com.victronenergy.vecan service. And for all devices that support the necessary can-bus commands, the Device instance can be changed. All Victron products support changing their Device instance; and most or all non-Victron products as well. | ||
+ | |||
+ | < | ||
+ | # dbus -y com.victronenergy.vecan.can0 / GetValue | ||
+ | value = { | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | [and so forth] | ||
+ | </ | ||
+ | |||
+ | To change them, do a SetValue call to the DeviceInstace path like below. Or, perhaps easier, use the dbus-spy tool. | ||
+ | |||
+ | These lines read it, then changes it to 1, then reads it again: | ||
+ | < | ||
+ | root@ccgx: | ||
+ | value = 0 | ||
+ | root@ccgx: | ||
+ | retval = 0 | ||
+ | root@ccgx: | ||
+ | value = 1 | ||
+ | |||
+ | [note that numbers, like can0, and 00002CC005EB can ofcourse be different on your system]. | ||
+ | </ | ||
+ | |||
+ | ==== 5.2 New method - changing Data instance ==== | ||
+ | |||
+ | This applies only the NMEA2000-out feature. See links on top of page for what the NMEA2000 out feature is. | ||
+ | |||
+ | The data instances used for the NMEA2000 out feature are stored in local settings. Here is a snippet of the lines, taken by using the dbus-spy tool that also allows changing entries: | ||
+ | |||
+ | The Data instances are the " | ||
+ | < | ||
+ | Settings/ | ||
+ | Settings/ | ||
+ | Settings/ | ||
+ | Settings/ | ||
+ | Settings/ | ||
+ | Settings/ | ||
+ | Settings/ | ||
+ | Settings/ | ||
+ | Settings/ | ||
+ | Settings/ | ||
+ | Settings/ | ||
+ | Settings/ | ||
+ | Settings/ | ||
+ | Settings/ | ||
+ | Settings/ | ||
+ | Settings/ | ||
+ | Settings/ | ||
+ | Settings/ | ||
+ | Settings/ | ||
+ | Settings/ | ||
+ | Settings/ | ||
+ | Settings/ | ||
+ | Settings/ | ||
+ | Settings/ | ||
+ | Settings/ | ||
+ | Settings/ | ||
+ | Settings/ | ||
+ | Settings/ | ||
+ | Settings/ | ||
+ | </ | ||
+ | ==== 5.3 Old method ==== | ||
+ | |||
+ | (Only allows changing Device instances - not data instances as used in the NMEA2000-out function) | ||
- | Once logged into the shell, follow below instructions. Note that the example shown changes the device instance of a Skylla-i. The device instance of a VE.Can connected MultiPlus or Quattro can be changed as well. It will show as '' | ||
Step 1. List the devices: | Step 1. List the devices: | ||
Line 107: | Line 190: | ||
Device instance changed successful! | Device instance changed successful! | ||
- | |||
- | ===== DISQUS ===== | ||
- | ~~DISQUS~~ | ||
ve.can/changing_nmea2000_instances.txt · Last modified: 2023-06-28 13:32 by sloges