-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XDR Mappings PGN-127506 (DC Detailed Status) #65
Comments
Most probably it can be integrated. |
I did not find any standard for that XDR, the only thing that I found is XDR can be expanded or adapted by the manufacturer.
There is a list of standard Transducer Types: And a list of standard Units Transducer types can be customized (like: "MAGX", "SOC", "TTZ") I´m using esp8266 with micropython so I can not use the library. The idea is to make sensors or devices with a few lines of code. |
Yes I know about the types/units you mentioned. But none of them really fit's. Basically to support any kind of user defined mapping we would need to extend the mapping definitions to also be able to set the transducer type, the unit and the PGN+field you would like to map to. |
Here is a reference in another project maritime-labs/calypso-anemometer#21 (comment) for battery level. On the other hand, could be G for Generic and ", ," for not specified unit. To adapt the value to the desired PNG unit, the solution could be a scaling factor like Openplotter i2c app. |
I´m using an esp8266 to send the battery information over TCP to the esp32-nmea2K. Messages are in nmea0183 format with XDR sentences
For example:
$JCXDR,U,12.0,V,I,2.5,A,C,25.0,C,BAT1*hh
I can read voltage, amperage, and battery temperature on esp32 using XDR mappings with that sentence.
But I have more information about the battery, in particular, 2 more values that are interesting
State of Charge (SoC) - The remaining percentage of charge (%)
Time Till Zero Charge (TTZ) - Time to discharge the battery (seconds)
These two values can be included in the XDR sentence:
$JCXDR,U,12.0,V,I,2.5,A,C,25.0,C,SOC,50.0,,TTZ,3520,,BAT1*hh
The n2k PNG that has that information is 127506. That sentence is not present in the project, but fortunately, the nmea2000 library supports it!
https://github.com/ttlappalainen/NMEA2000/blob/5e4fb0a49f4832f134878054da1ce8e4d700ee55/src/N2kMessages.h#L1981
The question is. Can be integrated? is there any challenge?
The text was updated successfully, but these errors were encountered: