I have list of PIds which belong to table of Titan decoder. Using these PIds i want to get the parameter name. For example in Decoder overview table,
PID - 1112
Parameter name - Decoding
Im trying to find extension methods to find this, but we can only get value of those PID. If someone can help me with this, it would be great.
Hi,
To provide an answer based on the comment on the answer of Miguel.
If the protocolName and protocolVersion is available and based on this the GetProtocolInfoResponseMessage is retrieved, then this response message contains the needed information.
When there is GetProtocolInfoReponseMessage protocolInfo available, then protocolInfo.Parameters contains a collection of all parameters. In this case, the most interesting properties are: ID (=parameter ID), Description (=displayed name of the parameter). A table parameter will have IsTable = true. A table column parameter will have IsTableColumn = true and ParentTablePid will refer to the parent ID of the parameter it belongs to (or ParentTable property provides direct access to the parameter definition of the table it belongs to).
There is no straight forward message to have a mapping between parameter IDs and their names, but by iterating the protocolInfo.Parameters collection and a bit of puzzling should result into seeing the tables and their column names and pids.
DISCLAIMER: be careful when using _engine.SendSLNetSingleResponseMessage as it can have far-reaching consequences on the functionality of your DataMiner System.
Regards,