Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

How to interpret NC_ATTR_SOFTWARE_VERSION ??

Hello,

I have a simple question:
How to interpret the attribute Value NC_ATTR_SOFTWARE_VERSION ?

In the MS-registry there is the version 2.1.1.1F1
(I know this is not the recent !)
The Hex code of the Attribute is 0x201010103

Well the zeros seems to be the dots. But what about the "1F1"

greetings from
the Lake of Constance, Germany
juergen
0 Kudos
Message 1 of 2
(3,394 Views)
Hello Juergen,

NC_ATTR_SOFTWARE_VERSION is a 32-bit value, which is compiled out of 4 8-bit values for major, minor, update and build, where 'build' is only set, if you have a beta version of NI-CAN. Thus, 02020003 would mean a major version of '2', a minor version of '2', the 'update' value is '0' and the build is '3' (Beta 3). That decodes to NI-CAN 2.2.0b3 (see the description of ncSetAttr in the NI-CAN Hardware and Software manual).
However, it seems that the 'build' number doesn't decode as expected. If you use the ncGetHardwareInfo()function instead, you get the correct values for 'Version Major', 'Version Minor', 'Version Update', 'Version Phase' and 'Version Build'.

B2k
0 Kudos
Message 2 of 2
(3,394 Views)