<?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: Using Socket API in imxrt1176 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Using-Socket-API-in-imxrt1176/m-p/1681957#M208698</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Sorry for late reply. I was busy with other tasks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks for the files. I have written the client socket code as you mentioned in the attached file. And I am running a server on my laptop written using python. Everything is working fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue I am facing is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;1) When I am trying to receive data over socket, its not receiving correctly. Like if I am sending "Hello", its receiving as "Hell" or "llo", etc.&amp;nbsp;Though its receiving correctly also sometimes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Correct me if I am wrong, I suspect a problem is in:&lt;/P&gt;&lt;P&gt;1) Send socket is done using server which is executing send function in an infinite for loop without delay.&lt;/P&gt;&lt;P&gt;2) Recv function is executing on imxrt1176 with 1ms task delay.&lt;/P&gt;&lt;P&gt;3) Is the issue related to timing?&amp;nbsp;&lt;/P&gt;&lt;P&gt;and also if I want to set socket in non-blocking state, I can't see any non-blocking option under setsockopt() function. But in send and recv function, under flags parameters it can be given. Is it correct or I am missing something?&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jul 2023 10:28:21 GMT</pubDate>
    <dc:creator>Devaharsha</dc:creator>
    <dc:date>2023-07-05T10:28:21Z</dc:date>
    <item>
      <title>Using Socket API in imxrt1176</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Using-Socket-API-in-imxrt1176/m-p/1664167#M207170</link>
      <description>&lt;P&gt;Hi &lt;SPAN&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/21410"&gt;@kerry&lt;/a&gt;zhou&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;I have changed my personal email ID to company email ID in the setting. Can you help me, where to change in code for using TCP socket API using ethernet.&lt;/P&gt;&lt;P&gt;Please refer to this thread:&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/Using-TCP-socket-in-LwIP-on-iMXRT1176/m-p/1664154/emcs_t/S2h8ZW1haWx8bWVudGlvbl9zdWJzY3JpcHRpb258TElLMVZBQkU4N0lRVnwxNjY0MTU0fEFUX01FTlRJT05TfGhL#M207166" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/i-MX-Processors/Using-TCP-socket-in-LwIP-on-iMXRT1176/m-p/1664154/emcs_t/S2h8ZW1haWx8bWVudGlvbl9zdWJzY3JpcHRpb258TElLMVZBQkU4N0lRVnwxNjY0MTU0fEFUX01FTlRJT05TfGhL#M207166&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 10:08:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Using-Socket-API-in-imxrt1176/m-p/1664167#M207170</guid>
      <dc:creator>Devaharsha</dc:creator>
      <dc:date>2023-06-06T10:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using Socket API in imxrt1176</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Using-Socket-API-in-imxrt1176/m-p/1667404#M207419</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201385"&gt;@Devaharsha&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Thanks a lot for your cooperation, and sorry for my later reply because of my PTO.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;I already send you the lwip client and server socke code based on the freertos, please check your message attachment:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kerryzhou_0-1686545241936.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/227121iDF14C61A23B0E030/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kerryzhou_0-1686545241936.png" alt="kerryzhou_0-1686545241936.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you still have issues about it, please kindly let me know.&lt;/P&gt;
&lt;P&gt;Wish it helps you!&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 04:47:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Using-Socket-API-in-imxrt1176/m-p/1667404#M207419</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2023-06-12T04:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using Socket API in imxrt1176</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Using-Socket-API-in-imxrt1176/m-p/1681957#M208698</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Sorry for late reply. I was busy with other tasks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks for the files. I have written the client socket code as you mentioned in the attached file. And I am running a server on my laptop written using python. Everything is working fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue I am facing is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;1) When I am trying to receive data over socket, its not receiving correctly. Like if I am sending "Hello", its receiving as "Hell" or "llo", etc.&amp;nbsp;Though its receiving correctly also sometimes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Correct me if I am wrong, I suspect a problem is in:&lt;/P&gt;&lt;P&gt;1) Send socket is done using server which is executing send function in an infinite for loop without delay.&lt;/P&gt;&lt;P&gt;2) Recv function is executing on imxrt1176 with 1ms task delay.&lt;/P&gt;&lt;P&gt;3) Is the issue related to timing?&amp;nbsp;&lt;/P&gt;&lt;P&gt;and also if I want to set socket in non-blocking state, I can't see any non-blocking option under setsockopt() function. But in send and recv function, under flags parameters it can be given. Is it correct or I am missing something?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 10:28:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Using-Socket-API-in-imxrt1176/m-p/1681957#M208698</guid>
      <dc:creator>Devaharsha</dc:creator>
      <dc:date>2023-07-05T10:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using Socket API in imxrt1176</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Using-Socket-API-in-imxrt1176/m-p/1681959#M208699</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201385"&gt;@Devaharsha&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; This case is opened so long time, it is closed automatically by the system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; So, to the new issues, please help to create the new question post, thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 10:31:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Using-Socket-API-in-imxrt1176/m-p/1681959#M208699</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2023-07-05T10:31:06Z</dc:date>
    </item>
  </channel>
</rss>

