buhhe / VolvoPenta-N2K_Interface

GNU General Public License v3.0
14 stars 8 forks source link

trim inclination and the engine's fuel consumption #1

Closed CelsoKupsch closed 9 months ago

CelsoKupsch commented 2 years ago

Hi Buhhe, I found it very interesting what you managed to do I'm assembling my hardware and a doubt arose in your software, how would I go about including the trim inclination and the engine's fuel consumption? Do you know how to include this information?

buhhe commented 2 years ago

Hi Celso, there are two points to be cleared: 1) The data you wish must be available on the VP-bus. My D1-20 MDI sends neither fuel consumption nor trim inclination data as far I know. And I did not find any note that these data are available. But maybe your bus sends these data. 2) The data used in the VP-Canbus are not disclosed by VP, similar to some NMEA2000 data. So it's a question of knowing in which PGN the data can be found if they are really available on the bus. I did many research in the internet an what i found in public sources are only the data which are implemented now. That is RPM, coolant temperature, engine hours and alternator voltage. If you know about public sources describing more VP-PGN's pls. let me know.

If both conditions are met you can extend the "switch" statement from line 137 to:

Look at the code at line 139-144. It's very similar to what you have to do.

CelsoKupsch commented 2 years ago

https://www.marinpro.com/Cms_Data/Contents/powerhouse/Folders/Accessories/AccessoryFiles/~contents/4YD2DR3WYE3MEBNA/OpenCAN_InstallGuideline_rev_1.pdf Hello, I found this document that has the Volvo Penta PGN's for other information. See if I'm understanding correctly: case 65266: Engine fuel rate + Data [?] *constant

buhhe commented 2 years ago

In principle, yes. And you need to find out which bits of the 8-byte payload in this PGN contain the fuel consumption data and how this is represented.