'Devices/00002CC001F4/N2kUniqueNumber': 500,
'Devices/00002CC001F4/Nad': 149,
'Devices/00002CC001F4/Serial': '0000500',
'Devices/00002CC005EA/CustomName': 'Hub-1',
'Devices/00002CC005EA/DeviceInstance': 0,
'Devices/00002CC005EA/FirmwareVersion': 'v2.60-beta-29',
'Devices/00002CC005EA/Manufacturer': 358,
'Devices/00002CC005EA/ModelName': 'Color Control GX',
'Devices/00002CC005EA/N2kUniqueNumber': 1514,
'Devices/00002CC005EA/Nad': 11,
'Devices/00002CC005EA/Serial': '0001514',
'Devices/00002CC005EB/CustomName': 'SmartBMV',
[and so forth]
Pour les modifier, faites un appel SetValue au chemin DeviceInstance comme ci-dessous. Ou, plus simplement, utilisez l'outil
dbus-spy.
Ces lignes lisent l'instance, la changent en 1, puis la lisent à nouveau :
root@ccgx:~# dbus -y com.victronenergy.vecan.can0 /Devices/00002CC005EB/DeviceInstance GetValue
value = 0
root@ccgx:~# dbus -y com.victronenergy.vecan.can0 /Devices/00002CC005EB/DeviceInstance SetValue %1
retval = 0
root@ccgx:~# dbus -y com.victronenergy.vecan.can0 /Devices/00002CC005EB/DeviceInstance GetValue
value = 1
[note that numbers, like can0, and 00002CC005EB can ofcourse be different on your system].
Nouvelle méthode - modification d'une instance de données :
Ceci ne s'applique qu'à la fonction NMEA2000-out.
Les instances de données utilisées pour la fonction NMEA2000-out sont stockées dans les paramètres locaux. Voici un extrait
des lignes, pris en utilisant l'outil dbus-spy qui permet également de modifier les entrées (les instances de données sont les
instances « Batterie » « CC détaillée », etc.) :
Settings/Vecan/can0/Forward/battery/256/BatteryInstance0
Settings/Vecan/can0/Forward/battery/256/BatteryInstance1
Settings/Vecan/can0/Forward/battery/256/Description2
Settings/Vecan/can0/Forward/battery/256/IdentityNumber
Settings/Vecan/can0/Forward/battery/256/Instance
Settings/Vecan/can0/Forward/battery/256/Nad
Settings/Vecan/can0/Forward/battery/256/SwitchInstance1
Settings/Vecan/can0/Forward/battery/256/SystemInstance
Settings/Vecan/can0/Forward/solarcharger/0/DcDataInstance0
Settings/Vecan/can0/Forward/solarcharger/0/DcDataInstance1
Settings/Vecan/can0/Forward/solarcharger/0/Description2
Settings/Vecan/can0/Forward/solarcharger/0/IdentityNumber
Settings/Vecan/can0/Forward/solarcharger/0/Instance
Settings/Vecan/can0/Forward/solarcharger/0/Nad
Settings/Vecan/can0/Forward/solarcharger/0/SystemInsta
Settings/Vecan/can0/Forward/solarcharger/1/DcDataInstance0
Settings/Vecan/can0/Forward/solarcharger/1/DcDataInstance1
Settings/Vecan/can0/Forward/solarcharger/1/Description2
Settings/Vecan/can0/Forward/solarcharger/1/IdentityNumber
Settings/Vecan/can0/Forward/solarcharger/1/Instance
Settings/Vecan/can0/Forward/solarcharger/1/Nad
Settings/Vecan/can0/Forward/solarcharger/1/SystemInstance
Settings/Vecan/can0/Forward/solarcharger/258/DcDataInstance0
Settings/Vecan/can0/Forward/solarcharger/258/DcDataInstance1
Settings/Vecan/can0/Forward/solarcharger/258/Description2
Settings/Vecan/can0/Forward/solarcharger/258/IdentityNumber
Settings/Vecan/can0/Forward/solarcharger/258/Instance
Settings/Vecan/can0/Forward/solarcharger/258/Nad
Settings/Vecan/can0/Forward/solarcharger/258/SystemInstance
Ancienne méthode :
1.
Listez les périphériques :
Page 107
Color Control GX Manuel
233
0
<- Data instance for main voltage measur
1
<- Data instance for starter or mid-volt
15
1
<- Source address - no need, also not go
0
<- Data instance for switchbank
0
0
1
25
0
36
0
0
<- Battery voltage & current
1
<- PV voltage & current
24
0
36
0
0
1
23
0
36
0
Intégration du Marine MFD par NMEA
2000