<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Example code for sending and receiving LIN diagnostic message? in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Example-code-for-sending-and-receiving-LIN-diagnostic-message/m-p/1350894#M12341</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need master code for sending and receiving message.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Driver-SDK 3.0 version&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Pankaj prasad&lt;/P&gt;</description>
    <pubDate>Wed, 06 Oct 2021 05:27:58 GMT</pubDate>
    <dc:creator>pankajprasad100</dc:creator>
    <dc:date>2021-10-06T05:27:58Z</dc:date>
    <item>
      <title>Example code for sending and receiving LIN diagnostic message?</title>
      <link>https://community.nxp.com/t5/S32K/Example-code-for-sending-and-receiving-LIN-diagnostic-message/m-p/1349436#M12294</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working on a project in which i need to send and receive LIN diagnostics message using apis.&lt;/P&gt;&lt;P&gt;I need an example code for the diagnostic communication.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;location:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; SDK&amp;gt;middleware&amp;gt;lin&amp;gt;transport&amp;gt;lin_commontl_api.c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Diagnostic request ID-3C&lt;/P&gt;&lt;P&gt;For example i need to send&amp;nbsp;&lt;/P&gt;&lt;P&gt;7E 02 10 03 00 00 00 00&lt;/P&gt;&lt;P&gt;Diagnostic Response ID-3D&lt;/P&gt;&lt;P&gt;&amp;nbsp;35 02 50 03 00 00 00 00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MCU-S32K116&lt;/P&gt;&lt;P&gt;Complier-IAR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Pankaj prasad&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 05:37:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Example-code-for-sending-and-receiving-LIN-diagnostic-message/m-p/1349436#M12294</guid>
      <dc:creator>pankajprasad100</dc:creator>
      <dc:date>2021-10-01T05:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Example code for sending and receiving LIN diagnostic message?</title>
      <link>https://community.nxp.com/t5/S32K/Example-code-for-sending-and-receiving-LIN-diagnostic-message/m-p/1349989#M12317</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;are you asking for master or slave demo code?&lt;BR /&gt;What is the driver (SDK, RTD) version you are using?&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 10:46:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Example-code-for-sending-and-receiving-LIN-diagnostic-message/m-p/1349989#M12317</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2021-10-04T10:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Example code for sending and receiving LIN diagnostic message?</title>
      <link>https://community.nxp.com/t5/S32K/Example-code-for-sending-and-receiving-LIN-diagnostic-message/m-p/1350894#M12341</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need master code for sending and receiving message.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Driver-SDK 3.0 version&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Pankaj prasad&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 05:27:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Example-code-for-sending-and-receiving-LIN-diagnostic-message/m-p/1350894#M12341</guid>
      <dc:creator>pankajprasad100</dc:creator>
      <dc:date>2021-10-06T05:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Example code for sending and receiving LIN diagnostic message?</title>
      <link>https://community.nxp.com/t5/S32K/Example-code-for-sending-and-receiving-LIN-diagnostic-message/m-p/1352638#M12387</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;see response I got from SW team...&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#3366FF"&gt;Base on the information which our customer provided, I have some question as below:&lt;/FONT&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Diagnostic request ID-3C&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;For example i need to send&lt;/P&gt;
&lt;P&gt;7E &lt;FONT color="#FF6600"&gt;02 &lt;/FONT&gt;10 03&lt;FONT color="#FF6600"&gt; 00 00 00 00&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#3366FF"&gt;[Diep] For my understand, the diagnostic request (3C) is sent with length = 0x02. So, the unused data should be 0xFF instead of 0x00.&lt;/FONT&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Diagnostic Response ID-3D&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;35 02 50 03 00 00 00 00&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#3366FF"&gt;[Diep] Because diagnostic request is sent with &lt;FONT color="#FF6600"&gt;NAD = 0x7E(Functional NAD)&lt;/FONT&gt;, &lt;FONT color="#FF6600"&gt;the master node should not send diagnostic response header after that. Slave node only receive functional request and do not transmit the response&lt;/FONT&gt;. You can see image below or chapter 5.4, 5.5 of LIN_Specification_Package_2.2A to more detail.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PetrS_0-1633692854856.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/158622i69F0DB06AEC64370/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PetrS_0-1633692854856.jpeg" alt="PetrS_0-1633692854856.jpeg" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#3366FF"&gt;Please help me to confirm with our customer.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;BR, Petr&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 11:38:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Example-code-for-sending-and-receiving-LIN-diagnostic-message/m-p/1352638#M12387</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2021-10-08T11:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Example code for sending and receiving LIN diagnostic message?</title>
      <link>https://community.nxp.com/t5/S32K/Example-code-for-sending-and-receiving-LIN-diagnostic-message/m-p/1407513#M13855</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Apologies&lt;SPAN&gt;&amp;nbsp;for the late reply&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;Question-1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;Base on the information which our customer provided, I have some question as below:&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Diagnostic request ID-3C&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;For example i need to send&lt;/P&gt;&lt;P&gt;7E&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#FF6600"&gt;02&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;10 03&lt;FONT color="#FF6600"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;00 00 00 00&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;[Diep] For my understand, the diagnostic request (3C) is sent with length = 0x02. So, the unused data should be 0xFF instead of 0x00.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;Ans- Yes unused data will be 0XFF.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;Question-2&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Diagnostic Response ID-3D&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;35 02 50 03 00 00 00 00&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;[Diep] Because diagnostic request is sent with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#FF6600"&gt;NAD = 0x7E(Functional NAD)&lt;/FONT&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#FF6600"&gt;the master node should not send diagnostic response header after that. Slave node only receive functional request and do not transmit the response&lt;/FONT&gt;. You can see image below or chapter 5.4, 5.5 of LIN_Specification_Package_2.2A to more detail.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;Ans:- Usually in diagnostics we send the Master Req and also we send the diagnostics response header from the master&amp;nbsp; where slave just update the buffer with the data.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pankajprasad100_0-1643709849859.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/169321i1DCC44839D7E69A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pankajprasad100_0-1643709849859.png" alt="pankajprasad100_0-1643709849859.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For reference I need some code like this-&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32K/S32K-SDK-LIN-Stack-not-working-properly-with-UDS/m-p/1313360" target="_blank" rel="noopener"&gt;Solved: S32K SDK LIN Stack not working properly with UDS - NXP Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Above link is for slave but we need master.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Pankaj prasad&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 12:28:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Example-code-for-sending-and-receiving-LIN-diagnostic-message/m-p/1407513#M13855</guid>
      <dc:creator>pankajprasad100</dc:creator>
      <dc:date>2022-02-01T12:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Example code for sending and receiving LIN diagnostic message?</title>
      <link>https://community.nxp.com/t5/S32K/Example-code-for-sending-and-receiving-LIN-diagnostic-message/m-p/1789181#M30680</link>
      <description>Hi team we need a quick support for Lin diagnostic services like 3E 27&lt;BR /&gt;&lt;BR /&gt;some sample code for implementation of the above mentioned services.&lt;BR /&gt;our device will be acting as a master.&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Tue, 16 Jan 2024 06:29:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Example-code-for-sending-and-receiving-LIN-diagnostic-message/m-p/1789181#M30680</guid>
      <dc:creator>HanamantKaluti</dc:creator>
      <dc:date>2024-01-16T06:29:12Z</dc:date>
    </item>
  </channel>
</rss>

