Hi deepak,
The Assign Frame ID range command example is in the attached project in the previous thread:
https://community.freescale.com/message/618725#comment-618725
Node ALIN_2 has only 2 configurable PID: 0x22, 0x1F as seen in LDF_example.ldf and in lin_cfg.c: l_u8 lin_configuration_RAM[LIN_SIZE_OF_CFG]= {0x00, 0x22, 0x1F, 0x3C, 0x3D ,0xFF};
If users want to change PID 0x22 to 0x27 for example, Master node should send command as follows:
0x09 (NAD) 0x06 (PCI) 0xB7 (SID) 0x00 (start index) 0x27 (PID index) 0x1F (PID index +1) 0xFF (do not care data) 0xFF (do not care data)
data[0] = 0xB7;
data[1] = 0x00; /* start index = 0 */
data[2] = 0x27; /*Change PID 0x22 to 0x27, for example*/
data[3] = 0x1F; /* Change 0x1F to other value if users want */
data[4] = 0xFF;
data[5] = 0xFF;
ld_send_message(LI0, 6, 0x09, data); //change 0x09 to 0x06 if NAD is 0x06
In case, the master sends wrong command as seen in our customer’s case, the slave will answer with negative response.
I hope it helps you.
Have a great day,
RadekS
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------