ttlappalainen / NMEA2000

NMEA2000 library for Arduino
527 stars 219 forks source link

MIssing PGN Electric Motor drive status 128002 #420

Open chrisclaydon opened 1 month ago

chrisclaydon commented 1 month ago

Hi there, It would be great if you can implement this PGN. I have this list of the fields:

128002 Electric Drive Status (Rapid Update) 1 Inverter/Motor Controller (specifies which system the PGN message relates to.) 2 Active Motor Mode 3 Brake Mode 4 NMEA Reserved 5 Rotational Shaft Speed 6 Motor DC Voltage 7 Motor DC Current

Also found this information on the canboat website: 0x1F402: PGN 128002 - Electric Drive Status, Rapid Update This PGN is used to provide the Electric Propulsion Drive System Status.

This PGN is not fully reverse engineered. Some aspects that are known to be missing/incorrect:

The length of one or more fields is likely incorrect The resolution of one or more fields is likely incorrect One or more of the lookup fields contain missing or incorrect values The PGN has not been seen in any logfiles yet The default transmission interval is not known This single-frame PGN is 8 bytes long and contains 7 fields.

Field # Field Name Description Unit Type 1 Inverter/Motor Controller
0 .. 253 8 bits unsigned [NUMBER] 2 Active Motor Mode
0 .. 2 2 bits unsigned [NUMBER] 0 .. 2 2 bits unsigned [NUMBER] 4 Reserved 4 bits [RESERVED] 5 Rotational Shaft Speed 0.25 [rpm] 0 .. 16383.25 16 bits unsigned [NUMBER] 6 Motor DC Voltage 0.1 [V] 0 .. 6553.3 16 bits unsigned [NUMBER] 7 Motor DC Current 0.1 [A] -3276.7 .. 3276.5 16 bits signed [NUMBER]

ttlappalainen commented 1 month ago

it is not very common, so it does not need to be part of the library. If you have information for it, you can make own module for it under you own code.

newbezz commented 1 month ago

Sometimes it's hard to fantom the extent of the lack of respect people lay bare on the internet. Mr. Lappalainen is a remarkable person, who has put thousands of hours into a library that gives us all access to the N2k world without us having to code our nails off or spend a lot of money. And not sooner has the happy message spread around, before people think that they can just order this and that facility added to the library. This is just not how you work together in this world. Had it been me who had been addressed, I don't think I would have had the mental surplus to give such a kind reply.
People, please show some respect where it's due!

ttlappalainen commented 1 month ago

Not thousands of hours...

newbezz commented 1 month ago

Well, then your work is even more impressive! Please have a nice summer.

Sent from Outlook for Androidhttps://aka.ms/AAb9ysg


From: Timo Lappalainen @.> Sent: Friday, August 9, 2024 6:59:54 AM To: ttlappalainen/NMEA2000 @.> Cc: newbezz @.>; Comment @.> Subject: Re: [ttlappalainen/NMEA2000] MIssing PGN Electric Motor drive status 128002 (Issue #420)

Not thousands of hours...

— Reply to this email directly, view it on GitHubhttps://github.com/ttlappalainen/NMEA2000/issues/420#issuecomment-2277154317, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACOHSAB7MFNB3MLOFGEYCBLZQREEVAVCNFSM6AAAAABMDZEQKOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZXGE2TIMZRG4. You are receiving this because you commented.Message ID: @.***>