Dear sir ,
In this my NAD is 06 I have change in my LDF.i have also attached LDF
Today I have trying to change the PID by using Assign frame ID range by sending the frame as shown below from master ,but it is showing
Negative response please help me out in this problem.
Thanks
Original Attachment has been moved to: LDF_example.ldf.zip
Hi deepak,
Since this question/discussion is here twice, we could continue in just once:
https://community.freescale.com/thread/386513
Have a great day,
RadekS
1.now i have to add some additional feature in our diagnostic class 2 as required by customer as listed below .
reset , information , hw vesion, sw version etc i have to the use SID c6,c8 in our slave but i don't know how to do ,please suggest .
for example for reset .and information of ecu are listed below
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!
-----------------------------------------------------------------------------------------------------------------------