<?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: Mfgtools persistant USB connection for increased command throughput in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Mfgtools-persistant-USB-connection-for-increased-command/m-p/1297186#M175949</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I don't know if that would be possible, but the first option may be fine, you may create your own script and if you need to run a commands depending of the result&lt;/P&gt;
&lt;P&gt;For FB use uboot if else command, while for FBK, use shell's if else command&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Aldo.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jun 2021 23:31:50 GMT</pubDate>
    <dc:creator>AldoG</dc:creator>
    <dc:date>2021-06-23T23:31:50Z</dc:date>
    <item>
      <title>Mfgtools persistant USB connection for increased command throughput</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Mfgtools-persistant-USB-connection-for-increased-command/m-p/1282105#M174527</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to use the mfgtools uuu to execute many fastboot ucmd's on the target as fast as possible.&lt;/P&gt;&lt;P&gt;I know of two methods to do this, but both have downsides:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Dump commands into a text file and run 'uuu file.txt'&lt;/LI&gt;&lt;LI&gt;Enter shell mode 'uuu -s' and run commands individually&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The first method will not work for me, since I need to run different commands depending on the output of previous commands. I would have to create new files on the fly and incur the overhead of starting uuu each time.&lt;/P&gt;&lt;P&gt;The second method has a similar problem. Every time a command is entered, it takes half a second or so for the USB connection to re-establish before running the command. I see this message for every command 'New USB Device Attached at 1:23'&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there any way to create a persistent connection in shell mode? &lt;/STRONG&gt;That is, one where it doesn't have to re-connect to the USB device for every command?&lt;/P&gt;&lt;P&gt;Are there other alternatives like using the standard invocation 'uuu file.txt' but tricking uuu into taking input from stdin?&lt;/P&gt;&lt;P&gt;Ultimately, I need to send these commands from a Python script. Is there a better way to do this than starting the uuu executable in Python and piping commands through? Perhaps libuuu could be used separately?&lt;/P&gt;&lt;P&gt;Thanks for any suggestions,&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 00:32:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Mfgtools-persistant-USB-connection-for-increased-command/m-p/1282105#M174527</guid>
      <dc:creator>noperator</dc:creator>
      <dc:date>2021-05-26T00:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Mfgtools persistant USB connection for increased command throughput</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Mfgtools-persistant-USB-connection-for-increased-command/m-p/1297186#M175949</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I don't know if that would be possible, but the first option may be fine, you may create your own script and if you need to run a commands depending of the result&lt;/P&gt;
&lt;P&gt;For FB use uboot if else command, while for FBK, use shell's if else command&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Aldo.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 23:31:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Mfgtools-persistant-USB-connection-for-increased-command/m-p/1297186#M175949</guid>
      <dc:creator>AldoG</dc:creator>
      <dc:date>2021-06-23T23:31:50Z</dc:date>
    </item>
  </channel>
</rss>

