Skip to content

What is new?

Node Simulation v1.2 changes

J1939_MSG in node simulation is updated to ease accessing message attributes, signal values and to support Big Endian signals as given below class J1939_MSG { unsigned __int64 timeStamp; unsigned char cluster; EJ1939_MSG_TYPE msgType; enum EDIRECTION direction; J1939Id id; unsigned int dlc; unsigned char data[1785]; // To set data bool byteAt(int index, unsigned char val); bool wordAt(int index, unsigned short val); bool longAt(int index, unsigned long val); // To get data unsigned char byteAt(int index); unsigned short wordAt(int index); unsigned long longAt(int index); }; class J1939Id { unsigned int extendedId; // Setters void setId(unsigned int _extendedId); void setSourceAddress(unsigned char _sourceAddress) void setPGN(unsigned int _pgn); void setPDUFormat(unsigned char _pduFormat) void setDataPage(unsigned char _dataPage); void setPriority(unsigned char _priority); void setPDUSpecific(unsigned char _pduSpecific); // Getters unsigned char getSourceAddress(); unsigned char getPDUFormat(); unsigned int getPGN(); unsigned char getDataPage(); unsigned char getPriority(); unsigned char getPDUSpecific(); };

Following functions are supported to access/update Signal values To set signal rawvalue or physicalvalue 1. rawvalue(int x); // Type ‘int’ will vary as per the signal type 2. physicalvalue(double x); To get signal rawvalue or physicalvalue 1. rawvalue(); // returns signal rawvalue 2. physicalvalue(); // returns signal physicalvalue For more details, refer ‘Examples’ section under ‘J1939->Node Simulation’

For more details, refer ‘BMJ1939Defines.h’ in installation folder under ‘SimulatedSystems\include’


Authoritative source: BUSMASTER DITA help source what_is_new_nodesim_J1939.dita, compiled into BUSMASTER.CHM with the application.