You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gi...@apache.org on 2022/01/21 00:12:09 UTC

[incubator-nuttx-website] branch asf-site updated: Publishing web: adbba922a8890b650c27ecac31f9d26fe25e1ec4 docs: d846bb0235bd5c4b832a7239b4efd4c98523f7e6

This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 0d8f9f6  Publishing web: adbba922a8890b650c27ecac31f9d26fe25e1ec4 docs: d846bb0235bd5c4b832a7239b4efd4c98523f7e6
0d8f9f6 is described below

commit 0d8f9f6588f475c0758ff925f414e382c38bdc15
Author: Alin <al...@sony.com>
AuthorDate: Fri Jan 21 00:10:48 2022 +0000

    Publishing web: adbba922a8890b650c27ecac31f9d26fe25e1ec4 docs: d846bb0235bd5c4b832a7239b4efd4c98523f7e6
---
 content/docs/10.0.0/index.html                     |   2 +-
 content/docs/10.0.1/index.html                     |   2 +-
 content/docs/10.1.0/index.html                     |   2 +-
 content/docs/10.2.0/index.html                     |   2 +-
 .../docs/latest/_sources/guides/cpp_cmake.rst.txt  |   2 +-
 .../docs/latest/_sources/guides/simulator.rst.txt  |  46 ++++++++++++++++-
 content/docs/latest/guides/cpp_cmake.html          |   2 +-
 content/docs/latest/guides/index.html              |   1 +
 content/docs/latest/guides/simulator.html          |  55 +++++++++++++++++++++
 content/docs/latest/index.html                     |   2 +-
 content/docs/latest/objects.inv                    | Bin 33169 -> 33211 bytes
 content/docs/latest/searchindex.js                 |   2 +-
 content/feed.xml                                   |   4 +-
 13 files changed, 111 insertions(+), 11 deletions(-)

diff --git a/content/docs/10.0.0/index.html b/content/docs/10.0.0/index.html
index 8907fc3..9ad4936 100644
--- a/content/docs/10.0.0/index.html
+++ b/content/docs/10.0.0/index.html
@@ -207,7 +207,7 @@ by following these <a class="reference internal" href="contributing/documentatio
 <div class="section" id="nuttx-documentation">
 <h1>NuttX Documentation<a class="headerlink" href="#nuttx-documentation" title="Permalink to this headline">¶</a></h1>
 <p>NuttX is a real-time operating system (RTOS) with an emphasis on standards compliance and small footprint. Scalable from 8-bit to 32-bit microcontroller environments, the primary governing standards in NuttX are Posix and ANSI standards. Additional standard APIs from Unix and other common RTOS’s (such as VxWorks) are adopted for functionality not available under these standards, or for functionality that is not appropriate for deeply-embedded environments (such as fork()).</p>
-<p>Last Updated: 20 January 22 at 00:06</p>
+<p>Last Updated: 21 January 22 at 00:07</p>
 <div class="toctree-wrapper compound">
 <p class="caption"><span class="caption-text">Table of Contents</span></p>
 <ul class="current">
diff --git a/content/docs/10.0.1/index.html b/content/docs/10.0.1/index.html
index 416554c..c1a5f96 100644
--- a/content/docs/10.0.1/index.html
+++ b/content/docs/10.0.1/index.html
@@ -215,7 +215,7 @@ by following these <a class="reference internal" href="contributing/documentatio
 <div class="section" id="nuttx-documentation">
 <h1>NuttX Documentation<a class="headerlink" href="#nuttx-documentation" title="Permalink to this headline">¶</a></h1>
 <p>NuttX is a real-time operating system (RTOS) with an emphasis on standards compliance and small footprint. Scalable from 8-bit to 32-bit microcontroller environments, the primary governing standards in NuttX are Posix and ANSI standards. Additional standard APIs from Unix and other common RTOS’s (such as VxWorks) are adopted for functionality not available under these standards, or for functionality that is not appropriate for deeply-embedded environments (such as fork()).</p>
-<p>Last Updated: 20 January 22 at 00:07</p>
+<p>Last Updated: 21 January 22 at 00:07</p>
 <div class="toctree-wrapper compound">
 <p class="caption"><span class="caption-text">Table of Contents</span></p>
 <ul class="current">
diff --git a/content/docs/10.1.0/index.html b/content/docs/10.1.0/index.html
index 26544b6..bce06e8 100644
--- a/content/docs/10.1.0/index.html
+++ b/content/docs/10.1.0/index.html
@@ -215,7 +215,7 @@ by following these <a class="reference internal" href="contributing/documentatio
 <div class="section" id="nuttx-documentation">
 <h1>NuttX Documentation<a class="headerlink" href="#nuttx-documentation" title="Permalink to this headline">¶</a></h1>
 <p>NuttX is a real-time operating system (RTOS) with an emphasis on standards compliance and small footprint. Scalable from 8-bit to 64-bit microcontroller environments, the primary governing standards in NuttX are POSIX and ANSI standards. Additional standard APIs from Unix and other common RTOS’s (such as VxWorks) are adopted for functionality not available under these standards, or for functionality that is not appropriate for deeply-embedded environments (such as fork()).</p>
-<p>Last Updated: 20 January 22 at 00:07</p>
+<p>Last Updated: 21 January 22 at 00:08</p>
 <div class="toctree-wrapper compound">
 <p class="caption"><span class="caption-text">Table of Contents</span></p>
 <ul class="current">
diff --git a/content/docs/10.2.0/index.html b/content/docs/10.2.0/index.html
index 2f1bd74..ef235e7 100644
--- a/content/docs/10.2.0/index.html
+++ b/content/docs/10.2.0/index.html
@@ -216,7 +216,7 @@ by following these <a class="reference internal" href="contributing/documentatio
 <div class="section" id="nuttx-documentation">
 <h1>NuttX Documentation<a class="headerlink" href="#nuttx-documentation" title="Permalink to this headline">¶</a></h1>
 <p>NuttX is a real-time operating system (RTOS) with an emphasis on standards compliance and small footprint. Scalable from 8-bit to 64-bit microcontroller environments, the primary governing standards in NuttX are POSIX and ANSI standards. Additional standard APIs from Unix and other common RTOS’s (such as VxWorks) are adopted for functionality not available under these standards, or for functionality that is not appropriate for deeply-embedded environments (such as fork()).</p>
-<p>Last Updated: 20 January 22 at 00:07</p>
+<p>Last Updated: 21 January 22 at 00:08</p>
 <div class="toctree-wrapper compound">
 <p class="caption"><span class="caption-text">Table of Contents</span></p>
 <ul class="current">
diff --git a/content/docs/latest/_sources/guides/cpp_cmake.rst.txt b/content/docs/latest/_sources/guides/cpp_cmake.rst.txt
index 6540dc3..498f5ed 100644
--- a/content/docs/latest/_sources/guides/cpp_cmake.rst.txt
+++ b/content/docs/latest/_sources/guides/cpp_cmake.rst.txt
@@ -88,7 +88,7 @@ Creating the project
 
     include(cmake/stm32f4discovery.cmake)
 
-    set(AC_COMMON_FLAGS "${AC_COMMON_FLAGS} -fno-builtin -Wall -Wshadow -Wundef -fno-strict-aliasing -fomit-frame-pointer -Os")
+    set(AC_COMMON_FLAGS "${AC_COMMON_FLAGS} -fno-builtin -Wall -Wshadow -Wundef -fno-strict-aliasing -Os")
     set(AC_COMMON_FLAGS "${AC_COMMON_FLAGS} -D_DEBUG -D_LIBCPP_BUILD_STATIC -D_LIBCPP_NO_EXCEPTIONS ")
     set(AC_COMMON_FLAGS "${AC_COMMON_FLAGS} -fno-exceptions -fcheck-new -fno-rtti -pedantic ")
     set(AC_COMMON_FLAGS "${AC_COMMON_FLAGS} -nostdinc++")
diff --git a/content/docs/latest/_sources/guides/simulator.rst.txt b/content/docs/latest/_sources/guides/simulator.rst.txt
index a97ff55..33ca821 100644
--- a/content/docs/latest/_sources/guides/simulator.rst.txt
+++ b/content/docs/latest/_sources/guides/simulator.rst.txt
@@ -172,16 +172,60 @@ Accessing the Network
 
    Success!
 
+Testing / capturing TCP network traffic
+---------------------------------------
+
+#. Start Wireshark (or tcpdump) on Linux and capture the appeared tap0 interface.
+
+#. Optionally activate emulating packet loss on Linux:
+
+    .. code-block:: console
+
+       $ sudo iptables -A INPUT -p tcp --dport 31337 -m statistic --mode random --probability 0.01 -j DROP
+
+#. Run netcat server on Linux:
+
+    .. code-block:: console
+
+       $ netcat -l -p 31337
+
+#. Run netcat client on Apache NuttX:
+
+    .. code-block:: console
+
+       nsh> dd if=/dev/zero of=/tmp/test.bin count=1000
+       nsh> netcat LINUX_HOST_IP_ADDRESS 31337 /tmp/test.bin
+
+#. Observe TCP network traffic in Wireshark / tcpdump on Linux.
+
 Stopping
 --------
 
-If you don't have an nsh prompt, the only effective way to stop the simulator is kill it from another terminal:
+#. The normal way to stop:
+
+    .. code-block:: console
+
+       nsh> poweroff
+       $
+       $ # we're back at the Linux prompt.
+
+   If you don't have an nsh prompt, the only effective way to stop the simulator is kill it from another terminal:
 
     .. code-block:: console
 
        $ pkill nuttx
 
+#. Optionally deactivate emulating packet loss on Linux:
+
+    .. code-block:: console
+
+       $ sudo iptables -D INPUT -p tcp --dport 31337 -m statistic --mode random --probability 0.01 -j DROP
+
+#. If you do not need tap0 interface anymore, it can be disabled on Linux as follows:
+
+    .. code-block:: console
 
+       $ sudo ./tools/simhostroute.sh wlan0 off
 
 Debugging
 ---------
diff --git a/content/docs/latest/guides/cpp_cmake.html b/content/docs/latest/guides/cpp_cmake.html
index ab188de..6168c15 100644
--- a/content/docs/latest/guides/cpp_cmake.html
+++ b/content/docs/latest/guides/cpp_cmake.html
@@ -299,7 +299,7 @@ make export procedure done before.</p>
 
 <span class="nb">include</span><span class="p">(</span><span class="s">cmake/stm32f4discovery.cmake</span><span class="p">)</span>
 
-<span class="nb">set</span><span class="p">(</span><span class="s">AC_COMMON_FLAGS</span> <span class="s2">&quot;${AC_COMMON_FLAGS} -fno-builtin -Wall -Wshadow -Wundef -fno-strict-aliasing -fomit-frame-pointer -Os&quot;</span><span class="p">)</span>
+<span class="nb">set</span><span class="p">(</span><span class="s">AC_COMMON_FLAGS</span> <span class="s2">&quot;${AC_COMMON_FLAGS} -fno-builtin -Wall -Wshadow -Wundef -fno-strict-aliasing -Os&quot;</span><span class="p">)</span>
 <span class="nb">set</span><span class="p">(</span><span class="s">AC_COMMON_FLAGS</span> <span class="s2">&quot;${AC_COMMON_FLAGS} -D_DEBUG -D_LIBCPP_BUILD_STATIC -D_LIBCPP_NO_EXCEPTIONS &quot;</span><span class="p">)</span>
 <span class="nb">set</span><span class="p">(</span><span class="s">AC_COMMON_FLAGS</span> <span class="s2">&quot;${AC_COMMON_FLAGS} -fno-exceptions -fcheck-new -fno-rtti -pedantic &quot;</span><span class="p">)</span>
 <span class="nb">set</span><span class="p">(</span><span class="s">AC_COMMON_FLAGS</span> <span class="s2">&quot;${AC_COMMON_FLAGS} -nostdinc++&quot;</span><span class="p">)</span>
diff --git a/content/docs/latest/guides/index.html b/content/docs/latest/guides/index.html
index 504a452..e05dfee 100644
--- a/content/docs/latest/guides/index.html
+++ b/content/docs/latest/guides/index.html
@@ -231,6 +231,7 @@
 <li class="toctree-l1"><a class="reference internal" href="simulator.html">Simulator</a><ul>
 <li class="toctree-l2"><a class="reference internal" href="simulator.html#compiling">Compiling</a></li>
 <li class="toctree-l2"><a class="reference internal" href="simulator.html#accessing-the-network">Accessing the Network</a></li>
+<li class="toctree-l2"><a class="reference internal" href="simulator.html#testing-capturing-tcp-network-traffic">Testing / capturing TCP network traffic</a></li>
 <li class="toctree-l2"><a class="reference internal" href="simulator.html#stopping">Stopping</a></li>
 <li class="toctree-l2"><a class="reference internal" href="simulator.html#debugging">Debugging</a></li>
 </ul>
diff --git a/content/docs/latest/guides/simulator.html b/content/docs/latest/guides/simulator.html
index 35d5cd6..1ca789f 100644
--- a/content/docs/latest/guides/simulator.html
+++ b/content/docs/latest/guides/simulator.html
@@ -140,6 +140,7 @@
 <li class="toctree-l2 current"><a class="current reference internal" href="#">Simulator</a><ul>
 <li class="toctree-l3"><a class="reference internal" href="#compiling">Compiling</a></li>
 <li class="toctree-l3"><a class="reference internal" href="#accessing-the-network">Accessing the Network</a></li>
+<li class="toctree-l3"><a class="reference internal" href="#testing-capturing-tcp-network-traffic">Testing / capturing TCP network traffic</a></li>
 <li class="toctree-l3"><a class="reference internal" href="#stopping">Stopping</a></li>
 <li class="toctree-l3"><a class="reference internal" href="#debugging">Debugging</a></li>
 </ul>
@@ -394,14 +395,68 @@ Internet:</p>
 </li>
 </ol>
 </div>
+<div class="section" id="testing-capturing-tcp-network-traffic">
+<h2>Testing / capturing TCP network traffic<a class="headerlink" href="#testing-capturing-tcp-network-traffic" title="Permalink to this headline">¶</a></h2>
+<ol class="arabic">
+<li><p>Start Wireshark (or tcpdump) on Linux and capture the appeared tap0 interface.</p></li>
+<li><p>Optionally activate emulating packet loss on Linux:</p>
+<blockquote>
+<div><div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>sudo iptables -A INPUT -p tcp --dport <span class="m">31337</span> -m statistic --mode random --probability <span class="m">0</span>.01 -j DROP
+</pre></div>
+</div>
+</div></blockquote>
+</li>
+<li><p>Run netcat server on Linux:</p>
+<blockquote>
+<div><div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>netcat -l -p <span class="m">31337</span>
+</pre></div>
+</div>
+</div></blockquote>
+</li>
+<li><p>Run netcat client on Apache NuttX:</p>
+<blockquote>
+<div><div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="go">nsh&gt; dd if=/dev/zero of=/tmp/test.bin count=1000</span>
+<span class="go">nsh&gt; netcat LINUX_HOST_IP_ADDRESS 31337 /tmp/test.bin</span>
+</pre></div>
+</div>
+</div></blockquote>
+</li>
+<li><p>Observe TCP network traffic in Wireshark / tcpdump on Linux.</p></li>
+</ol>
+</div>
 <div class="section" id="stopping">
 <h2>Stopping<a class="headerlink" href="#stopping" title="Permalink to this headline">¶</a></h2>
+<ol class="arabic">
+<li><p>The normal way to stop:</p>
+<blockquote>
+<div><div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="go">nsh&gt; poweroff</span>
+<span class="gp">$</span>
+<span class="gp">$ </span><span class="c1"># we&#39;re back at the Linux prompt.</span>
+</pre></div>
+</div>
+</div></blockquote>
 <p>If you don’t have an nsh prompt, the only effective way to stop the simulator is kill it from another terminal:</p>
 <blockquote>
 <div><div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>pkill nuttx
 </pre></div>
 </div>
 </div></blockquote>
+</li>
+<li><p>Optionally deactivate emulating packet loss on Linux:</p>
+<blockquote>
+<div><div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>sudo iptables -D INPUT -p tcp --dport <span class="m">31337</span> -m statistic --mode random --probability <span class="m">0</span>.01 -j DROP
+</pre></div>
+</div>
+</div></blockquote>
+</li>
+<li><p>If you do not need tap0 interface anymore, it can be disabled on Linux as follows:</p>
+<blockquote>
+<div><div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>sudo ./tools/simhostroute.sh wlan0 off
+</pre></div>
+</div>
+</div></blockquote>
+</li>
+</ol>
 </div>
 <div class="section" id="debugging">
 <h2>Debugging<a class="headerlink" href="#debugging" title="Permalink to this headline">¶</a></h2>
diff --git a/content/docs/latest/index.html b/content/docs/latest/index.html
index f0b0ead..ef235e7 100644
--- a/content/docs/latest/index.html
+++ b/content/docs/latest/index.html
@@ -216,7 +216,7 @@ by following these <a class="reference internal" href="contributing/documentatio
 <div class="section" id="nuttx-documentation">
 <h1>NuttX Documentation<a class="headerlink" href="#nuttx-documentation" title="Permalink to this headline">¶</a></h1>
 <p>NuttX is a real-time operating system (RTOS) with an emphasis on standards compliance and small footprint. Scalable from 8-bit to 64-bit microcontroller environments, the primary governing standards in NuttX are POSIX and ANSI standards. Additional standard APIs from Unix and other common RTOS’s (such as VxWorks) are adopted for functionality not available under these standards, or for functionality that is not appropriate for deeply-embedded environments (such as fork()).</p>
-<p>Last Updated: 20 January 22 at 00:08</p>
+<p>Last Updated: 21 January 22 at 00:08</p>
 <div class="toctree-wrapper compound">
 <p class="caption"><span class="caption-text">Table of Contents</span></p>
 <ul class="current">
diff --git a/content/docs/latest/objects.inv b/content/docs/latest/objects.inv
index a5e5a6b..294c7b1 100644
Binary files a/content/docs/latest/objects.inv and b/content/docs/latest/objects.inv differ
diff --git a/content/docs/latest/searchindex.js b/content/docs/latest/searchindex.js
index e44e46a..013a967 100644
--- a/content/docs/latest/searchindex.js
+++ b/content/docs/latest/searchindex.js
@@ -1 +1 @@
-Search.setIndex({docnames:["applications/index","applications/nsh/builtin","applications/nsh/commands","applications/nsh/config","applications/nsh/customizing","applications/nsh/index","applications/nsh/installation","applications/nsh/login","applications/nsh/nsh","components/binfmt","components/drivers/block/index","components/drivers/character/analog","components/drivers/character/can","components/drivers/character/foc","components/drivers/character/index","components/drivers/character [...]
\ No newline at end of file
+Search.setIndex({docnames:["applications/index","applications/nsh/builtin","applications/nsh/commands","applications/nsh/config","applications/nsh/customizing","applications/nsh/index","applications/nsh/installation","applications/nsh/login","applications/nsh/nsh","components/binfmt","components/drivers/block/index","components/drivers/character/analog","components/drivers/character/can","components/drivers/character/foc","components/drivers/character/index","components/drivers/character [...]
\ No newline at end of file
diff --git a/content/feed.xml b/content/feed.xml
index 8ba0c61..15c5059 100644
--- a/content/feed.xml
+++ b/content/feed.xml
@@ -5,8 +5,8 @@
     <description></description>
     <link>/</link>
     <atom:link href="/feed.xml" rel="self" type="application/rss+xml"/>
-    <pubDate>Thu, 20 Jan 2022 00:09:36 +0000</pubDate>
-    <lastBuildDate>Thu, 20 Jan 2022 00:09:36 +0000</lastBuildDate>
+    <pubDate>Fri, 21 Jan 2022 00:10:46 +0000</pubDate>
+    <lastBuildDate>Fri, 21 Jan 2022 00:10:46 +0000</lastBuildDate>
     <generator>Jekyll v3.8.5</generator>
     
       <item>