<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-2055</id>
	<title>Nabble - MicroControllers</title>
	<updated>2009-11-12T13:50:33Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/MicroControllers-f2055.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/MicroControllers-f2055.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26327321</id>
	<title>Top 20 downloads from Tektronix</title>
	<published>2009-11-12T13:50:33Z</published>
	<updated>2009-11-12T13:50:33Z</updated>
	<author>
		<name>Russell McMahon-4</name>
	</author>
	<content type="html">&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.tek.com/learning/top20/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tek.com/learning/top20/&lt;/a&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://www.piclist.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.piclist.com&lt;/a&gt;&amp;nbsp;PIC/SX FAQ &amp; list archive
&lt;br&gt;View/change your membership options at
&lt;br&gt;&lt;a href=&quot;http://mailman.mit.edu/mailman/listinfo/piclist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.mit.edu/mailman/listinfo/piclist&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PIC----EE--f16319.html&quot; embed=&quot;fixTarget[16319]&quot; target=&quot;_top&quot; &gt;PIC - [EE]&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Top-20-downloads-from-Tektronix-tp26327321p26327321.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26326871</id>
	<title>Re: Windows 7 as NFS server</title>
	<published>2009-11-12T13:23:36Z</published>
	<updated>2009-11-12T13:23:36Z</updated>
	<author>
		<name>Herbert Graf-5</name>
	</author>
	<content type="html">On Thu, 2009-11-12 at 16:42 -0400, M.L. wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Thu, Nov 12, 2009 at 3:46 PM, solarwind &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26326871&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;x.solarwind.x@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; Hey all, does anyone know of free NFS software for windows 7?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Aside from being a terrible idea from a security standpoint..
&lt;br&gt;&amp;gt; Windows back in the day had an optional unix migration component IIRC.
&lt;br&gt;&amp;gt; It supposedly had an NFS server and client.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If I had to do this I would first investigate using utilities compiled
&lt;br&gt;&amp;gt; for Cygwin. I would probably figure out it's a bad idea and use native
&lt;br&gt;&amp;gt; windows shares and Samba on the *nix side, or WebDAV (&amp;quot;web folders&amp;quot;)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In practice when I need to mount a windows share on a linux system
&lt;br&gt;&amp;gt; I've rarely had trouble using Samba as a client.
&lt;/div&gt;&lt;br&gt;I was never able to figure out how to get a Linux machine to connect to
&lt;br&gt;a Vista machine smb share reliably, and haven't been able at all to
&lt;br&gt;connect a Linux machine to Win7 smb share. I'm sure there's some trick,
&lt;br&gt;I just haven't found it.
&lt;br&gt;&lt;br&gt;As a stop gap I installed cygwin and sshd so I could at least get at my
&lt;br&gt;files over sshfs, not ideal, but better then nothing.
&lt;br&gt;&lt;br&gt;TTYL
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://www.piclist.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.piclist.com&lt;/a&gt;&amp;nbsp;PIC/SX FAQ &amp; list archive
&lt;br&gt;View/change your membership options at
&lt;br&gt;&lt;a href=&quot;http://mailman.mit.edu/mailman/listinfo/piclist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.mit.edu/mailman/listinfo/piclist&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PIC----OT--f16320.html&quot; embed=&quot;fixTarget[16320]&quot; target=&quot;_top&quot; &gt;PIC - [OT]&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Windows-7-as-NFS-server-tp26325508p26326871.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26326379</id>
	<title>Re: [TECH] Questions about water jets</title>
	<published>2009-11-12T12:56:05Z</published>
	<updated>2009-11-12T12:56:05Z</updated>
	<author>
		<name>Russell McMahon-4</name>
	</author>
	<content type="html">Even Gargoyle ads knows :-)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &lt;a href=&quot;http://www.gardnerdenverproducts.com/WaterJetting/Default.aspx&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gardnerdenverproducts.com/WaterJetting/Default.aspx&lt;/a&gt;&lt;br&gt;&lt;br&gt;5000-50,000 psi for theirs
&lt;br&gt;&lt;br&gt;Nozzles
&lt;br&gt;&lt;a href=&quot;http://www.gardnerdenverproducts.com/Microsite_ProductNavigation.aspx?id=2494&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gardnerdenverproducts.com/Microsite_ProductNavigation.aspx?id=2494&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;2009/11/13 Russell McMahon &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26326379&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;apptechnz@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;nbsp;&amp;gt; #1 &amp;nbsp; What pressure range do they operate at ?
&lt;br&gt;&amp;gt; &amp;gt; #2 &amp;nbsp; Does the water stream contain abrasives ?
&lt;br&gt;&amp;gt; &amp;gt; #3 &amp;nbsp; What kind of material is used for the nozzle ?
&lt;br&gt;&amp;gt; 1. Gargoyle knows.
&lt;br&gt;&amp;gt; 2. Gargoyle knows.
&lt;br&gt;&amp;gt; 3. Gargoyle knows.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; From fading memory.
&lt;br&gt;&amp;gt; Thousands of psi (insert own unit conversion here).
&lt;br&gt;&amp;gt; Almost invariaby - carborundum / saphire often.
&lt;br&gt;&amp;gt; ?Saphire? (???)(Gargoyle knows).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;Russell
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2009/11/13 YES NOPE9 &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26326379&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;yes@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; #1 &amp;nbsp; What pressure range do they operate at ?
&lt;br&gt;&amp;gt;&amp;gt; #2 &amp;nbsp; Does the water stream contain abrasives ?
&lt;br&gt;&amp;gt;&amp;gt; #3 &amp;nbsp; What kind of material is used for the nozzle ?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Regards
&lt;br&gt;&amp;gt;&amp;gt; Gus
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.piclist.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.piclist.com&lt;/a&gt;&amp;nbsp;PIC/SX FAQ &amp; list archive
&lt;br&gt;&amp;gt;&amp;gt; View/change your membership options at
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://mailman.mit.edu/mailman/listinfo/piclist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.mit.edu/mailman/listinfo/piclist&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://www.piclist.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.piclist.com&lt;/a&gt;&amp;nbsp;PIC/SX FAQ &amp; list archive
&lt;br&gt;View/change your membership options at
&lt;br&gt;&lt;a href=&quot;http://mailman.mit.edu/mailman/listinfo/piclist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.mit.edu/mailman/listinfo/piclist&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/MicroControllers---PIC-f2059.html&quot; embed=&quot;fixTarget[2059]&quot; target=&quot;_top&quot; &gt;MicroControllers - PIC&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-TECH-----Questions-about-water-jets-tp26325330p26326379.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26326155</id>
	<title>Re: [TECH]    Questions about water jets</title>
	<published>2009-11-12T12:49:34Z</published>
	<updated>2009-11-12T12:49:34Z</updated>
	<author>
		<name>Spehro Pefhany</name>
	</author>
	<content type="html">At 02:49 PM 12/11/2009, you wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;#2 &amp;nbsp; Does the water stream contain abrasives ?
&lt;br&gt;&lt;br&gt;Depends on what is to be cut. For cutting metals and ceramics, yes.
&lt;br&gt;For foam, cloth and other soft stuff, generally no..
&lt;br&gt;&lt;br&gt;Google is your friend on this sort of thing..
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;&lt;br&gt;Spehro Pefhany --&amp;quot;it's the network...&amp;quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;The Journey is the reward&amp;quot;
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26326155&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;speff@...&lt;/a&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Info for manufacturers: &lt;a href=&quot;http://www.trexon.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.trexon.com&lt;/a&gt;&lt;br&gt;Embedded software/hardware/analog &amp;nbsp;Info for designers: &amp;nbsp;&lt;a href=&quot;http://www.speff.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.speff.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://www.piclist.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.piclist.com&lt;/a&gt;&amp;nbsp;PIC/SX FAQ &amp; list archive
&lt;br&gt;View/change your membership options at
&lt;br&gt;&lt;a href=&quot;http://mailman.mit.edu/mailman/listinfo/piclist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.mit.edu/mailman/listinfo/piclist&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/MicroControllers---PIC-f2059.html&quot; embed=&quot;fixTarget[2059]&quot; target=&quot;_top&quot; &gt;MicroControllers - PIC&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-TECH-----Questions-about-water-jets-tp26325330p26326155.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26326196</id>
	<title>Re: Windows 7 as NFS server</title>
	<published>2009-11-12T12:42:32Z</published>
	<updated>2009-11-12T12:42:32Z</updated>
	<author>
		<name>M.L.-2</name>
	</author>
	<content type="html">On Thu, Nov 12, 2009 at 3:46 PM, solarwind &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26326196&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;x.solarwind.x@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Hey all, does anyone know of free NFS software for windows 7?
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;Aside from being a terrible idea from a security standpoint..
&lt;br&gt;Windows back in the day had an optional unix migration component IIRC.
&lt;br&gt;It supposedly had an NFS server and client.
&lt;br&gt;&lt;br&gt;If I had to do this I would first investigate using utilities compiled
&lt;br&gt;for Cygwin. I would probably figure out it's a bad idea and use native
&lt;br&gt;windows shares and Samba on the *nix side, or WebDAV (&amp;quot;web folders&amp;quot;)
&lt;br&gt;&lt;br&gt;In practice when I need to mount a windows share on a linux system
&lt;br&gt;I've rarely had trouble using Samba as a client.
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Martin K.
&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://www.piclist.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.piclist.com&lt;/a&gt;&amp;nbsp;PIC/SX FAQ &amp; list archive
&lt;br&gt;View/change your membership options at
&lt;br&gt;&lt;a href=&quot;http://mailman.mit.edu/mailman/listinfo/piclist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.mit.edu/mailman/listinfo/piclist&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PIC----OT--f16320.html&quot; embed=&quot;fixTarget[16320]&quot; target=&quot;_top&quot; &gt;PIC - [OT]&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Windows-7-as-NFS-server-tp26325508p26326196.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26325993</id>
	<title>How to gain much money quickly</title>
	<published>2009-11-12T12:41:18Z</published>
	<updated>2009-11-12T12:41:18Z</updated>
	<author>
		<name>Vieiei Foeoeei</name>
	</author>
	<content type="html">&lt;a href=&quot;http://www.Wholesalers-Net.c.la&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.Wholesalers-Net.c.la&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;[Non-text portions of this message have been removed]
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/OOPic-f14405.html&quot; embed=&quot;fixTarget[14405]&quot; target=&quot;_top&quot; &gt;OOPic&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-gain-much-money-quickly-tp26325993p26325993.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26325880</id>
	<title>Re: [TECH]    Questions about water jets</title>
	<published>2009-11-12T12:26:48Z</published>
	<updated>2009-11-12T12:26:48Z</updated>
	<author>
		<name>Bob Blick-4</name>
	</author>
	<content type="html">&lt;br&gt;On Thu, 12 Nov 2009 15:17:08 -0500, &amp;quot;Olin Lathrop&amp;quot; said:
&lt;br&gt;&amp;gt; YES NOPE9 wrote:
&lt;br&gt;&amp;gt; &amp;gt; #1 &amp;nbsp; What pressure range do they operate at ?
&lt;br&gt;&amp;gt; &amp;gt; #2 &amp;nbsp; Does the water stream contain abrasives ?
&lt;br&gt;&amp;gt; &amp;gt; #3 &amp;nbsp; What kind of material is used for the nozzle ?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Sorry, we're not running a contest currently for the worst formed or most
&lt;br&gt;&amp;gt; ambiguous question.
&lt;br&gt;&lt;br&gt;Hi Olin, welcome back :)
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;&lt;br&gt;Bob
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://www.fastmail.fm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.fastmail.fm&lt;/a&gt;&amp;nbsp;- Access your email from home and the web
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://www.piclist.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.piclist.com&lt;/a&gt;&amp;nbsp;PIC/SX FAQ &amp; list archive
&lt;br&gt;View/change your membership options at
&lt;br&gt;&lt;a href=&quot;http://mailman.mit.edu/mailman/listinfo/piclist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.mit.edu/mailman/listinfo/piclist&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/MicroControllers---PIC-f2059.html&quot; embed=&quot;fixTarget[2059]&quot; target=&quot;_top&quot; &gt;MicroControllers - PIC&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-TECH-----Questions-about-water-jets-tp26325330p26325880.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26325734</id>
	<title>Re: TCP connection to fixe IP</title>
	<published>2009-11-12T12:24:13Z</published>
	<updated>2009-11-12T12:24:13Z</updated>
	<author>
		<name>uprinz</name>
	</author>
	<content type="html">Hi Gilles,
&lt;br&gt;&lt;br&gt;I am not a moderator, but I have to interrupt because some clarification 
&lt;br&gt;is needed.
&lt;br&gt;&lt;br&gt;Please specify the _complete_ configuration of the networks and devices. 
&lt;br&gt;Otherwise no one can help.
&lt;br&gt;&lt;br&gt;A device on a network has 3 parameters not two, a Router has more.
&lt;br&gt;&lt;br&gt;So to understand your problem we need:
&lt;br&gt;EtherNut IP
&lt;br&gt;EtherNut Netmask
&lt;br&gt;EtherNut Gateway
&lt;br&gt;&lt;br&gt;Your routers parameters for the internal network:
&lt;br&gt;IP
&lt;br&gt;Netmask
&lt;br&gt;&lt;br&gt;If your Router spans a network of IP/Netmask 192.168.0.254/255.255.0.0
&lt;br&gt;and your EtherNut has a IP/Netmask of 192.168.1.86/255.255.0.0
&lt;br&gt;and this does'nt work, Nut/OS has a problem.
&lt;br&gt;&lt;br&gt;If _one_or_both_ of these devices has/have a netmask of 255.255.255.0 
&lt;br&gt;like it is defined for the Class-C Range 192.168.x.y, you have a problem 
&lt;br&gt;with the configuration.
&lt;br&gt;Remember that, again, 192.168.x.y is an IP-Range defined for 256 Class-C 
&lt;br&gt;networks what means, that there should be a 255.255.255.0 netmask. Very 
&lt;br&gt;often Home-Routers are assuming an Class-C Netmask if they are assigned 
&lt;br&gt;to 192.168.x.y. networks.
&lt;br&gt;I know, that 10.x.y.z is used to be 1 Class-A network, where 255.0.0.0 
&lt;br&gt;is the right netmask. I forgot about the Class-B, i.e. 255.255.0.0
&lt;br&gt;&lt;br&gt;As all these networks specify numberings for internal networks, everyone 
&lt;br&gt;is free to use it as specified... or not.
&lt;br&gt;&lt;br&gt;If you use a Class-B network and there is no router in between your 
&lt;br&gt;ethernut on 192.168.1.x and your internet-router on 192.168.0.y then you 
&lt;br&gt;have to set the netmask in every device on both networks to 255.255.0.0
&lt;br&gt;&lt;br&gt;I hope, you can clarify the situation, so we are talking about the same 
&lt;br&gt;data to find the bug.
&lt;br&gt;&lt;br&gt;I cannot really believe that exchanging ip-packets through the internet 
&lt;br&gt;doesn't work with Nut/OS, as I use the Elektor Internet Radio. It gets 
&lt;br&gt;its playlists via http-request and receives the selected streams without 
&lt;br&gt;any problems.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;Ulrich
&lt;br&gt;&lt;br&gt;Gilles schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I have developed a piece of code to establish a dialog between my ARM9 board
&lt;br&gt;&amp;gt; and a PC in 2 different location.(2 different IP fix addresses)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; When the PC establish the TCP link , &amp;nbsp;the ARM9 receive and respond to the
&lt;br&gt;&amp;gt; TCP frame correctly.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If I try to establish the TCP dialog starting from the ARM9, it fails on the
&lt;br&gt;&amp;gt; NutTcpConnect(sock1,dest_addr, PortSend)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; All is good if I stay inside my office network.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Mask and IPgate seems correct.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is anybody has an idea about my trouble?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks for the help
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Best regards
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Gilles
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;/div&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/MicroControllers---Ethernut-f2056.html&quot; embed=&quot;fixTarget[2056]&quot; target=&quot;_top&quot; &gt;MicroControllers - Ethernut&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/TCP-connection-to-fixe-IP-tp25737294p26325734.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26325883</id>
	<title>Re: [TECH]    Questions about water jets</title>
	<published>2009-11-12T12:23:53Z</published>
	<updated>2009-11-12T12:23:53Z</updated>
	<author>
		<name>Bob Blick-4</name>
	</author>
	<content type="html">&lt;br&gt;On Thu, 12 Nov 2009 12:49:30 -0700, &amp;quot;YES NOPE9&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26325883&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;yes@...&lt;/a&gt;&amp;gt; said:
&lt;br&gt;&amp;gt; #1 &amp;nbsp; What pressure range do they operate at ?
&lt;br&gt;&lt;br&gt;40,000 to 90,000 psi
&lt;br&gt;&lt;br&gt;&amp;gt; #2 &amp;nbsp; Does the water stream contain abrasives ?
&lt;br&gt;&lt;br&gt;Yes, the water is mainly a carrier and for cooling.
&lt;br&gt;&lt;br&gt;&amp;gt; #3 &amp;nbsp; What kind of material is used for the nozzle ?
&lt;br&gt;&lt;br&gt;Sintered boride.
&lt;br&gt;&lt;br&gt;Cheerful regards,
&lt;br&gt;&lt;br&gt;Bob
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://www.fastmail.fm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.fastmail.fm&lt;/a&gt;&amp;nbsp;- mmm... Fastmail...
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://www.piclist.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.piclist.com&lt;/a&gt;&amp;nbsp;PIC/SX FAQ &amp; list archive
&lt;br&gt;View/change your membership options at
&lt;br&gt;&lt;a href=&quot;http://mailman.mit.edu/mailman/listinfo/piclist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.mit.edu/mailman/listinfo/piclist&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/MicroControllers---PIC-f2059.html&quot; embed=&quot;fixTarget[2059]&quot; target=&quot;_top&quot; &gt;MicroControllers - PIC&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-TECH-----Questions-about-water-jets-tp26325330p26325883.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26325834</id>
	<title>Re: [TECH]    Questions about water jets</title>
	<published>2009-11-12T12:17:08Z</published>
	<updated>2009-11-12T12:17:08Z</updated>
	<author>
		<name>Olin Lathrop</name>
	</author>
	<content type="html">YES NOPE9 wrote:
&lt;br&gt;&amp;gt; #1 &amp;nbsp; What pressure range do they operate at ?
&lt;br&gt;&amp;gt; #2 &amp;nbsp; Does the water stream contain abrasives ?
&lt;br&gt;&amp;gt; #3 &amp;nbsp; What kind of material is used for the nozzle ?
&lt;br&gt;&lt;br&gt;Sorry, we're not running a contest currently for the worst formed or most
&lt;br&gt;ambiguous question.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://www.piclist.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.piclist.com&lt;/a&gt;&amp;nbsp;PIC/SX FAQ &amp; list archive
&lt;br&gt;View/change your membership options at
&lt;br&gt;&lt;a href=&quot;http://mailman.mit.edu/mailman/listinfo/piclist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.mit.edu/mailman/listinfo/piclist&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/MicroControllers---PIC-f2059.html&quot; embed=&quot;fixTarget[2059]&quot; target=&quot;_top&quot; &gt;MicroControllers - PIC&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-TECH-----Questions-about-water-jets-tp26325330p26325834.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26325737</id>
	<title>Re: [TECH] Questions about water jets</title>
	<published>2009-11-12T12:16:59Z</published>
	<updated>2009-11-12T12:16:59Z</updated>
	<author>
		<name>Russell McMahon-4</name>
	</author>
	<content type="html">&amp;nbsp;&amp;gt; #1 &amp;nbsp; What pressure range do they operate at ?
&lt;br&gt;&amp;gt; #2 &amp;nbsp; Does the water stream contain abrasives ?
&lt;br&gt;&amp;gt; #3 &amp;nbsp; What kind of material is used for the nozzle ?
&lt;br&gt;1. Gargoyle knows.
&lt;br&gt;2. Gargoyle knows.
&lt;br&gt;3. Gargoyle knows.
&lt;br&gt;&lt;br&gt;&amp;gt;From fading memory.
&lt;br&gt;Thousands of psi (insert own unit conversion here).
&lt;br&gt;Almost invariaby - carborundum / saphire often.
&lt;br&gt;?Saphire? (???)(Gargoyle knows).
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Russell
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;2009/11/13 YES NOPE9 &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26325737&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;yes@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; #1 &amp;nbsp; What pressure range do they operate at ?
&lt;br&gt;&amp;gt; #2 &amp;nbsp; Does the water stream contain abrasives ?
&lt;br&gt;&amp;gt; #3 &amp;nbsp; What kind of material is used for the nozzle ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards
&lt;br&gt;&amp;gt; Gus
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.piclist.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.piclist.com&lt;/a&gt;&amp;nbsp;PIC/SX FAQ &amp; list archive
&lt;br&gt;&amp;gt; View/change your membership options at
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://mailman.mit.edu/mailman/listinfo/piclist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.mit.edu/mailman/listinfo/piclist&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://www.piclist.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.piclist.com&lt;/a&gt;&amp;nbsp;PIC/SX FAQ &amp; list archive
&lt;br&gt;View/change your membership options at
&lt;br&gt;&lt;a href=&quot;http://mailman.mit.edu/mailman/listinfo/piclist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.mit.edu/mailman/listinfo/piclist&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/MicroControllers---PIC-f2059.html&quot; embed=&quot;fixTarget[2059]&quot; target=&quot;_top&quot; &gt;MicroControllers - PIC&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-TECH-----Questions-about-water-jets-tp26325330p26325737.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26325541</id>
	<title>Re: Windows 7 as NFS server</title>
	<published>2009-11-12T12:04:34Z</published>
	<updated>2009-11-12T12:04:34Z</updated>
	<author>
		<name>Marcel Birthelmer-2</name>
	</author>
	<content type="html">colinux? vmware running a linux host? something like that?
&lt;br&gt;&lt;br&gt;On Thu, Nov 12, 2009 at 8:46 PM, solarwind &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26325541&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;x.solarwind.x@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Hey all, does anyone know of free NFS software for windows 7?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -- [ solarwind ] -- &lt;a href=&quot;http://solar-blogg.blogspot.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://solar-blogg.blogspot.com/&lt;/a&gt;&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.piclist.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.piclist.com&lt;/a&gt;&amp;nbsp;PIC/SX FAQ &amp; list archive
&lt;br&gt;&amp;gt; View/change your membership options at
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://mailman.mit.edu/mailman/listinfo/piclist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.mit.edu/mailman/listinfo/piclist&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://www.piclist.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.piclist.com&lt;/a&gt;&amp;nbsp;PIC/SX FAQ &amp; list archive
&lt;br&gt;View/change your membership options at
&lt;br&gt;&lt;a href=&quot;http://mailman.mit.edu/mailman/listinfo/piclist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.mit.edu/mailman/listinfo/piclist&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PIC----OT--f16320.html&quot; embed=&quot;fixTarget[16320]&quot; target=&quot;_top&quot; &gt;PIC - [OT]&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Windows-7-as-NFS-server-tp26325508p26325541.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26325464</id>
	<title>Re: Micro 7-Segment LCD Glass?</title>
	<published>2009-11-12T11:56:29Z</published>
	<updated>2009-11-12T11:56:29Z</updated>
	<author>
		<name>Brooke Clarke</name>
	</author>
	<content type="html">Hi:
&lt;br&gt;&lt;br&gt;Yes that explains the 22 lines. &amp;nbsp;The tens of hours &amp;quot;1&amp;quot; is at the very left edge 
&lt;br&gt;of the glass, i.e. there's no room for more segments. &amp;nbsp;So the glass is limited 
&lt;br&gt;to a 12 hour time display, it's not a four digit 7-segment display explaining 
&lt;br&gt;the 22 drive lines.
&lt;br&gt;&lt;a href=&quot;http://www.prc68.com/I/DollarWatch.shtml#Fig1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.prc68.com/I/DollarWatch.shtml#Fig1&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Have Fun,
&lt;br&gt;&lt;br&gt;Brooke Clarke
&lt;br&gt;&lt;a href=&quot;http://www.prc68.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.prc68.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://www.piclist.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.piclist.com&lt;/a&gt;&amp;nbsp;PIC/SX FAQ &amp; list archive
&lt;br&gt;View/change your membership options at
&lt;br&gt;&lt;a href=&quot;http://mailman.mit.edu/mailman/listinfo/piclist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.mit.edu/mailman/listinfo/piclist&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PIC----EE--f16319.html&quot; embed=&quot;fixTarget[16319]&quot; target=&quot;_top&quot; &gt;PIC - [EE]&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Micro-7-Segment-LCD-Glass--tp26292688p26325464.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26325330</id>
	<title>[TECH]    Questions about water jets</title>
	<published>2009-11-12T11:49:30Z</published>
	<updated>2009-11-12T11:49:30Z</updated>
	<author>
		<name>NOPE9</name>
	</author>
	<content type="html">#1 &amp;nbsp; What pressure range do they operate at ?
&lt;br&gt;#2 &amp;nbsp; Does the water stream contain abrasives ?
&lt;br&gt;#3 &amp;nbsp; What kind of material is used for the nozzle ?
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;Gus
&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://www.piclist.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.piclist.com&lt;/a&gt;&amp;nbsp;PIC/SX FAQ &amp; list archive
&lt;br&gt;View/change your membership options at
&lt;br&gt;&lt;a href=&quot;http://mailman.mit.edu/mailman/listinfo/piclist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.mit.edu/mailman/listinfo/piclist&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/MicroControllers---PIC-f2059.html&quot; embed=&quot;fixTarget[2059]&quot; target=&quot;_top&quot; &gt;MicroControllers - PIC&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-TECH-----Questions-about-water-jets-tp26325330p26325330.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26325508</id>
	<title>Windows 7 as NFS server</title>
	<published>2009-11-12T11:46:15Z</published>
	<updated>2009-11-12T11:46:15Z</updated>
	<author>
		<name>solarwind</name>
	</author>
	<content type="html">Hey all, does anyone know of free NFS software for windows 7?
&lt;br&gt;&lt;br&gt;-- [ solarwind ] -- &lt;a href=&quot;http://solar-blogg.blogspot.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://solar-blogg.blogspot.com/&lt;/a&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://www.piclist.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.piclist.com&lt;/a&gt;&amp;nbsp;PIC/SX FAQ &amp; list archive
&lt;br&gt;View/change your membership options at
&lt;br&gt;&lt;a href=&quot;http://mailman.mit.edu/mailman/listinfo/piclist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.mit.edu/mailman/listinfo/piclist&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PIC----OT--f16320.html&quot; embed=&quot;fixTarget[16320]&quot; target=&quot;_top&quot; &gt;PIC - [OT]&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Windows-7-as-NFS-server-tp26325508p26325508.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26324722</id>
	<title>Re: Maybe obvious ...</title>
	<published>2009-11-12T11:20:10Z</published>
	<updated>2009-11-12T11:20:10Z</updated>
	<author>
		<name>Nathan Moore-5</name>
	</author>
	<content type="html">Hey Paolo,
&lt;br&gt;&lt;br&gt;2009/11/12 Paolo Simoncelli &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26324722&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;simonp@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;gt; This should be quite a silly question, but maybe someone knows ;-)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Does task switching start only after a NutThreadCreate() or does some
&lt;br&gt;&amp;gt; context switching run in the background even if just a &amp;quot;hello world&amp;quot;
&lt;br&gt;&amp;gt; main task is running ?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; In other words is NutOs truly &amp;quot;monotask&amp;quot; if no thread is activated ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;When the main function is called it is in the thread called &amp;quot;main&amp;quot;, which is
&lt;br&gt;the second thread that is run.
&lt;br&gt;The first thread that is run is the idle thread, which does some work, calls
&lt;br&gt;NutThreadCreate to create
&lt;br&gt;the main thread, and mostly just loops on some code that puts the processor
&lt;br&gt;in low power mode over
&lt;br&gt;and over. &amp;nbsp;In Nut the Idle thread must always be ready to run.
&lt;br&gt;&lt;br&gt;Other threads that might be running though you didn't call NutThreadCreate
&lt;br&gt;directly are the receive threads
&lt;br&gt;for any network devices you have, the TCP state machine thread, the PPP
&lt;br&gt;state machine thread, and the
&lt;br&gt;DHCP thread. &amp;nbsp;There could be more, and it's likely that not all of these are
&lt;br&gt;running on your &amp;quot;hello world&amp;quot;
&lt;br&gt;set up. &amp;nbsp;These threads are created by the functions you would call to set up
&lt;br&gt;the network interfaces.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Nathan
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/MicroControllers---Ethernut-f2056.html&quot; embed=&quot;fixTarget[2056]&quot; target=&quot;_top&quot; &gt;MicroControllers - Ethernut&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Maybe-obvious-...-tp26323864p26324722.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26323864</id>
	<title>Maybe obvious ...</title>
	<published>2009-11-12T10:28:40Z</published>
	<updated>2009-11-12T10:28:40Z</updated>
	<author>
		<name>Paolo Simoncelli</name>
	</author>
	<content type="html">&lt;br&gt;Hi all,
&lt;br&gt;This should be quite a silly question, but maybe someone knows ;-)
&lt;br&gt;&lt;br&gt;Does task switching start only after a NutThreadCreate() or does some
&lt;br&gt;context switching run in the background even if just a &amp;quot;hello world&amp;quot;
&lt;br&gt;main task is running ?
&lt;br&gt;&lt;br&gt;In other words is NutOs truly &amp;quot;monotask&amp;quot; if no thread is activated ?
&lt;br&gt;&lt;br&gt;Thanks in advance ... Ciao!
&lt;br&gt;Paolo
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;--
&lt;br&gt;&amp;nbsp;Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it &lt;a href=&quot;http://www.email.it/f&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.email.it/f&lt;/a&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;Sponsor:
&lt;br&gt;&amp;nbsp;Vuoi condividere con i tuoi collaboratori rubrica e agenda della tua casella di posta?
&lt;br&gt;* Email.it Ha la casella che soddisfa questi requisiti. Per maggiori informazioni chiamaci allo 0125/628650 oppure clicca qui
&lt;br&gt;&amp;nbsp;Clicca qui: &lt;a href=&quot;http://adv.email.it/cgi-bin/foclick.cgi?mid=9585&amp;d=12-11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://adv.email.it/cgi-bin/foclick.cgi?mid=9585&amp;d=12-11&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/MicroControllers---Ethernut-f2056.html&quot; embed=&quot;fixTarget[2056]&quot; target=&quot;_top&quot; &gt;MicroControllers - Ethernut&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Maybe-obvious-...-tp26323864p26323864.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26322760</id>
	<title>Re: Suggested modification to nut\net\tcpsm.c again</title>
	<published>2009-11-12T09:25:29Z</published>
	<updated>2009-11-12T09:25:29Z</updated>
	<author>
		<name>Nathan Moore-5</name>
	</author>
	<content type="html">On Thu, Nov 12, 2009 at 11:41 AM, Harald Kipp &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26322760&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;harald.kipp@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp;&amp;gt; Best thing would be to use uint_fast16_t, I think.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; That will optimize 32-bit code. But it scares *me* to mix up fixes with
&lt;br&gt;&amp;gt; optimizations. As explained to Zack, I don't see any other advantage.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Let's do the fix first and then think about optimizations.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Yeah. &amp;nbsp;I just threw that in there because Zack asked why it was 16 bit.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; There is &amp;nbsp;plenty of room here in the TCP stack. In fact I discovered the
&lt;br&gt;&amp;gt; problem
&lt;br&gt;&amp;gt; while trying to do some performance tests.
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;It certainly would be nice if the stack were a little bit smarter, but it's
&lt;br&gt;so complicated.
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; that someone will forget to |= 1 it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; May a comment line help?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Maybe. &amp;nbsp;And I'm sure that if anyone sends you TCP patches the usage of this
&lt;br&gt;variable
&lt;br&gt;is probably one of the first things you look for so bad code getting into
&lt;br&gt;official Nut isn't
&lt;br&gt;that likely.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; Or is there a better solution which doesn't require additional RAM space?
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;I don't know. &amp;nbsp;I've been thinking about this particular code a lot, and I
&lt;br&gt;think that the easiest
&lt;br&gt;to understand thing would be to use one of the free bit in so_tx_flags for
&lt;br&gt;the same purpose
&lt;br&gt;as setting so_rtto to 0.
&lt;br&gt;&lt;br&gt;Nathan
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/MicroControllers---Ethernut-f2056.html&quot; embed=&quot;fixTarget[2056]&quot; target=&quot;_top&quot; &gt;MicroControllers - Ethernut&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Suggested-modification-to-nut%5Cnet%5Ctcpsm.c-again-tp26316028p26322760.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26322265</id>
	<title>Re: _fdopen failed to create the stream on the socket</title>
	<published>2009-11-12T08:55:27Z</published>
	<updated>2009-11-12T08:55:27Z</updated>
	<author>
		<name>Ethernut</name>
	</author>
	<content type="html">Ma-Prokop, Yuhong wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Nut/Os Version: 4.4.0
&lt;br&gt;&amp;gt; Target CPU: Ethernut 3.0E
&lt;br&gt;&amp;gt; File System: UROM
&lt;br&gt;&lt;br&gt;Many bugfixes had been done since. Though, as far as I can remember
&lt;br&gt;right now, none of them is related. I'll give it a try here.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; One more question related to my problem: if the browser closes the website DURING the webserver processing of &amp;quot;NutHttpProcessRequest(http_stream)&amp;quot;, shall the stream be closed or the stream shall stay there? I have the feeling that the streams stay there and lead to memory leak.
&lt;br&gt;&lt;br&gt;After NutHttpProcessRequest() exits, both, the socket and the associated
&lt;br&gt;stream needs to be closed. No matter whether to request had been fully
&lt;br&gt;processed or the browser broke the connection.
&lt;br&gt;&lt;br&gt;NutHttpProcessRequest(stream);
&lt;br&gt;fclose(stream);
&lt;br&gt;NutTcpCloseSocket(sock);
&lt;br&gt;&lt;br&gt;Note, that the socket will stay alive in the background for a short time
&lt;br&gt;in order to consume late packets. However, after a few seconds the free
&lt;br&gt;heap space should return to its idle value. More or less, depending on
&lt;br&gt;other applications.
&lt;br&gt;&lt;br&gt;No intention to upgrade to a later version? Specifically we added some
&lt;br&gt;goodies for heap debugging:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/pipermail/en-nut-discussion/2009-April/010751.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/pipermail/en-nut-discussion/2009-April/010751.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Harald
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/MicroControllers---Ethernut-f2056.html&quot; embed=&quot;fixTarget[2056]&quot; target=&quot;_top&quot; &gt;MicroControllers - Ethernut&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/_fdopen-failed-to-create-the-stream-on-the-socket-tp26307045p26322265.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26321996</id>
	<title>Re: Suggested modification to nut\net\tcpsm.c again</title>
	<published>2009-11-12T08:41:31Z</published>
	<updated>2009-11-12T08:41:31Z</updated>
	<author>
		<name>Ethernut</name>
	</author>
	<content type="html">Nathan Moore wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Best thing would be to use uint_fast16_t, I think.
&lt;br&gt;&lt;br&gt;That will optimize 32-bit code. But it scares *me* to mix up fixes with
&lt;br&gt;optimizations. As explained to Zack, I don't see any other advantage.
&lt;br&gt;&lt;br&gt;Let's do the fix first and then think about optimizations. There is
&lt;br&gt;plenty of room here in the TCP stack. In fact I discovered the problem
&lt;br&gt;while trying to do some performance tests.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; Using this timeout value as a flag as well as a timing value still scares
&lt;br&gt;&amp;gt; me, though,
&lt;br&gt;&amp;gt; because everytime it is used or a place that uses it is changed there is a
&lt;br&gt;&amp;gt; chance
&lt;br&gt;&amp;gt; that someone will forget to |= 1 it.
&lt;br&gt;&lt;br&gt;May a comment line help? Or is there a better solution which doesn't
&lt;br&gt;require additional RAM space?
&lt;br&gt;&lt;br&gt;Harald
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/MicroControllers---Ethernut-f2056.html&quot; embed=&quot;fixTarget[2056]&quot; target=&quot;_top&quot; &gt;MicroControllers - Ethernut&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Suggested-modification-to-nut%5Cnet%5Ctcpsm.c-again-tp26316028p26321996.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26321875</id>
	<title>Re: Suggested modification to nut\net\tcpsm.c again</title>
	<published>2009-11-12T08:35:05Z</published>
	<updated>2009-11-12T08:35:05Z</updated>
	<author>
		<name>Ethernut</name>
	</author>
	<content type="html">Hi Zack,
&lt;br&gt;&lt;br&gt;Nice to have the author of the first patch available.
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321875&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ennut@...&lt;/a&gt; wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;I have heartache casting the 32 bit result from NutGetMillis() to uint16_t.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Doesn't it make more sense to define so_retran_time as u_long 
&lt;br&gt;&amp;gt; rather than u_short in sock_var.h ?
&lt;br&gt;&lt;br&gt;IMHO, that wouldn't make much difference, except better code for 32-bit
&lt;br&gt;and slower as well as larger code for 8-bit targets.
&lt;br&gt;&lt;br&gt;We won't see retransmission timeouts above 65 seconds. On the contrary I
&lt;br&gt;initially intended to limit its value to a few seconds, before I located
&lt;br&gt;the real problem.
&lt;br&gt;&lt;br&gt;The NutGetMillis() overflow will happen anyway, no matter how many bits
&lt;br&gt;we'll use.
&lt;br&gt;&lt;br&gt;&amp;gt; I didn't look at the code but
&lt;br&gt;&lt;br&gt;As I said, the first patch was contributed by *you*. ;-)
&lt;br&gt;&lt;br&gt;Harald
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/MicroControllers---Ethernut-f2056.html&quot; embed=&quot;fixTarget[2056]&quot; target=&quot;_top&quot; &gt;MicroControllers - Ethernut&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Suggested-modification-to-nut%5Cnet%5Ctcpsm.c-again-tp26316028p26321875.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26321931</id>
	<title>Re: Cute little oscilloscope</title>
	<published>2009-11-12T08:26:07Z</published>
	<updated>2009-11-12T08:26:07Z</updated>
	<author>
		<name>Dwayne Reid</name>
	</author>
	<content type="html">At 03:13 AM 11/12/2009, Wouter van Ooijen wrote:
&lt;br&gt;&amp;gt;Bob Blick wrote:
&lt;br&gt;&amp;gt; &amp;gt; This is where scopes are heading:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.seeedstudio.com/depot/micro-digital-storage-oscilloscopedso-nano-p-512.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.seeedstudio.com/depot/micro-digital-storage-oscilloscopedso-nano-p-512.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;That looks like a nice platform for embedded development. A pity they
&lt;br&gt;&amp;gt;show &amp;quot;-1&amp;quot; in stock :(
&lt;br&gt;&lt;br&gt;That might have been me trying to order it last week - I saw the Nano 
&lt;br&gt;when I was placing my order for a couple of Bus Pirates.
&lt;br&gt;&lt;br&gt;Seeed Studio has some neat stuff!
&lt;br&gt;&lt;br&gt;dwayne
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Dwayne Reid &amp;nbsp; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321931&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dwayner@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Trinity Electronics Systems Ltd &amp;nbsp; &amp;nbsp;Edmonton, AB, CANADA
&lt;br&gt;(780) 489-3199 voice &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(780) 487-6397 fax
&lt;br&gt;www.trinity-electronics.com
&lt;br&gt;Custom Electronics Design and Manufacturing
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://www.piclist.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.piclist.com&lt;/a&gt;&amp;nbsp;PIC/SX FAQ &amp; list archive
&lt;br&gt;View/change your membership options at
&lt;br&gt;&lt;a href=&quot;http://mailman.mit.edu/mailman/listinfo/piclist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.mit.edu/mailman/listinfo/piclist&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PIC----OT--f16320.html&quot; embed=&quot;fixTarget[16320]&quot; target=&quot;_top&quot; &gt;PIC - [OT]&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Cute-little-oscilloscope-tp26313849p26321931.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26320529</id>
	<title>Re: Power Supply Health Question</title>
	<published>2009-11-12T07:11:05Z</published>
	<updated>2009-11-12T07:11:05Z</updated>
	<author>
		<name>Gordon Williams-3</name>
	</author>
	<content type="html">Bingo problem solved!
&lt;br&gt;&lt;br&gt;Having another look around I noticed that I had jumpered the 5V-GND lines
&lt;br&gt;with a resistor to provide min. load for voltage regulation. &amp;nbsp;I had
&lt;br&gt;forgotten about that and didn't see it in my initial look. &amp;nbsp;The resistor had
&lt;br&gt;come loose and was no longer making contact.
&lt;br&gt;&lt;br&gt;The unit is much smaller than a PC power supply but the idea is the same.
&lt;br&gt;&lt;br&gt;Thanks for all the suggestions.
&lt;br&gt;&lt;br&gt;Gordon Williams
&lt;br&gt;&lt;br&gt;----- Original Message ----- 
&lt;br&gt;From: &amp;quot;M.L.&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26320529&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;m@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &amp;quot;Microcontroller discussion list - Public.&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26320529&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;piclist@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Sent: Monday, November 09, 2009 9:25 PM
&lt;br&gt;Subject: Re: [EE] Power Supply Health Question
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; On Mon, Nov 9, 2009 at 8:48 PM, Gordon Williams &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26320529&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gwilliams@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I've got a 120V switching power supply that produces 12 and 5 Vdc
&lt;br&gt;outputs
&lt;br&gt;&amp;gt; &amp;gt; that I've been using for the last couple of years to power a digital
&lt;br&gt;piano
&lt;br&gt;&amp;gt; &amp;gt; after the original quit. It is salvaged out of an old piece of equipment
&lt;br&gt;&amp;gt; &amp;gt; somewhere. The 12 V goes to the piano and the 5V goes to an LED to tell
&lt;br&gt;me
&lt;br&gt;&amp;gt; &amp;gt; the main power supply is on. It stays on all the time and the piano has
&lt;br&gt;&amp;gt; &amp;gt; it's own power switch.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I noticed the other day that the LED was pulsing and the supply was
&lt;br&gt;making a
&lt;br&gt;&amp;gt; &amp;gt; clicking sound at the same time of the pulses, at about 3 Hz. The 12 V
&lt;br&gt;&amp;gt; &amp;gt; supply output was fluctuating wildly with no load. When I loaded the
&lt;br&gt;supply
&lt;br&gt;&amp;gt; &amp;gt; with 200 mA current everything settled down with 11.5 V output and the
&lt;br&gt;LED
&lt;br&gt;&amp;gt; &amp;gt; stopped pulsing. I don't remember that the supply was doing this
&lt;br&gt;pulsating
&lt;br&gt;&amp;gt; &amp;gt; under no-load originally when I started using it 2-3 years ago. It's got
&lt;br&gt;me
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; concerned that something is not working right.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Could this be a sign that the power supply is starting to break down? Is
&lt;br&gt;&amp;gt; &amp;gt; the clicking sound from the transformer?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Suggestions?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Gordon Williams
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Some old switching power supplies needed a minimum load current in
&lt;br&gt;&amp;gt; order to regulate. Your supply might have a power resistor that has
&lt;br&gt;&amp;gt; burned out from being continuously on and running at 100C for 2-3
&lt;br&gt;&amp;gt; years, or you might have bad electrolytic caps, both, or neither.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Martin K.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.piclist.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.piclist.com&lt;/a&gt;&amp;nbsp;PIC/SX FAQ &amp; list archive
&lt;br&gt;&amp;gt; View/change your membership options at
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://mailman.mit.edu/mailman/listinfo/piclist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.mit.edu/mailman/listinfo/piclist&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://www.piclist.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.piclist.com&lt;/a&gt;&amp;nbsp;PIC/SX FAQ &amp; list archive
&lt;br&gt;View/change your membership options at
&lt;br&gt;&lt;a href=&quot;http://mailman.mit.edu/mailman/listinfo/piclist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.mit.edu/mailman/listinfo/piclist&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PIC----EE--f16319.html&quot; embed=&quot;fixTarget[16319]&quot; target=&quot;_top&quot; &gt;PIC - [EE]&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Power-Supply-Health-Question-tp26277108p26320529.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26320326</id>
	<title>Re: Suggested modification to nut\net\tcpsm.c again</title>
	<published>2009-11-12T07:08:44Z</published>
	<updated>2009-11-12T07:08:44Z</updated>
	<author>
		<name>Nathan Moore-5</name>
	</author>
	<content type="html">On Thu, Nov 12, 2009 at 7:39 AM, &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26320326&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ennut@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp; I have heartache casting the 32 bit result from NutGetMillis() to
&lt;br&gt;&amp;gt; uint16_t.
&lt;br&gt;&amp;gt; &amp;nbsp; Doesn't it make more sense to define so_retran_time as u_long
&lt;br&gt;&amp;gt; rather than u_short in sock_var.h ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;I suspect that this is done for AVR because RAM is more limited and doing
&lt;br&gt;math
&lt;br&gt;on a 32 bit value requires about twice the number of machine instructions as
&lt;br&gt;on
&lt;br&gt;a 16 bit value.
&lt;br&gt;Best thing would be to use uint_fast16_t, I think.
&lt;br&gt;&lt;br&gt;Using this timeout value as a flag as well as a timing value still scares
&lt;br&gt;me, though,
&lt;br&gt;because everytime it is used or a place that uses it is changed there is a
&lt;br&gt;chance
&lt;br&gt;that someone will forget to |= 1 it.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Nathan
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/MicroControllers---Ethernut-f2056.html&quot; embed=&quot;fixTarget[2056]&quot; target=&quot;_top&quot; &gt;MicroControllers - Ethernut&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Suggested-modification-to-nut%5Cnet%5Ctcpsm.c-again-tp26316028p26320326.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26321689</id>
	<title>Re: _fdopen failed to create the stream on the socket</title>
	<published>2009-11-12T05:03:53Z</published>
	<updated>2009-11-12T05:03:53Z</updated>
	<author>
		<name>Ma-Prokop, Yuhong</name>
	</author>
	<content type="html">Hello Harald,
&lt;br&gt;&lt;br&gt;thanks for your answer!
&lt;br&gt;&lt;br&gt;What I have is as following:
&lt;br&gt;&lt;br&gt;Nut/Os Version: 4.4.0
&lt;br&gt;Target CPU: Ethernut 3.0E
&lt;br&gt;File System: UROM
&lt;br&gt;&lt;br&gt;I have 7 server threads running at a time.
&lt;br&gt;&lt;br&gt;I firstly thought it is because the &amp;quot;_iob[]&amp;quot; which is used in &amp;quot;_fdopen&amp;quot; is not protected by multiple thread accesses, then i added a MUX for the &amp;quot;_iob[]&amp;quot;, but the result is same. 
&lt;br&gt;&lt;br&gt;Then I found out that the function &amp;quot;_close(int)&amp;quot; which is called in &amp;quot;fclose()&amp;quot; failed, this leads to the failing in &amp;quot;fclose()&amp;quot;
&lt;br&gt;&lt;br&gt;One more question related to my problem: if the browser closes the website DURING the webserver processing of &amp;quot;NutHttpProcessRequest(http_stream)&amp;quot;, shall the stream be closed or the stream shall stay there? I have the feeling that the streams stay there and lead to memory leak.
&lt;br&gt;&lt;br&gt;Best Regards,
&lt;br&gt;Hong &amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;-----Ursprüngliche Nachricht-----
&lt;br&gt;Von: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321689&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;en-nut-discussion-bounces@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321689&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;en-nut-discussion-bounces@...&lt;/a&gt;] Im Auftrag von &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321689&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;en-nut-discussion-request@...&lt;/a&gt;
&lt;br&gt;Gesendet: Donnerstag, 12. November 2009 12:00
&lt;br&gt;An: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321689&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;en-nut-discussion@...&lt;/a&gt;
&lt;br&gt;Betreff: En-Nut-Discussion Digest, Vol 73, Issue 11
&lt;br&gt;&lt;br&gt;Send En-Nut-Discussion mailing list submissions to
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321689&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;en-nut-discussion@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;To subscribe or unsubscribe via the World Wide Web, visit
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;or, via email, send a message with subject or body 'help' to
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321689&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;en-nut-discussion-request@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;You can reach the person managing the list at
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321689&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;en-nut-discussion-owner@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;When replying, please edit your Subject line so it is more specific
&lt;br&gt;than &amp;quot;Re: Contents of En-Nut-Discussion digest...&amp;quot;
&lt;br&gt;&lt;br&gt;&lt;br&gt;Today's Topics:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;1. _fdopen failed to create the stream on the	socket
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; (Ma-Prokop, Yuhong)
&lt;br&gt;&amp;nbsp; &amp;nbsp;2. Re: _fdopen failed to create the stream on the socket
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; (Harald Kipp)
&lt;br&gt;&amp;nbsp; &amp;nbsp;3. Re: Timing issues on Ethernut 1.3 (AVR) (Harald Kipp)
&lt;br&gt;&amp;nbsp; &amp;nbsp;4. Re: Timing issues on Ethernut 1.3 (AVR) (Harald Kipp)
&lt;br&gt;&amp;nbsp; &amp;nbsp;5. Suggested modification to nut\net\tcpsm.c again (Harald Kipp)
&lt;br&gt;&amp;nbsp; &amp;nbsp;6. FTP server fails with very small files (Malte Marwedel)
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Message: 1
&lt;br&gt;Date: Wed, 11 Nov 2009 09:17:36 +0100
&lt;br&gt;From: &amp;quot;Ma-Prokop, Yuhong&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321689&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;yuhong.ma.prokop@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Subject: [En-Nut-Discussion] _fdopen failed to create the stream on
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; the	socket
&lt;br&gt;To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321689&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;en-nut-discussion@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Message-ID:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321689&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;02CDDA1E92DA1C4BB91B40FB0555A9B30145E716@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Content-Type: text/plain;	charset=&amp;quot;us-ascii&amp;quot;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Hello Everyone,
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;I have one problem with my nut/os Webserver: after some calling from the
&lt;br&gt;clients (browers) the webserver does not response any more!
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;I tried to track along the problem: it is because the _fdopen function
&lt;br&gt;failed to create stream on the socket and returns &amp;quot;-1&amp;quot;. According to my
&lt;br&gt;debugging output the opened stream number is over the FOPEN_MAX which is
&lt;br&gt;defined in nut/os.
&lt;br&gt;&lt;br&gt;But fclose function was called everytime after the successful _fdopen.
&lt;br&gt;Then i found out that the fclose (as following) returns sometimes &amp;quot;255&amp;quot;
&lt;br&gt;instead of &amp;quot;0&amp;quot; as it should be, so the existing stream cannot be closed,
&lt;br&gt;then until the maximal streams are opened, no further clients-request
&lt;br&gt;shall be processed!
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Does somebody have the same problem with nut/os webserver?
&lt;br&gt;&lt;br&gt;Any help is appreciated!
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Hong
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;my webserver thread is as following:
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;THREAD(Service, arg) {
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; FILE *http_stream;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; TCPSOCKET *sock;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; u_char id = (u_char) ((uptr_t) arg);
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; // give each thread a (unique) priority
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; NutThreadSetPriority( EHZ_HTTP_PRIO ); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //+ id
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; /*
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* Now loop endless for connections.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; for(;;)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; {
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* Create a socket.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* May fail because of lacking ressources
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ((sock = NutTcpCreateSocket()) == 0)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LOG_ERROR(&amp;quot;%d: tcp socket create failed&amp;quot;, id);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NutSleep(5000);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; continue;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* Set socket options.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; u_short mss = 1460;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; u_short tcpbufsiz = 8760;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; u_long tmo = 5000;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NutTcpSetSockOpt(sock, TCP_MAXSEG, &amp;mss, sizeof(mss)))
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LOG_ERROR(&amp;quot;Sockopt MSS failed&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NutTcpSetSockOpt(sock, SO_RCVBUF, &amp;tcpbufsiz,
&lt;br&gt;sizeof(tcpbufsiz)))
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LOG_ERROR(&amp;quot;Sockopt rxbuf failed&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NutTcpSetSockOpt(sock, SO_RCVTIMEO, &amp;tmo, sizeof(tmo)))
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LOG_ERROR(&amp;quot;Sockopt rx timeout failed&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* Listen on port 80. This call will block until we get a
&lt;br&gt;connection
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* from a client.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NutTcpAccept(sock, 80);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;// &amp;nbsp; printf(&amp;quot;remote-ip: %s\r\n&amp;quot;, inet_ntoa(sock-&amp;gt;so_remote_addr));
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* Wait until at least 4 kByte of free RAM is available. This
&lt;br&gt;will
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* keep the client connected in low memory situations.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while( NutHeapAvailable() &amp;lt; 4096 )
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LOG_ERROR(&amp;quot;%d: not enough memory!&amp;quot;, id );
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // reboot the device if the amount of memory is too
&lt;br&gt;small
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //****
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RESET;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //****
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NutSleep(1000);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* Associate a stream with the socket so we can use standard I/O
&lt;br&gt;calls.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* should not fail
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // inserting a timeout here was a tip of Piotr Szlachta in the
&lt;br&gt;ethernut mailing list: 
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/pipermail/en-nut-discussion/2007-November/008655&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/pipermail/en-nut-discussion/2007-November/008655&lt;/a&gt;.
&lt;br&gt;html
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int timeout=0;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while ( !(http_stream = _fdopen((int) ((uptr_t) sock), &amp;quot;r+b&amp;quot;))
&lt;br&gt;&amp;&amp; ++timeout&amp;lt;0xFF )
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NutSleep (10);
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ((int)http_stream != 0 &amp;&amp; (int) http_stream != -1 &amp;&amp;
&lt;br&gt;(int)http_stream != -2) {
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* This API call saves us a lot of work. It will parse the
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* client's HTTP request, send any requested file from the
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* registered file system or handle CGI requests by calling
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* our registered CGI routine.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&lt;br&gt;#ifndef USE_UROM_FOR_HTTP
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(!isMmcAccessGranted()) {
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LOG_ERROR(&amp;quot;Please check SD-Card.&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else {
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NutHttpProcessRequest(http_stream);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;#else
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NutHttpProcessRequest(http_stream);
&lt;br&gt;&lt;br&gt;#endif &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* Destroy the virtual stream device.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fclose_result = fclose(http_stream);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LOG_ERROR(&amp;quot;INFO: fclose with stream: %d result: %d: \n&amp;quot;,
&lt;br&gt;http_stream, fclose_result);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else {
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LOG_ERROR(&amp;quot;DEFEKT with Thread %d: fdopen result: %d: \n&amp;quot;,id,
&lt;br&gt;(int)http_stream);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NutSleep(100);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* Close our socket.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( (NutTcpCloseSocket(sock)) == -1)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LOG_ERROR(&amp;quot;ACHTUNG: Socket not closed&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;The _fdopen function in my nut/os:
&lt;br&gt;&lt;br&gt;&amp;nbsp;(I modified the function just lightly to get know the failed reason) 
&lt;br&gt;&lt;br&gt;FILE *_fdopen(int fd, CONST char *mode)
&lt;br&gt;&lt;br&gt;{
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; int mflags = _O_TEXT;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; u_char i;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; /*
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* Translate file mode.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; if ((mflags = _fmode(mode)) == EOF)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return (FILE*)0;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; /*
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* Find an empty slot.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; */
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; for (i = 3; __iob[i]; i++)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (i &amp;gt;= FOPEN_MAX - 1) {
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; errno = ENFILE;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// return 0;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return (FILE*)(-1);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; if ((__iob[i] = malloc(sizeof(FILE))) != 0) {
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; __iob[i]-&amp;gt;iob_fd = fd;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; __iob[i]-&amp;gt;iob_mode = mflags;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; __iob[i]-&amp;gt;iob_flags = 0;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; __iob[i]-&amp;gt;iob_unget = 0;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return __iob[i]; 
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; } else
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; errno = ENOMEM;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return (FILE*)(-2);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;// &amp;nbsp; return __iob[i];
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;The _fdopen function in my nut/os:
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;int fclose(FILE * stream)
&lt;br&gt;&lt;br&gt;{
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; int rc = EOF;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; u_char i;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; /*
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* Search the list first to detect bad stream pointer.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; if (stream == 0) {
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; errno = EBADF;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return EOF;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; for (i = 0; __iob[i] != stream;) {
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (++i &amp;gt;= FOPEN_MAX) {
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; errno = EBADF;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return EOF;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; /*
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* Ignore unopened standard streams.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; //if ((void *) stream &amp;lt; RAMSTART)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; // &amp;nbsp; &amp;nbsp;return 0;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; /*
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* Close the file or device.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; if (_close(stream-&amp;gt;iob_fd) == 0)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rc = 0;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; free(stream);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; __iob[i] = 0;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; return rc;
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------
&lt;br&gt;&lt;br&gt;Message: 2
&lt;br&gt;Date: Thu, 12 Nov 2009 09:17:32 +0100
&lt;br&gt;From: Harald Kipp &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321689&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;harald.kipp@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Subject: Re: [En-Nut-Discussion] _fdopen failed to create the stream
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; on the socket
&lt;br&gt;To: &amp;quot;Ethernut User Chat (English)&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321689&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;en-nut-discussion@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Message-ID: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321689&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4AFBC49C.8010606@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Content-Type: text/plain; charset=ISO-8859-1
&lt;br&gt;&lt;br&gt;Ma-Prokop, Yuhong wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; But fclose function was called everytime after the successful _fdopen.
&lt;br&gt;&amp;gt; Then i found out that the fclose (as following) returns sometimes &amp;quot;255&amp;quot;
&lt;br&gt;&amp;gt; instead of &amp;quot;0&amp;quot; as it should be, so the existing stream cannot be closed,
&lt;br&gt;&amp;gt; then until the maximal streams are opened, no further clients-request
&lt;br&gt;&amp;gt; shall be processed!
&lt;br&gt;&lt;br&gt;Hong,
&lt;br&gt;&lt;br&gt;can you please provide some more information.
&lt;br&gt;&lt;br&gt;1. Nut/OS version
&lt;br&gt;2. Target CPU
&lt;br&gt;3. File system
&lt;br&gt;&lt;br&gt;&amp;gt; Does somebody have the same problem with nut/os webserver?
&lt;br&gt;&lt;br&gt;Our online reference demo at
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://ethernut.microweb.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ethernut.microweb.org/&lt;/a&gt;&lt;br&gt;&lt;br&gt;currently has an uptime of &amp;gt; 1 month. It needs to be restarted only to
&lt;br&gt;clear the spam from the guest book. In general it looks quite reliable.
&lt;br&gt;&lt;br&gt;Harald
&lt;br&gt;&lt;br&gt;PS: I recently discovered 2 serious bugs in Nut/OS for 32-bit CPUs. But
&lt;br&gt;the problems are different. More on this later.
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------
&lt;br&gt;&lt;br&gt;Message: 3
&lt;br&gt;Date: Thu, 12 Nov 2009 10:10:44 +0100
&lt;br&gt;From: Harald Kipp &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321689&amp;i=13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;harald.kipp@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Subject: Re: [En-Nut-Discussion] Timing issues on Ethernut 1.3 (AVR)
&lt;br&gt;To: &amp;quot;Ethernut User Chat (English)&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321689&amp;i=14&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;en-nut-discussion@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Message-ID: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321689&amp;i=15&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4AFBD114.3070905@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Content-Type: text/plain; charset=ISO-8859-1
&lt;br&gt;&lt;br&gt;Hi Daniel,
&lt;br&gt;&lt;br&gt;Daniel wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Issue 1, NutGetMillis()
&lt;br&gt;&amp;gt; =======================
&lt;br&gt;&lt;br&gt;I tried this &amp;nbsp;one:
&lt;br&gt;&lt;br&gt;#include &amp;lt;dev/board.h&amp;gt;
&lt;br&gt;#include &amp;lt;sys/thread.h&amp;gt;
&lt;br&gt;#include &amp;lt;sys/timer.h&amp;gt;
&lt;br&gt;&lt;br&gt;#include &amp;lt;stdio.h&amp;gt;
&lt;br&gt;#include &amp;lt;io.h&amp;gt;
&lt;br&gt;&lt;br&gt;THREAD(Thread, arg)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; for (;;) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; uint32_t start = NutGetMillis();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; uint32_t end = start + 500;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; uint16_t i = 0;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;Start Millis %p: %lu ms\n&amp;quot;, arg, NutGetMillis());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; do {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NutThreadYield();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; i++;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (i &amp;gt; 500) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;Current Millis %p: %lu ms\n&amp;quot;, arg, NutGetMillis());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; i = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } while(NutGetMillis() &amp;lt; end);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot; &amp;nbsp;End Millis %p: %lu ms\n&amp;quot;, arg, NutGetMillis());
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;int main(void)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; uint32_t baud = 115200;
&lt;br&gt;&amp;nbsp; &amp;nbsp; int i;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; NutRegisterDevice(&amp;DEV_DEBUG, 0, 0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; freopen(DEV_DEBUG_NAME, &amp;quot;w&amp;quot;, stdout);
&lt;br&gt;&amp;nbsp; &amp;nbsp; _ioctl(_fileno(stdout), UART_SETSPEED, &amp;baud);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; puts(&amp;quot;\nTest Millis&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; for (i = 1; i &amp;lt;= 10; i++) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NutThreadCreate(&amp;quot;th&amp;quot;, Thread, (void *)i, 512);
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; for (;;) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NutSleep(1000);
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; return 0;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;It works as expected:
&lt;br&gt;&lt;br&gt;Test Millis
&lt;br&gt;Start Millis 0x1: 5 ms
&lt;br&gt;Start Millis 0x2: 7 ms
&lt;br&gt;Start Millis 0x3: 9 ms
&lt;br&gt;Start Millis 0x4: 11 ms
&lt;br&gt;Start Millis 0x5: 13 ms
&lt;br&gt;Start Millis 0x6: 15 ms
&lt;br&gt;Start Millis 0x7: 17 ms
&lt;br&gt;Start Millis 0x8: 20 ms
&lt;br&gt;Start Millis 0x9: 22 ms
&lt;br&gt;Start Millis 0xa: 24 ms
&lt;br&gt;Current Millis 0x1: 109 ms
&lt;br&gt;Current Millis 0x2: 111 ms
&lt;br&gt;Current Millis 0x3: 114 ms
&lt;br&gt;Current Millis 0x4: 116 ms
&lt;br&gt;Current Millis 0x5: 119 ms
&lt;br&gt;Current Millis 0x6: 121 ms
&lt;br&gt;Current Millis 0x7: 124 ms
&lt;br&gt;Current Millis 0x8: 126 ms
&lt;br&gt;Current Millis 0x9: 129 ms
&lt;br&gt;Current Millis 0xa: 131 ms
&lt;br&gt;Current Millis 0x1: 218 ms
&lt;br&gt;Current Millis 0x2: 220 ms
&lt;br&gt;...
&lt;br&gt;&amp;nbsp; End Millis 0x1: 505 ms
&lt;br&gt;Start Millis 0x1: 507 ms
&lt;br&gt;&amp;nbsp; End Millis 0x2: 509 ms
&lt;br&gt;Start Millis 0x2: 511 ms
&lt;br&gt;&amp;nbsp; End Millis 0x3: 514 ms
&lt;br&gt;Start Millis 0x3: 516 ms
&lt;br&gt;&amp;nbsp; End Millis 0x4: 518 ms
&lt;br&gt;Start Millis 0x4: 520 ms
&lt;br&gt;&amp;nbsp; End Millis 0x5: 523 ms
&lt;br&gt;Start Millis 0x5: 525 ms
&lt;br&gt;&amp;nbsp; End Millis 0x6: 527 ms
&lt;br&gt;Start Millis 0x6: 529 ms
&lt;br&gt;&amp;nbsp; End Millis 0x7: 532 ms
&lt;br&gt;Start Millis 0x7: 534 ms
&lt;br&gt;&amp;nbsp; End Millis 0x8: 536 ms
&lt;br&gt;Start Millis 0x8: 539 ms
&lt;br&gt;&amp;nbsp; End Millis 0x9: 541 ms
&lt;br&gt;Start Millis 0x9: 543 ms
&lt;br&gt;&amp;nbsp; End Millis 0xa: 545 ms
&lt;br&gt;Start Millis 0xa: 548 ms
&lt;br&gt;...
&lt;br&gt;&lt;br&gt;May be in your application you should check entry and return time of
&lt;br&gt;NutThreadYield(). Possibly another thread occupies the CPU for too long
&lt;br&gt;time.
&lt;br&gt;&lt;br&gt;Harald
&lt;br&gt;&lt;br&gt;PS: I tested on Ethernut 3 (ARM), but AVR should work similar.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------
&lt;br&gt;&lt;br&gt;Message: 4
&lt;br&gt;Date: Thu, 12 Nov 2009 10:28:31 +0100
&lt;br&gt;From: Harald Kipp &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321689&amp;i=16&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;harald.kipp@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Subject: Re: [En-Nut-Discussion] Timing issues on Ethernut 1.3 (AVR)
&lt;br&gt;To: &amp;quot;Ethernut User Chat (English)&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321689&amp;i=17&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;en-nut-discussion@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Message-ID: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321689&amp;i=18&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4AFBD53F.6060904@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Content-Type: text/plain; charset=ISO-8859-1
&lt;br&gt;&lt;br&gt;Daniel wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Issue 2, NutGetTickCount()
&lt;br&gt;&amp;gt; ======================
&lt;br&gt;&lt;br&gt;&amp;gt; The only hint i have is that I'm using the _delay_us(x) function, which is
&lt;br&gt;&amp;gt; not from Ethernut. Maybe there`s the problem?
&lt;br&gt;&lt;br&gt;Could be. In my previous example I used DEV_DEBUG, a polling driver,
&lt;br&gt;which will never release the CPU. Thus, each thread is blocked until the
&lt;br&gt;running thread calls NutThreadYield(). The same is true for _delay_us(x).
&lt;br&gt;&lt;br&gt;As long as you are working with resolutions of milliseconds, you should
&lt;br&gt;use Nut/OS events and timers, because they will release the CPU.
&lt;br&gt;&lt;br&gt;If you need higher resolutions, you may use a native timer interrupts
&lt;br&gt;for polling, if possible. If the interrupt routine detects a change, it
&lt;br&gt;calls NutEventPostFromIrq() to wake up a thread. In your example the
&lt;br&gt;status change will be detected by the timer interrupt routine and the
&lt;br&gt;thread will wait for a change in NutEventWait(). The optimal solution
&lt;br&gt;is, of course, if the status change can be detected by a dedicated
&lt;br&gt;interrupt, avoiding timer interrupt polling.
&lt;br&gt;&lt;br&gt;Keep in mind: As long as nothing happens, good application will run the
&lt;br&gt;idle thread. Polling is bad for cooperative systems like Nut/OS.
&lt;br&gt;&lt;br&gt;Harald
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------
&lt;br&gt;&lt;br&gt;Message: 5
&lt;br&gt;Date: Thu, 12 Nov 2009 10:54:00 +0100
&lt;br&gt;From: Harald Kipp &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321689&amp;i=19&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;harald.kipp@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Subject: [En-Nut-Discussion] Suggested modification to nut\net\tcpsm.c
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; again
&lt;br&gt;To: &amp;quot;Ethernut User Chat (English)&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321689&amp;i=20&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;en-nut-discussion@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Message-ID: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321689&amp;i=21&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4AFBDB38.3030300@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Content-Type: text/plain; charset=ISO-8859-15
&lt;br&gt;&lt;br&gt;Some time ago Zack suggested a modification of the TCP state machine:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/pipermail/en-nut-discussion/2007-May/008089.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/pipermail/en-nut-discussion/2007-May/008089.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;I assume, that this one fixed the problem at that time. However, recent
&lt;br&gt;tests showed, that the problem is back again.
&lt;br&gt;&lt;br&gt;I do not have a proof, just a strong feeling that somehow the way
&lt;br&gt;changed, the GNU compiler does calculations. Wasn't there similar fix
&lt;br&gt;required during the last months? I'm currently using GCC 4.4.2.
&lt;br&gt;&lt;br&gt;Unfortunately the problem now appears more often after
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://ethernut.svn.sourceforge.net/viewvc/ethernut/trunk/nut/net/tcpout.c?r1=1751&amp;r2=2082&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ethernut.svn.sourceforge.net/viewvc/ethernut/trunk/nut/net/tcpout.c?r1=1751&amp;r2=2082&lt;/a&gt;&lt;br&gt;&lt;br&gt;because so_retran_time may be 1 ms ahead.
&lt;br&gt;&lt;br&gt;As a result, Ethernut sends duplicate segments quite often.
&lt;br&gt;&lt;br&gt;Anyone else observed something similar with GCC calculation routines?
&lt;br&gt;&lt;br&gt;The following change seems to fix it.
&lt;br&gt;&lt;br&gt;/*
&lt;br&gt;&amp;nbsp;* Process retransmit timer.
&lt;br&gt;&amp;nbsp;*/
&lt;br&gt;if (sock-&amp;gt;so_tx_nbq &amp;&amp; sock-&amp;gt;so_retran_time) {
&lt;br&gt;&amp;nbsp; uint16_t millis = (uint16_t)NutGetMillis();
&lt;br&gt;&amp;nbsp; uint16_t diff = millis &amp;gt; sock-&amp;gt;so_retran_time ? millis -
&lt;br&gt;sock-&amp;gt;so_retran_time : sock-&amp;gt;so_retran_time - millis;
&lt;br&gt;&amp;nbsp; if (diff &amp;gt;= sock-&amp;gt;so_rtto) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; NutTcpStateRetranTimeout(sock);
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;I'm afraid, that there are other parts of the OS/Net code failing with
&lt;br&gt;the latest GCC.
&lt;br&gt;&lt;br&gt;Harald
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------
&lt;br&gt;&lt;br&gt;Message: 6
&lt;br&gt;Date: Thu, 12 Nov 2009 11:54:38 +0100
&lt;br&gt;From: Malte Marwedel &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321689&amp;i=22&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;m.marwedel@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Subject: [En-Nut-Discussion] FTP server fails with very small files
&lt;br&gt;To: &amp;quot;Ethernut User Chat (English)&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321689&amp;i=23&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;en-nut-discussion@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Message-ID: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26321689&amp;i=24&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4AFBE96E.3000006@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Content-Type: text/plain; charset=UTF-8; format=flowed
&lt;br&gt;&lt;br&gt;Hello,
&lt;br&gt;I observed, that putting very small files (less than 54 bytes in size) 
&lt;br&gt;to a board with Nut/OS results in a &amp;quot;550 Failed&amp;quot; with the ftp server.
&lt;br&gt;&lt;br&gt;I tried to find the cause of the problem and discovered that 
&lt;br&gt;NutFtpDataConnect retuns 0 because the NutTcpConnect call returns -1.
&lt;br&gt;I further observed that the error goes away as soon as I placed some 
&lt;br&gt;debug outputs before the NutFtpDataConnect call. So, for me it looks 
&lt;br&gt;like a timing issue. Can someone verify this problem?
&lt;br&gt;My system is: Arthernet board with Nut/OS 4.8.0 using gcc 4.3.2
&lt;br&gt;&lt;br&gt;Malte
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;End of En-Nut-Discussion Digest, Vol 73, Issue 11
&lt;br&gt;*************************************************
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/MicroControllers---Ethernut-f2056.html&quot; embed=&quot;fixTarget[2056]&quot; target=&quot;_top&quot; &gt;MicroControllers - Ethernut&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/_fdopen-failed-to-create-the-stream-on-the-socket-tp26307045p26321689.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26317971</id>
	<title>Re: Suggested modification to nut\net\tcpsm.c again</title>
	<published>2009-11-12T04:39:58Z</published>
	<updated>2009-11-12T04:39:58Z</updated>
	<author>
		<name>EnNut</name>
	</author>
	<content type="html">&amp;nbsp; &amp;nbsp;I have heartache casting the 32 bit result from NutGetMillis() to uint16_t.
&lt;br&gt;&amp;nbsp; &amp;nbsp;Doesn't it make more sense to define so_retran_time as u_long 
&lt;br&gt;rather than u_short in sock_var.h ?
&lt;br&gt;&lt;br&gt;I didn't look at the code but I would check to see if the u_long 
&lt;br&gt;result from NutGetMillis() is
&lt;br&gt;stored in so_time_wait. If so I would change it to u_long.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;Thoughts?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Zack
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;At 04:54 AM 11/12/2009, you wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;Some time ago Zack suggested a modification of the TCP state machine:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&lt;a href=&quot;http://lists.egnite.de/pipermail/en-nut-discussion/2007-May/008089.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/pipermail/en-nut-discussion/2007-May/008089.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;I assume, that this one fixed the problem at that time. However, recent
&lt;br&gt;&amp;gt;tests showed, that the problem is back again.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;I do not have a proof, just a strong feeling that somehow the way
&lt;br&gt;&amp;gt;changed, the GNU compiler does calculations. Wasn't there similar fix
&lt;br&gt;&amp;gt;required during the last months? I'm currently using GCC 4.4.2.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;Unfortunately the problem now appears more often after
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&lt;a href=&quot;http://ethernut.svn.sourceforge.net/viewvc/ethernut/trunk/nut/net/tcpout.c?r1=1751&amp;r2=2082&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ethernut.svn.sourceforge.net/viewvc/ethernut/trunk/nut/net/tcpout.c?r1=1751&amp;r2=2082&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;because so_retran_time may be 1 ms ahead.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;As a result, Ethernut sends duplicate segments quite often.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;Anyone else observed something similar with GCC calculation routines?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;The following change seems to fix it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;/*
&lt;br&gt;&amp;gt; &amp;nbsp;* Process retransmit timer.
&lt;br&gt;&amp;gt; &amp;nbsp;*/
&lt;br&gt;&amp;gt;if (sock-&amp;gt;so_tx_nbq &amp;&amp; sock-&amp;gt;so_retran_time) {
&lt;br&gt;&amp;gt; &amp;nbsp; uint16_t millis = (uint16_t)NutGetMillis();
&lt;br&gt;&amp;gt; &amp;nbsp; uint16_t diff = millis &amp;gt; sock-&amp;gt;so_retran_time ? millis -
&lt;br&gt;&amp;gt;sock-&amp;gt;so_retran_time : sock-&amp;gt;so_retran_time - millis;
&lt;br&gt;&amp;gt; &amp;nbsp; if (diff &amp;gt;= sock-&amp;gt;so_rtto) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; NutTcpStateRetranTimeout(sock);
&lt;br&gt;&amp;gt; &amp;nbsp; }
&lt;br&gt;&amp;gt;}
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;I'm afraid, that there are other parts of the OS/Net code failing with
&lt;br&gt;&amp;gt;the latest GCC.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;Harald
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;_______________________________________________
&lt;br&gt;&amp;gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/MicroControllers---Ethernut-f2056.html&quot; embed=&quot;fixTarget[2056]&quot; target=&quot;_top&quot; &gt;MicroControllers - Ethernut&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Suggested-modification-to-nut%5Cnet%5Ctcpsm.c-again-tp26316028p26317971.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26316863</id>
	<title>Re: Cute little oscilloscope</title>
	<published>2009-11-12T02:59:52Z</published>
	<updated>2009-11-12T02:59:52Z</updated>
	<author>
		<name>Tamas Rudnai</name>
	</author>
	<content type="html">On Thu, Nov 12, 2009 at 7:14 AM, SM Ling &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26316863&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ipal11@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; The nano is actually an open source product, but information is in
&lt;br&gt;&amp;gt; Chinese, and the firmware can be customised.
&lt;br&gt;&lt;br&gt;Is the doc in electronic format? If yes, is Google translation makes
&lt;br&gt;any sense if you try to get it translated to English?
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;Tamas
&lt;br&gt;-- 
&lt;br&gt;/* www.mcuhobby.com */ int main() { char *a,*s,*q; printf(s=&amp;quot;/*
&lt;br&gt;www.mcuhobby.com */ int main() { char *a,*s,*q; printf(s=%s%s%s,
&lt;br&gt;q=%s%s%s%s,s,q,q,a=%s%s%s%s,q,q,q,a,a,q); }&amp;quot;,
&lt;br&gt;q=&amp;quot;\&amp;quot;&amp;quot;,s,q,q,a=&amp;quot;\\&amp;quot;,q,q,q,a,a,q); }
&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://www.piclist.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.piclist.com&lt;/a&gt;&amp;nbsp;PIC/SX FAQ &amp; list archive
&lt;br&gt;View/change your membership options at
&lt;br&gt;&lt;a href=&quot;http://mailman.mit.edu/mailman/listinfo/piclist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.mit.edu/mailman/listinfo/piclist&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PIC----OT--f16320.html&quot; embed=&quot;fixTarget[16320]&quot; target=&quot;_top&quot; &gt;PIC - [OT]&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Cute-little-oscilloscope-tp26313849p26316863.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26316703</id>
	<title>FTP server fails with very small files</title>
	<published>2009-11-12T02:54:38Z</published>
	<updated>2009-11-12T02:54:38Z</updated>
	<author>
		<name>Malte Marwedel</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;I observed, that putting very small files (less than 54 bytes in size) 
&lt;br&gt;to a board with Nut/OS results in a &amp;quot;550 Failed&amp;quot; with the ftp server.
&lt;br&gt;&lt;br&gt;I tried to find the cause of the problem and discovered that 
&lt;br&gt;NutFtpDataConnect retuns 0 because the NutTcpConnect call returns -1.
&lt;br&gt;I further observed that the error goes away as soon as I placed some 
&lt;br&gt;debug outputs before the NutFtpDataConnect call. So, for me it looks 
&lt;br&gt;like a timing issue. Can someone verify this problem?
&lt;br&gt;My system is: Arthernet board with Nut/OS 4.8.0 using gcc 4.3.2
&lt;br&gt;&lt;br&gt;Malte
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/MicroControllers---Ethernut-f2056.html&quot; embed=&quot;fixTarget[2056]&quot; target=&quot;_top&quot; &gt;MicroControllers - Ethernut&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/FTP-server-fails-with-very-small-files-tp26316703p26316703.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26316681</id>
	<title>Thursday's New Giveaways! (Nov 12)</title>
	<published>2009-11-12T02:52:16Z</published>
	<updated>2009-11-12T02:52:16Z</updated>
	<author>
		<name>amberrobinsonrans</name>
	</author>
	<content type="html">Hello Everyone!
&lt;br&gt;&lt;br&gt;Here is a FRESH selection of stuff members can collect for nothing
&lt;br&gt;&lt;br&gt;There is lots to grab in this new Giveaway Mix!
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://groups.google.com/group/freebieshare/web/giveaway-mix-november-12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/freebieshare/web/giveaway-mix-november-12&lt;/a&gt;&lt;br&gt;&lt;br&gt;Enjoy!
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/OOPic-f14405.html&quot; embed=&quot;fixTarget[14405]&quot; target=&quot;_top&quot; &gt;OOPic&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Thursday%27s-New-Giveaways%21-%28Nov-12%29-tp26316681p26316681.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26316792</id>
	<title>Re: Cute little oscilloscope</title>
	<published>2009-11-12T02:51:32Z</published>
	<updated>2009-11-12T02:51:32Z</updated>
	<author>
		<name>SM Ling-2</name>
	</author>
	<content type="html">&amp;gt; How is the 5M scope? Build quality and performance in it's class would like to hear your reviews. Is the scope open source too?
&lt;br&gt;&lt;br&gt;Not open source as far as I know. &amp;nbsp;Have it only for a day, so I am not
&lt;br&gt;qualify to do a review as yet. &amp;nbsp;Check up &amp;nbsp;youtube, there are a few
&lt;br&gt;video there. &amp;nbsp;Google it, already some reviews on it.
&lt;br&gt;&lt;br&gt;Quick point:
&lt;br&gt;1. &amp;nbsp;The build is good (bought the assembled set). &amp;nbsp;But I hope it is
&lt;br&gt;not like those 1 month life-time product. &amp;nbsp;There was no such
&lt;br&gt;complaints on the net yet.
&lt;br&gt;2. &amp;nbsp;The various buttons and switches make operation it easy and fast.
&lt;br&gt;To me, this is important as compare to navigating around the on screen
&lt;br&gt;menu when I am using the tool.
&lt;br&gt;3. &amp;nbsp;It is smaller and lighter than it appears to be. &amp;nbsp;About size of 2
&lt;br&gt;pieces 2.5&amp;quot; external &amp;nbsp;HD stack together.
&lt;br&gt;4. Works off 2x18650 &amp;nbsp;lithium battery. &amp;nbsp;Yet to test out the battery life.
&lt;br&gt;5. Basic, &amp;nbsp;useable, and it has 1-shot mode
&lt;br&gt;6. No case. &amp;nbsp;Can't save to SD.
&lt;br&gt;&lt;br&gt;If you can wait for several more months, the chance of another open
&lt;br&gt;source handheld scope (much higher sampling rate) &amp;nbsp;materializing is
&lt;br&gt;quite high. &amp;nbsp;You may get it through taobao, but paying is a big
&lt;br&gt;problem though.
&lt;br&gt;&lt;br&gt;Ling SM
&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://www.piclist.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.piclist.com&lt;/a&gt;&amp;nbsp;PIC/SX FAQ &amp; list archive
&lt;br&gt;View/change your membership options at
&lt;br&gt;&lt;a href=&quot;http://mailman.mit.edu/mailman/listinfo/piclist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.mit.edu/mailman/listinfo/piclist&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PIC----OT--f16320.html&quot; embed=&quot;fixTarget[16320]&quot; target=&quot;_top&quot; &gt;PIC - [OT]&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Cute-little-oscilloscope-tp26313849p26316792.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26316419</id>
	<title>Re: Cute little oscilloscope</title>
	<published>2009-11-12T02:13:57Z</published>
	<updated>2009-11-12T02:13:57Z</updated>
	<author>
		<name>Wouter van Ooijen</name>
	</author>
	<content type="html">Bob Blick wrote:
&lt;br&gt;&amp;gt; This is where scopes are heading:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.seeedstudio.com/depot/micro-digital-storage-oscilloscopedso-nano-p-512.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.seeedstudio.com/depot/micro-digital-storage-oscilloscopedso-nano-p-512.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;That looks like a nice platform for embedded development. A pity they 
&lt;br&gt;show &amp;quot;-1&amp;quot; in stock :(
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;Wouter van Ooijen
&lt;br&gt;&lt;br&gt;-- -------------------------------------------
&lt;br&gt;Van Ooijen Technische Informatica: www.voti.nl
&lt;br&gt;consultancy, development, PICmicro products
&lt;br&gt;docent Hogeschool van Utrecht: www.voti.nl/hvu
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://www.piclist.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.piclist.com&lt;/a&gt;&amp;nbsp;PIC/SX FAQ &amp; list archive
&lt;br&gt;View/change your membership options at
&lt;br&gt;&lt;a href=&quot;http://mailman.mit.edu/mailman/listinfo/piclist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.mit.edu/mailman/listinfo/piclist&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PIC----OT--f16320.html&quot; embed=&quot;fixTarget[16320]&quot; target=&quot;_top&quot; &gt;PIC - [OT]&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Cute-little-oscilloscope-tp26313849p26316419.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26316028</id>
	<title>Suggested modification to nut\net\tcpsm.c again</title>
	<published>2009-11-12T01:54:00Z</published>
	<updated>2009-11-12T01:54:00Z</updated>
	<author>
		<name>Ethernut</name>
	</author>
	<content type="html">Some time ago Zack suggested a modification of the TCP state machine:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/pipermail/en-nut-discussion/2007-May/008089.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/pipermail/en-nut-discussion/2007-May/008089.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;I assume, that this one fixed the problem at that time. However, recent
&lt;br&gt;tests showed, that the problem is back again.
&lt;br&gt;&lt;br&gt;I do not have a proof, just a strong feeling that somehow the way
&lt;br&gt;changed, the GNU compiler does calculations. Wasn't there similar fix
&lt;br&gt;required during the last months? I'm currently using GCC 4.4.2.
&lt;br&gt;&lt;br&gt;Unfortunately the problem now appears more often after
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://ethernut.svn.sourceforge.net/viewvc/ethernut/trunk/nut/net/tcpout.c?r1=1751&amp;r2=2082&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ethernut.svn.sourceforge.net/viewvc/ethernut/trunk/nut/net/tcpout.c?r1=1751&amp;r2=2082&lt;/a&gt;&lt;br&gt;&lt;br&gt;because so_retran_time may be 1 ms ahead.
&lt;br&gt;&lt;br&gt;As a result, Ethernut sends duplicate segments quite often.
&lt;br&gt;&lt;br&gt;Anyone else observed something similar with GCC calculation routines?
&lt;br&gt;&lt;br&gt;The following change seems to fix it.
&lt;br&gt;&lt;br&gt;/*
&lt;br&gt;&amp;nbsp;* Process retransmit timer.
&lt;br&gt;&amp;nbsp;*/
&lt;br&gt;if (sock-&amp;gt;so_tx_nbq &amp;&amp; sock-&amp;gt;so_retran_time) {
&lt;br&gt;&amp;nbsp; uint16_t millis = (uint16_t)NutGetMillis();
&lt;br&gt;&amp;nbsp; uint16_t diff = millis &amp;gt; sock-&amp;gt;so_retran_time ? millis -
&lt;br&gt;sock-&amp;gt;so_retran_time : sock-&amp;gt;so_retran_time - millis;
&lt;br&gt;&amp;nbsp; if (diff &amp;gt;= sock-&amp;gt;so_rtto) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; NutTcpStateRetranTimeout(sock);
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;I'm afraid, that there are other parts of the OS/Net code failing with
&lt;br&gt;the latest GCC.
&lt;br&gt;&lt;br&gt;Harald
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/MicroControllers---Ethernut-f2056.html&quot; embed=&quot;fixTarget[2056]&quot; target=&quot;_top&quot; &gt;MicroControllers - Ethernut&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Suggested-modification-to-nut%5Cnet%5Ctcpsm.c-again-tp26316028p26316028.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26315741</id>
	<title>Re: Timing issues on Ethernut 1.3 (AVR)</title>
	<published>2009-11-12T01:28:31Z</published>
	<updated>2009-11-12T01:28:31Z</updated>
	<author>
		<name>Ethernut</name>
	</author>
	<content type="html">Daniel wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Issue 2, NutGetTickCount()
&lt;br&gt;&amp;gt; ======================
&lt;br&gt;&lt;br&gt;&amp;gt; The only hint i have is that I'm using the _delay_us(x) function, which is
&lt;br&gt;&amp;gt; not from Ethernut. Maybe there`s the problem?
&lt;br&gt;&lt;br&gt;Could be. In my previous example I used DEV_DEBUG, a polling driver,
&lt;br&gt;which will never release the CPU. Thus, each thread is blocked until the
&lt;br&gt;running thread calls NutThreadYield(). The same is true for _delay_us(x).
&lt;br&gt;&lt;br&gt;As long as you are working with resolutions of milliseconds, you should
&lt;br&gt;use Nut/OS events and timers, because they will release the CPU.
&lt;br&gt;&lt;br&gt;If you need higher resolutions, you may use a native timer interrupts
&lt;br&gt;for polling, if possible. If the interrupt routine detects a change, it
&lt;br&gt;calls NutEventPostFromIrq() to wake up a thread. In your example the
&lt;br&gt;status change will be detected by the timer interrupt routine and the
&lt;br&gt;thread will wait for a change in NutEventWait(). The optimal solution
&lt;br&gt;is, of course, if the status change can be detected by a dedicated
&lt;br&gt;interrupt, avoiding timer interrupt polling.
&lt;br&gt;&lt;br&gt;Keep in mind: As long as nothing happens, good application will run the
&lt;br&gt;idle thread. Polling is bad for cooperative systems like Nut/OS.
&lt;br&gt;&lt;br&gt;Harald
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/MicroControllers---Ethernut-f2056.html&quot; embed=&quot;fixTarget[2056]&quot; target=&quot;_top&quot; &gt;MicroControllers - Ethernut&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Timing-issues-on-Ethernut-1.3-%28AVR%29-tp26288248p26315741.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26315799</id>
	<title>Re: Cute little oscilloscope</title>
	<published>2009-11-12T01:26:17Z</published>
	<updated>2009-11-12T01:26:17Z</updated>
	<author>
		<name>Octavio Nogueira</name>
	</author>
	<content type="html">&amp;gt;The nano is actually an open source product, but information is in
&lt;br&gt;&amp;gt;Chinese, and the firmware can be customised. &amp;nbsp;Battery life was one of
&lt;br&gt;&amp;gt;the reasons, the designer settled for 1MHz. &amp;nbsp;It was targeting at lift
&lt;br&gt;&amp;gt;and car repairmen.
&lt;br&gt;&lt;br&gt;Do you have any link of the Nano Scope open source?
&lt;br&gt;&lt;br&gt;Octavio Nogueira
&lt;br&gt;Tato Equipamentos Eletrônicos Ltda
&lt;br&gt;Tel (11) 5506-5335
&lt;br&gt;&lt;br&gt;&lt;br&gt;2009/11/12 SM Ling &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26315799&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ipal11@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; After resisting for a month, I bought the 5M jyetech scope. &amp;nbsp;It
&lt;br&gt;&amp;gt; arrived yesterday :-)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The nano is actually an open source product, but information is in
&lt;br&gt;&amp;gt; Chinese, and the firmware can be customised. &amp;nbsp;Battery life was one of
&lt;br&gt;&amp;gt; the reasons, the designer settled for 1MHz. &amp;nbsp;It was targeting at lift
&lt;br&gt;&amp;gt; and car repairmen.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; There is a somewhat similar ee-forum in China like piclist, and they
&lt;br&gt;&amp;gt; are pumping out kits and stuff like nano-scope quite frequently, some
&lt;br&gt;&amp;gt; pick up be seedstudio.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Cheers, &amp;nbsp;Ling SM
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Thu, Nov 12, 2009 at 2:23 PM, M. Adam Davis &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26315799&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stienman@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; That one is only good to 1MHz though. &amp;nbsp;Good for slow clocks and analog
&lt;br&gt;&amp;gt; work.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I'm actually thinking that we'll go towards iPhone/android DSOs for
&lt;br&gt;&amp;gt; &amp;gt; field work, but the reality is that there's not much replacement for a
&lt;br&gt;&amp;gt; &amp;gt; large clear display with a good set of controls for bench work.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; On Thu, Nov 12, 2009 at 12:45 AM, Bob Blick &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26315799&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bobblick@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; This is where scopes are heading:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.seeedstudio.com/depot/micro-digital-storage-oscilloscopedso-nano-p-512.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.seeedstudio.com/depot/micro-digital-storage-oscilloscopedso-nano-p-512.html&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; I'm sure the analog stage is crap, but stuff like this is sure to push
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; some of the quality test equipment makers to do pocket-sized gear.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; -Bob
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href=&quot;http://www.piclist.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.piclist.com&lt;/a&gt;&amp;nbsp;PIC/SX FAQ &amp; list archive
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; View/change your membership options at
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href=&quot;http://mailman.mit.edu/mailman/listinfo/piclist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.mit.edu/mailman/listinfo/piclist&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://www.piclist.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.piclist.com&lt;/a&gt;&amp;nbsp;PIC/SX FAQ &amp; list archive
&lt;br&gt;&amp;gt; &amp;gt; View/change your membership options at
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://mailman.mit.edu/mailman/listinfo/piclist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.mit.edu/mailman/listinfo/piclist&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; &amp;nbsp;&lt;a href=&quot;http://www.piclist.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.piclist.com&lt;/a&gt;&amp;nbsp;PIC/SX FAQ &amp; list archive
&lt;br&gt;&amp;gt; View/change your membership options at
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://mailman.mit.edu/mailman/listinfo/piclist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.mit.edu/mailman/listinfo/piclist&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://www.piclist.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.piclist.com&lt;/a&gt;&amp;nbsp;PIC/SX FAQ &amp; list archive
&lt;br&gt;View/change your membership options at
&lt;br&gt;&lt;a href=&quot;http://mailman.mit.edu/mailman/listinfo/piclist&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.mit.edu/mailman/listinfo/piclist&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PIC----OT--f16320.html&quot; embed=&quot;fixTarget[16320]&quot; target=&quot;_top&quot; &gt;PIC - [OT]&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Cute-little-oscilloscope-tp26313849p26315799.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26315552</id>
	<title>Re: Timing issues on Ethernut 1.3 (AVR)</title>
	<published>2009-11-12T01:10:44Z</published>
	<updated>2009-11-12T01:10:44Z</updated>
	<author>
		<name>Ethernut</name>
	</author>
	<content type="html">Hi Daniel,
&lt;br&gt;&lt;br&gt;Daniel wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Issue 1, NutGetMillis()
&lt;br&gt;&amp;gt; =======================
&lt;br&gt;&lt;br&gt;I tried this &amp;nbsp;one:
&lt;br&gt;&lt;br&gt;#include &amp;lt;dev/board.h&amp;gt;
&lt;br&gt;#include &amp;lt;sys/thread.h&amp;gt;
&lt;br&gt;#include &amp;lt;sys/timer.h&amp;gt;
&lt;br&gt;&lt;br&gt;#include &amp;lt;stdio.h&amp;gt;
&lt;br&gt;#include &amp;lt;io.h&amp;gt;
&lt;br&gt;&lt;br&gt;THREAD(Thread, arg)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; for (;;) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; uint32_t start = NutGetMillis();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; uint32_t end = start + 500;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; uint16_t i = 0;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;Start Millis %p: %lu ms\n&amp;quot;, arg, NutGetMillis());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; do {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NutThreadYield();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; i++;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (i &amp;gt; 500) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;Current Millis %p: %lu ms\n&amp;quot;, arg, NutGetMillis());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; i = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } while(NutGetMillis() &amp;lt; end);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot; &amp;nbsp;End Millis %p: %lu ms\n&amp;quot;, arg, NutGetMillis());
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;int main(void)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; uint32_t baud = 115200;
&lt;br&gt;&amp;nbsp; &amp;nbsp; int i;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; NutRegisterDevice(&amp;DEV_DEBUG, 0, 0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; freopen(DEV_DEBUG_NAME, &amp;quot;w&amp;quot;, stdout);
&lt;br&gt;&amp;nbsp; &amp;nbsp; _ioctl(_fileno(stdout), UART_SETSPEED, &amp;baud);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; puts(&amp;quot;\nTest Millis&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; for (i = 1; i &amp;lt;= 10; i++) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NutThreadCreate(&amp;quot;th&amp;quot;, Thread, (void *)i, 512);
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; for (;;) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NutSleep(1000);
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; return 0;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;It works as expected:
&lt;br&gt;&lt;br&gt;Test Millis
&lt;br&gt;Start Millis 0x1: 5 ms
&lt;br&gt;Start Millis 0x2: 7 ms
&lt;br&gt;Start Millis 0x3: 9 ms
&lt;br&gt;Start Millis 0x4: 11 ms
&lt;br&gt;Start Millis 0x5: 13 ms
&lt;br&gt;Start Millis 0x6: 15 ms
&lt;br&gt;Start Millis 0x7: 17 ms
&lt;br&gt;Start Millis 0x8: 20 ms
&lt;br&gt;Start Millis 0x9: 22 ms
&lt;br&gt;Start Millis 0xa: 24 ms
&lt;br&gt;Current Millis 0x1: 109 ms
&lt;br&gt;Current Millis 0x2: 111 ms
&lt;br&gt;Current Millis 0x3: 114 ms
&lt;br&gt;Current Millis 0x4: 116 ms
&lt;br&gt;Current Millis 0x5: 119 ms
&lt;br&gt;Current Millis 0x6: 121 ms
&lt;br&gt;Current Millis 0x7: 124 ms
&lt;br&gt;Current Millis 0x8: 126 ms
&lt;br&gt;Current Millis 0x9: 129 ms
&lt;br&gt;Current Millis 0xa: 131 ms
&lt;br&gt;Current Millis 0x1: 218 ms
&lt;br&gt;Current Millis 0x2: 220 ms
&lt;br&gt;...
&lt;br&gt;&amp;nbsp; End Millis 0x1: 505 ms
&lt;br&gt;Start Millis 0x1: 507 ms
&lt;br&gt;&amp;nbsp; End Millis 0x2: 509 ms
&lt;br&gt;Start Millis 0x2: 511 ms
&lt;br&gt;&amp;nbsp; End Millis 0x3: 514 ms
&lt;br&gt;Start Millis 0x3: 516 ms
&lt;br&gt;&amp;nbsp; End Millis 0x4: 518 ms
&lt;br&gt;Start Millis 0x4: 520 ms
&lt;br&gt;&amp;nbsp; End Millis 0x5: 523 ms
&lt;br&gt;Start Millis 0x5: 525 ms
&lt;br&gt;&amp;nbsp; End Millis 0x6: 527 ms
&lt;br&gt;Start Millis 0x6: 529 ms
&lt;br&gt;&amp;nbsp; End Millis 0x7: 532 ms
&lt;br&gt;Start Millis 0x7: 534 ms
&lt;br&gt;&amp;nbsp; End Millis 0x8: 536 ms
&lt;br&gt;Start Millis 0x8: 539 ms
&lt;br&gt;&amp;nbsp; End Millis 0x9: 541 ms
&lt;br&gt;Start Millis 0x9: 543 ms
&lt;br&gt;&amp;nbsp; End Millis 0xa: 545 ms
&lt;br&gt;Start Millis 0xa: 548 ms
&lt;br&gt;...
&lt;br&gt;&lt;br&gt;May be in your application you should check entry and return time of
&lt;br&gt;NutThreadYield(). Possibly another thread occupies the CPU for too long
&lt;br&gt;time.
&lt;br&gt;&lt;br&gt;Harald
&lt;br&gt;&lt;br&gt;PS: I tested on Ethernut 3 (ARM), but AVR should work similar.
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/MicroControllers---Ethernut-f2056.html&quot; embed=&quot;fixTarget[2056]&quot; target=&quot;_top&quot; &gt;MicroControllers - Ethernut&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Timing-issues-on-Ethernut-1.3-%28AVR%29-tp26288248p26315552.html" />
</entry>

</feed>
