<?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>MCX MicrocontrollersのトピックRe: Isochronous data transfer - sometimes 4 bytes are lost</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/Isochronous-data-transfer-sometimes-4-bytes-are-lost/m-p/2189225#M4248</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have bought a different camera. It sends in general bigger packets. It is in alternate mode for 3x1024 bytes. Still has problem with missed bytes at small packets - packets with size 128, 140, 94, 74, 77, 115. 4 bytes are lost at the end.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Oct 2025 13:32:00 GMT</pubDate>
    <dc:creator>ivaylo</dc:creator>
    <dc:date>2025-10-20T13:32:00Z</dc:date>
    <item>
      <title>Isochronous data transfer - sometimes 4 bytes are lost</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Isochronous-data-transfer-sometimes-4-bytes-are-lost/m-p/2175015#M4112</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;I use MCXN947, Free-RTOS, USB-host, h264 camera connected, isochronous mode, NXP USB stack.&lt;BR /&gt;At the screenshot from the USB analyzer are surrounded in blue the packets that are missing in the receiving callback the last 4-bytes. There can be noted some pattern which packets are broken, but I am not able to find out what could be the reason for that. I know that in isochronous transfer some packets can be damaged, but here there are so many that the video stream is broken. The broken ones are always with 4 missing bytes at the end. The camera never sends 40 bytes packets or 72 (according the usb analyzer) but often I receive packets with such size (visible at the picture).&lt;/P&gt;&lt;P&gt;Buffer is aligned&lt;BR /&gt;#define cam_buf_max_ 1000&lt;BR /&gt;USB_DMA_NONINIT_DATA_ALIGN(USB_DATA_ALIGN_SIZE) static uint8_t s_CAM_BufferA1[cam_buf_max]; //CAM&lt;BR /&gt;&lt;BR /&gt;static void stream_callback (void *param, uint8_t *data, volatile uint32_t dataLength, usb_status_t status)&lt;BR /&gt;If I&amp;nbsp; clear the buffer fully after the last reception, in the broken received packet there are only zeros beyond dataLength, i,.e. dataLength is correct for the buffer, but somewhere the 4 bytes at the end are lost.&lt;BR /&gt;&lt;BR /&gt;status = USB_HosVideoStreamRecv(handle, s_CAM_BufferA, cam_buf_max, stream_callback, handle);&lt;BR /&gt;USB_HosVideoStreamRecv is part of NXP video class&lt;BR /&gt;interval 1&lt;BR /&gt;maxPacketSize 1000&lt;BR /&gt;numberPerUframe 1&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 12:16:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Isochronous-data-transfer-sometimes-4-bytes-are-lost/m-p/2175015#M4112</guid>
      <dc:creator>ivaylo</dc:creator>
      <dc:date>2025-09-24T12:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Isochronous data transfer - sometimes 4 bytes are lost</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Isochronous-data-transfer-sometimes-4-bytes-are-lost/m-p/2176876#M4120</link>
      <description>&lt;P&gt;&lt;U&gt;Adding some time delays (due to printf by accident) in&amp;nbsp;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;SPAN&gt;void USB_HostEhciTransactionDone(usb_host_ehci_instance_t *ehciInstance)&lt;/SPAN&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;SPAN&gt;if (index == 8U) /* transfer is done */&lt;/SPAN&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;SPAN&gt;improves the situation, i.e. more rarely broken packets are received,&lt;/SPAN&gt;&lt;/U&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Sep 2025 00:24:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Isochronous-data-transfer-sometimes-4-bytes-are-lost/m-p/2176876#M4120</guid>
      <dc:creator>ivaylo</dc:creator>
      <dc:date>2025-09-27T00:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Isochronous data transfer - sometimes 4 bytes are lost</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Isochronous-data-transfer-sometimes-4-bytes-are-lost/m-p/2178051#M4130</link>
      <description>&lt;P&gt;So...&lt;BR /&gt;&lt;SPAN&gt;void USB_HostEhciTransactionDone(usb_host_ehci_instance_t *ehciInstance)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;case USB_ENDPOINT_ISOCHRONOUS:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (index == 8U)&lt;/SPAN&gt;&lt;BR /&gt;From here the bytes are missing. Adding 4 in the datalength gives just zero bytes, so I think it is a hardware issue of the USB module.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2025 09:08:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Isochronous-data-transfer-sometimes-4-bytes-are-lost/m-p/2178051#M4130</guid>
      <dc:creator>ivaylo</dc:creator>
      <dc:date>2025-09-30T09:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Isochronous data transfer - sometimes 4 bytes are lost</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Isochronous-data-transfer-sometimes-4-bytes-are-lost/m-p/2184701#M4190</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/253262"&gt;@ivaylo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="times new roman,times"&gt;I apologize for the late reply. Here are some suggestions:&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT face="times new roman,times"&gt;Please switch your device to the Device Virtual Camera (SDK USB device demo) for testing.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face="times new roman,times"&gt;Try changing the type/model of your camera.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face="times new roman,times"&gt;Consider lowering the FPS .&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face="times new roman,times"&gt;As a workaround, you can add a delay in the &lt;CODE&gt;USB_HostEhciTransactionDone()&lt;/CODE&gt; function.&lt;/FONT&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;FONT face="times new roman,times"&gt;Thank you!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 09:09:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Isochronous-data-transfer-sometimes-4-bytes-are-lost/m-p/2184701#M4190</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2025-10-13T09:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Isochronous data transfer - sometimes 4 bytes are lost</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Isochronous-data-transfer-sometimes-4-bytes-are-lost/m-p/2184819#M4196</link>
      <description>&lt;P&gt;Hello Yang,&lt;/P&gt;&lt;P&gt;Thank you for your answer!&lt;BR /&gt;1. The demo with the virtual camera is a usb device. Here the problem is in a host mode.&lt;BR /&gt;2. It is not so easy to be found h.264 camera. I bought a second one from a different producer but it has different problems and is not an option (tested on a computer).&lt;BR /&gt;3. FPS is already have been lowered. The camera give less small packets when I set an alternate setting for a smaller endpoint - 256 bytes. In this situation I have much less broken frames. And the program stops less often at the brakepoints&amp;nbsp; for packets with size 40 bytes and 72 bytes. With 128bytes already there is no enough bandwidth to be send the video (800x600). Really the problem is only with tiny packets.&lt;BR /&gt;4. I already have added information that I had tested with a such timedelay. Experimented with different values. Now is with the "optimal" one - there is a bit improvement from it, but definitely not sufficient.&lt;BR /&gt;Why the problem is only with very small packets?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 11:21:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Isochronous-data-transfer-sometimes-4-bytes-are-lost/m-p/2184819#M4196</guid>
      <dc:creator>ivaylo</dc:creator>
      <dc:date>2025-10-13T11:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Isochronous data transfer - sometimes 4 bytes are lost</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Isochronous-data-transfer-sometimes-4-bytes-are-lost/m-p/2189225#M4248</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have bought a different camera. It sends in general bigger packets. It is in alternate mode for 3x1024 bytes. Still has problem with missed bytes at small packets - packets with size 128, 140, 94, 74, 77, 115. 4 bytes are lost at the end.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2025 13:32:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Isochronous-data-transfer-sometimes-4-bytes-are-lost/m-p/2189225#M4248</guid>
      <dc:creator>ivaylo</dc:creator>
      <dc:date>2025-10-20T13:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Isochronous data transfer - sometimes 4 bytes are lost</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Isochronous-data-transfer-sometimes-4-bytes-are-lost/m-p/2189336#M4249</link>
      <description />
      <pubDate>Mon, 20 Oct 2025 18:13:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Isochronous-data-transfer-sometimes-4-bytes-are-lost/m-p/2189336#M4249</guid>
      <dc:creator>ivaylo</dc:creator>
      <dc:date>2025-10-20T18:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Isochronous data transfer - sometimes 4 bytes are lost</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Isochronous-data-transfer-sometimes-4-bytes-are-lost/m-p/2202694#M4345</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/253262"&gt;@ivaylo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for the late reply. This case was not initially assigned to me, so I didn’t receive the notification. Since some time has passed, I’d like to check — has your issue been resolved? If not, I’ll be happy to continue working with you.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2025 10:41:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Isochronous-data-transfer-sometimes-4-bytes-are-lost/m-p/2202694#M4345</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2025-11-11T10:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Isochronous data transfer - sometimes 4 bytes are lost</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Isochronous-data-transfer-sometimes-4-bytes-are-lost/m-p/2202757#M4346</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still not solved.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I have tried something that improves the situation - I replaced the USB cable with a different one and added a good USB hub. In this situation I removed the added time delay, because now it was giving a worse result. Maybe there is some jitter issue, but the camera with its original cable works fine with different PCs and the NXP kit should be with good USB trace rooting.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2025 13:22:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Isochronous-data-transfer-sometimes-4-bytes-are-lost/m-p/2202757#M4346</guid>
      <dc:creator>ivaylo</dc:creator>
      <dc:date>2025-11-11T13:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Isochronous data transfer - sometimes 4 bytes are lost</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Isochronous-data-transfer-sometimes-4-bytes-are-lost/m-p/2203117#M4349</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/253262"&gt;@ivaylo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for sharing.&lt;/P&gt;
&lt;P&gt;PC compatibility is indeed stronger than MCU, you are right. When using an MCU, external devices need to be from reputable brands with good quality. We’ve encountered issues before, such as needing a good SD card, a good USB cable, and a good USB drive. It simply doesn’t work well with lower-quality ones.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 02:51:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Isochronous-data-transfer-sometimes-4-bytes-are-lost/m-p/2203117#M4349</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2025-11-12T02:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Isochronous data transfer - sometimes 4 bytes are lost</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Isochronous-data-transfer-sometimes-4-bytes-are-lost/m-p/2203630#M4350</link>
      <description>So.... this was an improvement, not a solution. I don't see any useful registers for optimizing the work of the transceiver, so what could we do next? And as I said before that happens and with a camera from a different producers.&lt;BR /&gt;Otherwise the cam chip is Sonix, which is used and by DELL, so we shouldn't consider it as a low quality.</description>
      <pubDate>Wed, 12 Nov 2025 12:39:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Isochronous-data-transfer-sometimes-4-bytes-are-lost/m-p/2203630#M4350</guid>
      <dc:creator>ivaylo</dc:creator>
      <dc:date>2025-11-12T12:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Isochronous data transfer - sometimes 4 bytes are lost</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Isochronous-data-transfer-sometimes-4-bytes-are-lost/m-p/2204002#M4356</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/253262"&gt;@ivaylo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your reply.&lt;/P&gt;
&lt;P&gt;The detail issue needs to be reproduced , and then we can analyze the specific problem and possible solutions. I know my colleague in your local FAE is working on&amp;nbsp; your this issue. They have&amp;nbsp; already escalated our internal SE team for support. They&amp;nbsp; will send to&amp;nbsp; you with any updates.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2025 01:36:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Isochronous-data-transfer-sometimes-4-bytes-are-lost/m-p/2204002#M4356</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2025-11-13T01:36:37Z</dc:date>
    </item>
  </channel>
</rss>

