<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-2056</id>
	<title>Nabble - MicroControllers - Ethernut</title>
	<updated>2009-11-08T03:30:30Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/MicroControllers---Ethernut-f2056.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/MicroControllers---Ethernut-f2056.html" />
	<subtitle type="html">Discussions about the Ethernut embedded ethernet-enabled microcontroller.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26252880</id>
	<title>Re: Preferred way to send patches</title>
	<published>2009-11-08T03:30:30Z</published>
	<updated>2009-11-08T03:30:30Z</updated>
	<author>
		<name>Ethernut</name>
	</author>
	<content type="html">Harald Kipp wrote:
&lt;br&gt;&amp;gt; the trunk. Except the AT91 EMAC enhancements / fixes from Thiago.
&lt;br&gt;&amp;gt; Ethernut 3 hangs sometimes when loading the flash animation included in
&lt;br&gt;&lt;br&gt;This was nonsense. Ethernut 3 doesn't use the AT91 EMAC driver. Sorry
&lt;br&gt;for any confusion.
&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Preferred-way-to-send-patches-tp26216471p26252880.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26236944</id>
	<title>Re: Preferred way to send patches</title>
	<published>2009-11-06T10:54:14Z</published>
	<updated>2009-11-06T10:54:14Z</updated>
	<author>
		<name>Ethernut</name>
	</author>
	<content type="html">Ole Reinhardt wrote:
&lt;br&gt;&amp;gt; For me the patch sounds reasonable. But I won't be able to check it in
&lt;br&gt;&amp;gt; before end of next week as I'm now going on holidays...
&lt;br&gt;&lt;br&gt;Thanks, Ole for offering your help. Today I applied all open patches to
&lt;br&gt;the trunk. Except the AT91 EMAC enhancements / fixes from Thiago.
&lt;br&gt;Ethernut 3 hangs sometimes when loading the flash animation included in
&lt;br&gt;app/httpd. I'll have to check this in more detail.
&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Preferred-way-to-send-patches-tp26216471p26236944.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26235719</id>
	<title>Re: Preferred way to send patches</title>
	<published>2009-11-06T09:34:28Z</published>
	<updated>2009-11-06T09:34:28Z</updated>
	<author>
		<name>Thiago A. Corrêa</name>
	</author>
	<content type="html">Shouldn't we also apply that to the other platforms?
&lt;br&gt;Could perhaps be in nutconf as well...
&lt;br&gt;&lt;br&gt;On Fri, Nov 6, 2009 at 3:11 PM, Ole Reinhardt
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26235719&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ole.reinhardt@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Uwe,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://lists.egnite.de/pipermail/en-nut-discussion/2009-February/010399.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/pipermail/en-nut-discussion/2009-February/010399.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; For me the patch sounds reasonable. But I won't be able to check it in
&lt;br&gt;&amp;gt; before end of next week as I'm now going on holidays...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; bye,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Ole
&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; | Embedded-IT                                                 |
&lt;br&gt;&amp;gt; |                                                             |
&lt;br&gt;&amp;gt; | Ole Reinhardt        Tel. / Fax:        +49 (0)271  7420433 |
&lt;br&gt;&amp;gt; | Luisenstraße 29      Mobil:             +49 (0)177  7420433 |
&lt;br&gt;&amp;gt; | 57076 Siegen         eMail:    &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26235719&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ole.reinhardt@...&lt;/a&gt; |
&lt;br&gt;&amp;gt; | Germany              Web:         &lt;a href=&quot;http://www.embedded-it.de&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.embedded-it.de&lt;/a&gt;&amp;nbsp;|
&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;br&gt;&amp;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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Preferred-way-to-send-patches-tp26216471p26235719.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26235430</id>
	<title>Re: Preferred way to send patches</title>
	<published>2009-11-06T09:11:49Z</published>
	<updated>2009-11-06T09:11:49Z</updated>
	<author>
		<name>Ole Reinhardt-2</name>
	</author>
	<content type="html">Hi Uwe,
&lt;br&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://lists.egnite.de/pipermail/en-nut-discussion/2009-February/010399.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/pipermail/en-nut-discussion/2009-February/010399.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;For me the patch sounds reasonable. But I won't be able to check it in
&lt;br&gt;before end of next week as I'm now going on holidays...
&lt;br&gt;&lt;br&gt;bye,
&lt;br&gt;&lt;br&gt;Ole
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp;_____________________________________________________________
&lt;br&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;| Embedded-IT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;| Ole Reinhardt &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Tel. / Fax: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+49 (0)271 &amp;nbsp;7420433 |
&lt;br&gt;| Luisenstraße 29 &amp;nbsp; &amp;nbsp; &amp;nbsp;Mobil: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +49 (0)177 &amp;nbsp;7420433 |
&lt;br&gt;| 57076 Siegen &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; eMail: &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26235430&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ole.reinhardt@...&lt;/a&gt; |
&lt;br&gt;| Germany &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Web: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.embedded-it.de&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.embedded-it.de&lt;/a&gt;&amp;nbsp;|
&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Preferred-way-to-send-patches-tp26216471p26235430.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26233308</id>
	<title>Re: ARP and UDP</title>
	<published>2009-11-06T06:49:48Z</published>
	<updated>2009-11-06T06:49:48Z</updated>
	<author>
		<name>Nathan Moore-5</name>
	</author>
	<content type="html">Hi Paolo,
&lt;br&gt;&lt;br&gt;Following my previous post about this question, after a lot of
&lt;br&gt;&amp;gt; packet sniffing with ettercap, wireshark and tcpdump.
&lt;br&gt;&amp;gt; i can definitively say that if you throw out an UDP packet
&lt;br&gt;&amp;gt; very early (seems about before 500 ms) after opening the socket
&lt;br&gt;&amp;gt; it gets lost into the TCP guts of NutOs :( ...
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;If you can send one of the network dumps to this list maybe someone
&lt;br&gt;will have an idea of what is happening. &amp;nbsp;It would be best if the time stamps
&lt;br&gt;were either absolute (time of day) or relative for only the packets of
&lt;br&gt;interest
&lt;br&gt;(&amp;quot;seconds since previously displayed packet&amp;quot; in wireshark).
&lt;br&gt;&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ARP-and-UDP-tp26231234p26233308.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26231234</id>
	<title>ARP and UDP</title>
	<published>2009-11-06T04:27:51Z</published>
	<updated>2009-11-06T04:27:51Z</updated>
	<author>
		<name>Paolo Simoncelli</name>
	</author>
	<content type="html">&lt;br&gt;Hi all,
&lt;br&gt;&lt;br&gt;Following my previous post about this question, after a lot of
&lt;br&gt;packet sniffing with ettercap, wireshark and tcpdump.
&lt;br&gt;i can definitively say that if you throw out an UDP packet
&lt;br&gt;very early (seems about before 500 ms) after opening the socket
&lt;br&gt;it gets lost into the TCP guts of NutOs :( ...
&lt;br&gt;&lt;br&gt;In his reply Ole pointed out that if was possible that
&lt;br&gt;ethernut fired the packet too early for the UDP server
&lt;br&gt;to complete his ARP table, but it seems to me that the
&lt;br&gt;problem is on the ethernut side, :( things go like this:
&lt;br&gt;&lt;br&gt;ARP request starts from ethernut
&lt;br&gt;the server replies with its IP
&lt;br&gt;&lt;br&gt;then two cases:
&lt;br&gt;if you send an UDP packet within 500 ms, just
&lt;br&gt;nothing &amp;nbsp;comes out from the etherenet
&lt;br&gt;&lt;br&gt;if you send an UDP packet after 500 ms all is fine
&lt;br&gt;&lt;br&gt;probably ethernut has not built its ARP table
&lt;br&gt;and just silently discards the packet, second one
&lt;br&gt;goes like a breeze !
&lt;br&gt;&lt;br&gt;NutSleep(500); before sending out the first packet
&lt;br&gt;resolves the issue
&lt;br&gt;&lt;br&gt;maybe TCP seems not affected by this behaviour due to
&lt;br&gt;protocol retries that mask the problem
&lt;br&gt;&lt;br&gt;&lt;br&gt;Sorry to appear pedantic about this question,
&lt;br&gt;but i'm developing an application that sends out
&lt;br&gt;just one packet ;-) ...
&lt;br&gt;&lt;br&gt;Ciao.
&lt;br&gt;Paolo
&lt;br&gt;&lt;br&gt;&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;Legal.email.it: il servizio di Posta elettronica certificata con SMS di notifica per aziende e liberi professionisti. Secondo la normativa vigente l'ultimo giorno per mettersi in regola è il 29 novembre 2009.
&lt;br&gt;&amp;nbsp;Clicca qui: &lt;a href=&quot;http://adv.email.it/cgi-bin/foclick.cgi?mid=8979&amp;d=6-11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://adv.email.it/cgi-bin/foclick.cgi?mid=8979&amp;d=6-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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ARP-and-UDP-tp26231234p26231234.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26230418</id>
	<title>Re: Dual rs232&lt;-&gt;Ethernet</title>
	<published>2009-11-06T03:26:01Z</published>
	<updated>2009-11-06T03:26:01Z</updated>
	<author>
		<name>asdus</name>
	</author>
	<content type="html">Hi all!
&lt;br&gt;After some tries I'm get fully workable code. You can see that here:
&lt;br&gt;&lt;a href=&quot;http://pastebin.mozilla-russia.org/102504&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pastebin.mozilla-russia.org/102504&lt;/a&gt;&lt;br&gt;&lt;br&gt;But I still have rare freezes, and need to manually reset my device.
&lt;br&gt;Have a chance to resolve this?
&lt;br&gt;&lt;br&gt;2009/10/27 asdus &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26230418&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;asdusik@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt; Hi all.
&lt;br&gt;&amp;gt; For my home automation i need to use 2 rs232&amp;lt;-&amp;gt;ethernet converters
&lt;br&gt;&amp;gt; I'm buy Ethernut V 1.3 H board and try to make it, using rs232d, Basic
&lt;br&gt;&amp;gt; TCP Server and Serial Port Monitor examples.
&lt;br&gt;&amp;gt; Using that i need to do this in dedicated threads, because i'm use
&lt;br&gt;&amp;gt; other ethernut's digital pins to get home events. All my tries fails,
&lt;br&gt;&amp;gt; i have lags using my remote rs232's.
&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Dual-rs232%3C-%3EEthernet-tp26076096p26230418.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26229497</id>
	<title>Re: Preferred way to send patches</title>
	<published>2009-11-06T02:07:30Z</published>
	<updated>2009-11-06T02:07:30Z</updated>
	<author>
		<name>Uwe Bonnes</name>
	</author>
	<content type="html">&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;Ole&amp;quot; == Ole Reinhardt &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26229497&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ole.reinhardt@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Ole&amp;gt; Hi Uwe,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; what is the preferred way to send patches? This list, the sourceforge
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; tracker or another media.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Ole&amp;gt; Te sourceforge tracker is a good place to place patches. If you
&lt;br&gt;&amp;nbsp; &amp;nbsp; Ole&amp;gt; send a message to the list too your path will be noticed earlier.
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; Anyway, I enter a patch to Allow to pass options to ROM/HEX/BIN
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; Generation on this list (some time ago) and on the tracker, with no
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; reaction so long.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Ole&amp;gt; Sorry if your message did not get any notice...
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Ole&amp;gt; I searched the archive but did not find any patch concerning the
&lt;br&gt;&amp;nbsp; &amp;nbsp; Ole&amp;gt; binary / hex generation? Do you have a link (to the archive) or
&lt;br&gt;&amp;nbsp; &amp;nbsp; Ole&amp;gt; could you tell me the date?
&lt;br&gt;&lt;br&gt;It has been some time:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/pipermail/en-nut-discussion/2009-February/010399.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/pipermail/en-nut-discussion/2009-February/010399.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Bye
&lt;br&gt;-- 
&lt;br&gt;Uwe Bonnes &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26229497&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bon@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;Institut fuer Kernphysik &amp;nbsp;Schlossgartenstrasse 9 &amp;nbsp;64289 Darmstadt
&lt;br&gt;--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Preferred-way-to-send-patches-tp26216471p26229497.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26228965</id>
	<title>Re: Preferred way to send patches</title>
	<published>2009-11-06T01:21:25Z</published>
	<updated>2009-11-06T01:21:25Z</updated>
	<author>
		<name>Ole Reinhardt-2</name>
	</author>
	<content type="html">Hi Uwe,
&lt;br&gt;&lt;br&gt;&amp;gt; what is the preferred way to send patches? This list, the sourceforge
&lt;br&gt;&amp;gt; tracker or another media.
&lt;br&gt;&lt;br&gt;Te sourceforge tracker is a good place to place patches. If you send a
&lt;br&gt;message to the list too your path will be noticed earlier. 
&lt;br&gt;&lt;br&gt;&amp;gt; Anyway, I enter a patch to
&lt;br&gt;&amp;gt; Allow to pass options to ROM/HEX/BIN Generation
&lt;br&gt;&amp;gt; on this list (some time ago) and on the tracker, with no reaction so long.
&lt;br&gt;&lt;br&gt;Sorry if your message did not get any notice...
&lt;br&gt;&lt;br&gt;I searched the archive but did not find any patch concerning the
&lt;br&gt;binary / hex generation? Do you have a link (to the archive) or could
&lt;br&gt;you tell me the date?
&lt;br&gt;&lt;br&gt;I will review it asap, but from tomorrow on I'll be on holidays for a
&lt;br&gt;week.
&lt;br&gt;&lt;br&gt;Bye,
&lt;br&gt;&lt;br&gt;Ole
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp;_____________________________________________________________
&lt;br&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;| Embedded-IT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;| Ole Reinhardt &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Tel. / Fax: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+49 (0)271 &amp;nbsp;7420433 |
&lt;br&gt;| Luisenstraße 29 &amp;nbsp; &amp;nbsp; &amp;nbsp;Mobil: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +49 (0)177 &amp;nbsp;7420433 |
&lt;br&gt;| 57076 Siegen &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; eMail: &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26228965&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ole.reinhardt@...&lt;/a&gt; |
&lt;br&gt;| Germany &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Web: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.embedded-it.de&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.embedded-it.de&lt;/a&gt;&amp;nbsp;|
&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Preferred-way-to-send-patches-tp26216471p26228965.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26216471</id>
	<title>Preferred way to send patches</title>
	<published>2009-11-05T07:11:29Z</published>
	<updated>2009-11-05T07:11:29Z</updated>
	<author>
		<name>Uwe Bonnes</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;what is the preferred way to send patches? This list, the sourceforge
&lt;br&gt;tracker or another media.
&lt;br&gt;&lt;br&gt;Anyway, I enter a patch to
&lt;br&gt;Allow to pass options to ROM/HEX/BIN Generation
&lt;br&gt;on this list (some time ago) and on the tracker, with no reaction so long.
&lt;br&gt;&lt;br&gt;Bye
&lt;br&gt;-- 
&lt;br&gt;Uwe Bonnes &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216471&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bon@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;Institut fuer Kernphysik &amp;nbsp;Schlossgartenstrasse 9 &amp;nbsp;64289 Darmstadt
&lt;br&gt;--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Preferred-way-to-send-patches-tp26216471p26216471.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26213827</id>
	<title>Re: Different automatically generated build trees in Linux and Windows for NutOS 4.8 (was Re: &quot;US_PIOA_PINS_A&quot; redefined)</title>
	<published>2009-11-05T04:40:35Z</published>
	<updated>2009-11-05T04:40:35Z</updated>
	<author>
		<name>jvallet</name>
	</author>
	<content type="html">OK, going forward.
&lt;br&gt;&lt;br&gt;The problem seems to the version of nutconf that I was using. It seems 
&lt;br&gt;that somehow version 1.4.3 was generating the build tree wrongly for me. 
&lt;br&gt;I have tried now with versions 2.0.5 and 2.0.9, and they both work.
&lt;br&gt;&lt;br&gt;I am still surprised. Has there been any significant changes between 
&lt;br&gt;versions so that this can happen? Does this mean that something has 
&lt;br&gt;changed in the .nut and .conf files so that they require nutconf version 2?
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;José
&lt;br&gt;&lt;br&gt;José Vallet wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello all.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I am still struggling to compile a fresh ethernut-4.8.* in my linux.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The previous short thread can be found at
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://groups.google.com/group/osdeve_mirror_rtos_en-nut-discussion/browse_frm/thread/20c243fe22b49b5b/f36336950173ab7e?hl=en&amp;lnk=gst&amp;q=%22US_PIOA_PINS_A%22+redefined#f36336950173ab7e&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/osdeve_mirror_rtos_en-nut-discussion/browse_frm/thread/20c243fe22b49b5b/f36336950173ab7e?hl=en&amp;lnk=gst&amp;q=%22US_PIOA_PINS_A%22+redefined#f36336950173ab7e&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This time I tried 4.8.5, with the same result:
&lt;br&gt;&amp;gt; -------
&lt;br&gt;&amp;gt; /home/jose/ethernut2/ethernut-4.8.5/arch/arm/dev/usart0at91.c:229:1: 
&lt;br&gt;&amp;gt; error: &amp;quot;US_PIOA_PINS_A&amp;quot; redefined
&lt;br&gt;&amp;gt; /home/jose/ethernut2/ethernut-4.8.5/arch/arm/dev/usart0at91.c:215:1: 
&lt;br&gt;&amp;gt; error: this is the location of the previous definition
&lt;br&gt;&amp;gt; -------
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; As Marcus Jansson kindly pointed, it seems to be due to having multiple 
&lt;br&gt;&amp;gt; MCUs defined. Let me recall that I have not modified the sources, I am 
&lt;br&gt;&amp;gt; using a fresh downloaded ethernut-4.8.5 package.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Trying to dig into this I noticed that the automatically generated 
&lt;br&gt;&amp;gt; nut-bld/include/cfg/arch.h has, among PLATFORM and ARM_GCC, the 
&lt;br&gt;&amp;gt; following MCUs defined: MCU_AT91R40008, MCU_AT91, MCU_AT91SAM7S, 
&lt;br&gt;&amp;gt; MCU_AT91SAM7SE, MCU_AT91SAM7X and MCU_AT91SAM9XE. The same file, when 
&lt;br&gt;&amp;gt; generated automatically from a Windows installation defines only 
&lt;br&gt;&amp;gt; MCU_AT91R40008 and MCU_AT91.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I have also noticed other disparities between the build trees generated 
&lt;br&gt;&amp;gt; in Linux and Windows. Is this normal? Shouldn't they be the same? If 
&lt;br&gt;&amp;gt; not, why?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; As a side note, I can compile the build tree generated from Windows in 
&lt;br&gt;&amp;gt; my linux machine
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Just in case it is useful, I have noticed differences also in the 
&lt;br&gt;&amp;gt; following automatically generated files:
&lt;br&gt;&amp;gt; nut-bld/include/cfg/ahdlc.h
&lt;br&gt;&amp;gt; nut-bld/include/cfg/audio.h
&lt;br&gt;&amp;gt; nut-bld/include/cfg/audio.h
&lt;br&gt;&amp;gt; nut-bld/include/cfg/eeprom.h
&lt;br&gt;&amp;gt; nut-bld/include/cfg/memory.h
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; So, as usual, am I missing something?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks in advance!
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; José
&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/%22US_PIOA_PINS_A%22-redefined-tp25748556p26213827.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26196005</id>
	<title>Different automatically generated build trees in Linux and Windows for NutOS 4.8 (was Re: &quot;US_PIOA_PINS_A&quot; redefined)</title>
	<published>2009-11-04T05:07:25Z</published>
	<updated>2009-11-04T05:07:25Z</updated>
	<author>
		<name>jvallet</name>
	</author>
	<content type="html">Hello all.
&lt;br&gt;&lt;br&gt;I am still struggling to compile a fresh ethernut-4.8.* in my linux.
&lt;br&gt;&lt;br&gt;The previous short thread can be found at
&lt;br&gt;&lt;a href=&quot;http://groups.google.com/group/osdeve_mirror_rtos_en-nut-discussion/browse_frm/thread/20c243fe22b49b5b/f36336950173ab7e?hl=en&amp;lnk=gst&amp;q=%22US_PIOA_PINS_A%22+redefined#f36336950173ab7e&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/osdeve_mirror_rtos_en-nut-discussion/browse_frm/thread/20c243fe22b49b5b/f36336950173ab7e?hl=en&amp;lnk=gst&amp;q=%22US_PIOA_PINS_A%22+redefined#f36336950173ab7e&lt;/a&gt;&lt;br&gt;&lt;br&gt;This time I tried 4.8.5, with the same result:
&lt;br&gt;-------
&lt;br&gt;/home/jose/ethernut2/ethernut-4.8.5/arch/arm/dev/usart0at91.c:229:1: 
&lt;br&gt;error: &amp;quot;US_PIOA_PINS_A&amp;quot; redefined
&lt;br&gt;/home/jose/ethernut2/ethernut-4.8.5/arch/arm/dev/usart0at91.c:215:1: 
&lt;br&gt;error: this is the location of the previous definition
&lt;br&gt;-------
&lt;br&gt;&lt;br&gt;As Marcus Jansson kindly pointed, it seems to be due to having multiple 
&lt;br&gt;MCUs defined. Let me recall that I have not modified the sources, I am 
&lt;br&gt;using a fresh downloaded ethernut-4.8.5 package.
&lt;br&gt;&lt;br&gt;Trying to dig into this I noticed that the automatically generated 
&lt;br&gt;nut-bld/include/cfg/arch.h has, among PLATFORM and ARM_GCC, the 
&lt;br&gt;following MCUs defined: MCU_AT91R40008, MCU_AT91, MCU_AT91SAM7S, 
&lt;br&gt;MCU_AT91SAM7SE, MCU_AT91SAM7X and MCU_AT91SAM9XE. The same file, when 
&lt;br&gt;generated automatically from a Windows installation defines only 
&lt;br&gt;MCU_AT91R40008 and MCU_AT91.
&lt;br&gt;&lt;br&gt;I have also noticed other disparities between the build trees generated 
&lt;br&gt;in Linux and Windows. Is this normal? Shouldn't they be the same? If 
&lt;br&gt;not, why?
&lt;br&gt;&lt;br&gt;As a side note, I can compile the build tree generated from Windows in 
&lt;br&gt;my linux machine
&lt;br&gt;&lt;br&gt;Just in case it is useful, I have noticed differences also in the 
&lt;br&gt;following automatically generated files:
&lt;br&gt;nut-bld/include/cfg/ahdlc.h
&lt;br&gt;nut-bld/include/cfg/audio.h
&lt;br&gt;nut-bld/include/cfg/audio.h
&lt;br&gt;nut-bld/include/cfg/eeprom.h
&lt;br&gt;nut-bld/include/cfg/memory.h
&lt;br&gt;&lt;br&gt;So, as usual, am I missing something?
&lt;br&gt;&lt;br&gt;Thanks in advance!
&lt;br&gt;&lt;br&gt;José
&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/%22US_PIOA_PINS_A%22-redefined-tp25748556p26196005.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26178959</id>
	<title>Re: Slight problem with UDP</title>
	<published>2009-11-03T04:34:35Z</published>
	<updated>2009-11-03T04:34:35Z</updated>
	<author>
		<name>Paolo Simoncelli</name>
	</author>
	<content type="html">&lt;br&gt;Hi Ole,
&lt;br&gt;&lt;br&gt;Thanks for your reply,
&lt;br&gt;&lt;br&gt;&amp;gt;In your current configuration it might be possible that the first UDP
&lt;br&gt;&amp;gt;packet is send out before the arp challenge / response is finished, so
&lt;br&gt;&amp;gt;your pc does not have a complete arp table right at the beginning of
&lt;br&gt;&amp;gt;your program... (on the pc side).
&lt;br&gt;&lt;br&gt;So you think that it's a pc-side problem?
&lt;br&gt;things should go like this:
&lt;br&gt;&lt;br&gt;en		 &amp;nbsp; &amp;nbsp; pc
&lt;br&gt;&lt;br&gt;ARP whois pc ?
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ARPr here i am
&lt;br&gt;UDP take this one !
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ARP whois en ?
&lt;br&gt;ARP let me think ...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; uhmm ... no one replies drop that %$%ih
&lt;br&gt;ARPr here i am	 &amp;nbsp; &amp;nbsp; nice to meet you !
&lt;br&gt;&lt;br&gt;then, they live long and prosper ...
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;I have not much debugging aid, but i have tried to
&lt;br&gt;&amp;quot;UDP flood&amp;quot; my server, with another pc, and i have lost
&lt;br&gt;no first packet, so it seems more a &amp;quot;slow&amp;quot; reply from ethernut
&lt;br&gt;&lt;br&gt;maybe en ARP replying task is switched too early, before completing
&lt;br&gt;ARP challenge so UDP packet is sent too early to the server
&lt;br&gt;&lt;br&gt;I am not that deep into ARP, so i don't know whether the responding
&lt;br&gt;side knows if the querying side has got his reply or if all is left
&lt;br&gt;to timeouts
&lt;br&gt;&lt;br&gt;next days i will setup a more deep test, anyway this seems a well
&lt;br&gt;known behaviour, with a workaround too ;-) !
&lt;br&gt;&lt;br&gt;sorry for the spam at the end of my messages
&lt;br&gt;&lt;br&gt;Ciao!
&lt;br&gt;Paolo
&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Slight-problem-with-UDP-tp26163344p26178959.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26177775</id>
	<title>Re: NutOS serial driver</title>
	<published>2009-11-03T02:36:11Z</published>
	<updated>2009-11-03T02:36:11Z</updated>
	<author>
		<name>Ole Reinhardt-2</name>
	</author>
	<content type="html">Hi Jason,
&lt;br&gt;&lt;br&gt;&amp;gt; I am using the NutOS v4.8.0. The application that I am writing needs to
&lt;br&gt;&amp;gt; &amp;nbsp;received 2070 bytes in one shot and also transmit 4096 bytes in one
&lt;br&gt;&amp;gt; &amp;nbsp;shot via RS232, I enabled interruptions to detect the end of the
&lt;br&gt;&amp;gt; &amp;nbsp;packet when I received data. If I increase the USART_RXBUFSIZ to 3072
&lt;br&gt;&amp;gt; &amp;nbsp;bytes and the USART_TXBUFSIZ tp 5120. Do I have to have any
&lt;br&gt;&amp;gt; &amp;nbsp;considerations? Will The nutOS v4.8.0 crush due to this changes?
&lt;br&gt;&lt;br&gt;Some time ago we just had a discussion concerning a bug in the serial
&lt;br&gt;driver implementation triggered when changing the rx / tx buffer size.
&lt;br&gt;&lt;br&gt;If you like to do so you should always also set the hight and low
&lt;br&gt;watermark of the rx an tx buffers. Otherwise you might get corrupted
&lt;br&gt;data.
&lt;br&gt;&lt;br&gt;At least the size of your buffers is only limited by the available free
&lt;br&gt;memory. As Ulrich just mentioned you should better take into account if
&lt;br&gt;you realy need such large buffers.
&lt;br&gt;&lt;br&gt;If you want to check if the buffer is empty (tx as completed) you can
&lt;br&gt;use the following code:
&lt;br&gt;&lt;br&gt;int &amp;nbsp; &amp;nbsp; &amp;nbsp;cycle = 0;
&lt;br&gt;uint32_t parm;
&lt;br&gt;&lt;br&gt;do {
&lt;br&gt;&amp;nbsp; &amp;nbsp; _ioctl(_fileno(uart0), UART_GETSTATUS, &amp;parm);
&lt;br&gt;&amp;nbsp; &amp;nbsp; NutSleep(10);
&lt;br&gt;} while (!(parm &amp; UART_TXBUFFEREMPTY) || (cycle &amp;gt; 1000));
&lt;br&gt;&lt;br&gt;Btw: Instead of sleeping you could do something usefull too...
&lt;br&gt;&lt;br&gt;Bye,
&lt;br&gt;&lt;br&gt;Ole
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp;_____________________________________________________________
&lt;br&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;| Embedded-IT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;| Ole Reinhardt &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Tel. / Fax: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+49 (0)271 &amp;nbsp;7420433 |
&lt;br&gt;| Luisenstraße 29 &amp;nbsp; &amp;nbsp; &amp;nbsp;Mobil: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +49 (0)177 &amp;nbsp;7420433 |
&lt;br&gt;| 57076 Siegen &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; eMail: &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26177775&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ole.reinhardt@...&lt;/a&gt; |
&lt;br&gt;| Germany &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Web: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.embedded-it.de&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.embedded-it.de&lt;/a&gt;&amp;nbsp;|
&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NutOS-serial-driver-tp26144890p26177775.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26171096</id>
	<title>Re: Slight problem with UDP</title>
	<published>2009-11-02T13:33:45Z</published>
	<updated>2009-11-02T13:33:45Z</updated>
	<author>
		<name>Ole Reinhardt-2</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;&lt;br&gt;&amp;gt; While playing with &amp;quot;icmp-udp.c&amp;quot;, after some packet sniffing with
&lt;br&gt;&amp;gt; FreeBSD's tcpdump i have noticed that the first packet sent by the
&lt;br&gt;&amp;gt; ethernut was regularly lost.
&lt;br&gt;&amp;gt; [...]
&lt;br&gt;&amp;gt; The issue seem to be somehow ARP related, just adding a slight
&lt;br&gt;&amp;gt; ( &amp;gt; 300 ms ) delay before start sending UDP packets to the server
&lt;br&gt;&amp;gt; seem solve the problem ...
&lt;br&gt;&lt;br&gt;Indeed I noticed similar behaviour some time ago with the tftp
&lt;br&gt;bootloader implementations of NutOS. The arp implementation did not
&lt;br&gt;include a arp response. When the PC had sended an arp request and did
&lt;br&gt;not get any reponse, the arp entry was deleted and no more packets were
&lt;br&gt;accepted by the pc.
&lt;br&gt;&lt;br&gt;In your current configuration it might be possible that the first UDP
&lt;br&gt;packet is send out before the arp challenge / response is finished, so
&lt;br&gt;your pc does not have a complete arp table right at the beginning of
&lt;br&gt;your program... (on the pc side).
&lt;br&gt;&lt;br&gt;Bye,
&lt;br&gt;&lt;br&gt;Ole
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp;_____________________________________________________________
&lt;br&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;| Embedded-IT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;| Ole Reinhardt &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Tel. / Fax: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+49 (0)271 &amp;nbsp;7420433 |
&lt;br&gt;| Luisenstraße 29 &amp;nbsp; &amp;nbsp; &amp;nbsp;Mobil: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +49 (0)177 &amp;nbsp;7420433 |
&lt;br&gt;| 57076 Siegen &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; eMail: &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26171096&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ole.reinhardt@...&lt;/a&gt; |
&lt;br&gt;| Germany &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Web: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.embedded-it.de&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.embedded-it.de&lt;/a&gt;&amp;nbsp;|
&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Slight-problem-with-UDP-tp26163344p26171096.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26163344</id>
	<title>Slight problem with UDP</title>
	<published>2009-11-02T04:34:50Z</published>
	<updated>2009-11-02T04:34:50Z</updated>
	<author>
		<name>Paolo Simoncelli</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;Hello world,
&lt;br&gt;&lt;br&gt;First of all let me make my congratulations to all those who
&lt;br&gt;are supporting the EN/NutOS project ...
&lt;br&gt;&lt;br&gt;Now, ... since i am quite new to ethernut i am just compiling
&lt;br&gt;example applications (UDP and rs232),
&lt;br&gt;ethernut 4.8.5 compiled with WinAVR under Window$ XP and board rev 1.3h
&lt;br&gt;&lt;br&gt;While playing with &amp;quot;icmp-udp.c&amp;quot;, after some packet sniffing with
&lt;br&gt;FreeBSD's tcpdump i have noticed that the first packet sent by the
&lt;br&gt;ethernut was regularly lost.
&lt;br&gt;&lt;br&gt;Wince i am absolutely trusting with FreeBSD's TCP/IP ;-)
&lt;br&gt;and ethernut was tied to a network of just 4 machines the
&lt;br&gt;only culprit had to be ethernut :( ...
&lt;br&gt;&lt;br&gt;The issue seem to be somehow ARP related, just adding a slight
&lt;br&gt;( &amp;gt; 300 ms ) delay before start sending UDP packets to the server
&lt;br&gt;seem solve the problem ...
&lt;br&gt;&lt;br&gt;&lt;br&gt;...
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if (NutThreadCreate(&amp;quot;RCV&amp;quot;, UDPReceiver, (void*)socket, 1024) == 0) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;puts(&amp;quot;Could not start receiver thread\r\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;puts(&amp;quot;Demo halted...\r\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while (1);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;} else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;puts(&amp;quot;Receiver thread started\r\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;puts(&amp;quot;Starting echo test (1 packet / second)\r\n&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ip_udp_echo = inet_addr(UDP_ECHO_IP);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;packet_nr = 0;
&lt;br&gt;&lt;br&gt;-&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;NutSleep(500);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;for(;;) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;packet_nr ++;
&lt;br&gt;&lt;br&gt;...
&lt;br&gt;&lt;br&gt;&lt;br&gt;Maybe i am wrong and this could be related to some TCP/IP configuration
&lt;br&gt;that i have missed while building NutOS ?
&lt;br&gt;&lt;br&gt;Netwotk(general) -&amp;gt; TCP -&amp;gt; state machine stack
&lt;br&gt;Netwotk(general) -&amp;gt; ARP -&amp;gt; &amp;lt;various options&amp;gt;
&lt;br&gt;&lt;br&gt;...
&lt;br&gt;&lt;br&gt;Any hint welcome
&lt;br&gt;&lt;br&gt;Ciao!
&lt;br&gt;Paolo
&lt;br&gt;&lt;br&gt;&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;Prova il servizio di Email Marketing di Email.it, incrementi la visibilita' della tua azienda e trovi nuovi clienti.
&lt;br&gt;* Liste a partire da 10.000 contatti per soli 250 Euro
&lt;br&gt;&amp;nbsp;Clicca qui: &lt;a href=&quot;http://adv.email.it/cgi-bin/foclick.cgi?mid=8351&amp;d=2-11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://adv.email.it/cgi-bin/foclick.cgi?mid=8351&amp;d=2-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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Slight-problem-with-UDP-tp26163344p26163344.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26160725</id>
	<title>Re: DHCP Failure on Renew</title>
	<published>2009-11-02T01:06:19Z</published>
	<updated>2009-11-02T01:06:19Z</updated>
	<author>
		<name>Michael Jones-11</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;Ulrich wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;How did you find out about that problem? Is there a backup DHCP in your 
&lt;br&gt;&amp;gt;network and the primary failed? Or did you simply leave the box in you 
&lt;br&gt;&amp;gt;network that long, that the lease expired? I think I remember, that the 
&lt;br&gt;&amp;gt;EIR did not work after lying around a longer time playing musik. I 
&lt;br&gt;&amp;gt;simply reset it and it worked again for days. But I never tried to find 
&lt;br&gt;&amp;gt;out why and I don't know the lease-time the Fritbox assigns to it's 
&lt;br&gt;&amp;gt;clients.
&lt;br&gt;&lt;br&gt;&amp;gt;I'll try that DHCP lease timeout in the next few days. Never checked 
&lt;br&gt;&amp;gt;that, as my problems were at another situation.
&lt;br&gt;&lt;br&gt;Well, I simply setup an DHCP server with a 1 hour lease time - the system
&lt;br&gt;crash after half an hour so no big challenge. 
&lt;br&gt;&lt;br&gt;As far as I can see the DHCP code is a little overcomplicated and the main
&lt;br&gt;codes readability could have benefited from being stuck in a switch/case
&lt;br&gt;construct. 
&lt;br&gt;&lt;br&gt;Any way; I found two problematic points in the code so far. The First, in
&lt;br&gt;line 1708 will cause the DhcpBroadcastRequest call, which is essential for
&lt;br&gt;keeping the state machine running, to not being called as at the time that
&lt;br&gt;this is executed it is already '&amp;lt;=' leaseTime. 
&lt;br&gt;&lt;br&gt;So changing the condition to &amp;lt; might help. But also the DhcpBroadcastRequest
&lt;br&gt;should, in my opinion, always be called to make sure the state machine does
&lt;br&gt;not go stale - hence remove the 'else' in line 1714. Also, recalling
&lt;br&gt;NutGetSeconds() again and again throughout the routine also seems like a
&lt;br&gt;waste and induces a possible race condition as the second might just tick
&lt;br&gt;over between to calls.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if (dhcpState == DHCPST_RENEWING) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; retries++;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (tmo / 1000 &amp;gt; dhcpConfig-&amp;gt;dyn_rebindTime - (NutGetSeconds() -
&lt;br&gt;leaseTime)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tmo = dhcpConfig-&amp;gt;dyn_rebindTime - (NutGetSeconds() -
&lt;br&gt;leaseTime) * 1000;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;1708: &amp;nbsp; &amp;nbsp; &amp;nbsp; if (dhcpConfig-&amp;gt;dyn_rebindTime &amp;lt;= NutGetSeconds() - leaseTime) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; retries = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dhcpState = DHCPST_REBINDING;
&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; &amp;nbsp; &amp;nbsp; /* Send a request to our leasing server. We must not include
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;the server identifier. */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if (DhcpSendRequest(sock, dhcpConfig-&amp;gt;dyn_sid, bp, xid,
&lt;br&gt;dhcpConfig-&amp;gt;dyn_yiaddr, dhcpConfig-&amp;gt;dyn_yiaddr, 0, secs) &amp;lt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* Unicast transmit error. */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; retries = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dhcpState = DHCPST_REBINDING;
&lt;br&gt;&lt;br&gt;&lt;br&gt;A bit lower we encounter the same. Here, I feel that the whole leaseTime
&lt;br&gt;'if' is completely de-placed 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if (dhcpState == DHCPST_REBINDING) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; retries++;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (tmo &amp;gt; dhcpConfig-&amp;gt;dyn_rebindTime - (NutGetSeconds() -
&lt;br&gt;leaseTime)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tmo = dhcpConfig-&amp;gt;dyn_rebindTime - NutGetSeconds() -
&lt;br&gt;leaseTime;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;1746: &amp;nbsp; &amp;nbsp; &amp;nbsp; if (dhcpConfig-&amp;gt;dyn_rebindTime &amp;lt;= NutGetSeconds() - leaseTime) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; retries = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dhcpState = DHCPST_REBINDING;
&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; &amp;nbsp; &amp;nbsp; /* Broadcast a request for our previous configuration. We 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;must not include a server identifier. */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if (DhcpBroadcastRequest(sock, bp, xid,
&lt;br&gt;dhcpConfig-&amp;gt;dyn_yiaddr, dhcpConfig-&amp;gt;dyn_yiaddr, 0, secs) &amp;lt; 0) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* Fatal transmit error on broadcast. Give up. */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dhcpState = DHCPST_IDLE;
&lt;br&gt;&lt;br&gt;My current implementation with simply removing both 'else' works like a
&lt;br&gt;charm and I have not had any negative side effects. But, my plan is fully
&lt;br&gt;understand the routine and then to re-write and simplify the routine...
&lt;br&gt;&lt;br&gt;Cu,
&lt;br&gt;Michael
&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DHCP-Failure-on-Renew-tp26086098p26160725.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26147101</id>
	<title>Re: NutTcpAccept blocks the tread</title>
	<published>2009-10-31T16:45:33Z</published>
	<updated>2009-10-31T16:45:33Z</updated>
	<author>
		<name>uprinz</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;&lt;br&gt;I had that problem on a serial interface protocol... Establishing 
&lt;br&gt;communication, doing a handshake and setup and then run a protocol 
&lt;br&gt;everything with different timings and second and third part with 
&lt;br&gt;timeout, first one without...
&lt;br&gt;&lt;br&gt;I solved it with a simple thing:
&lt;br&gt;I wrote a minimalistic thread waiting for an event on th serial line. If 
&lt;br&gt;the event happened, the thread does an initial handshake and creates the 
&lt;br&gt;second thread and terminates itself directly after.
&lt;br&gt;The second thread initiates telegrams and creates a third thread, 
&lt;br&gt;decoding the telegrams. If the third thread detects communication 
&lt;br&gt;problems, it terminates itself and the second thread tries to recover. 
&lt;br&gt;If that fails, the second thread starts the first one and terminates itself.
&lt;br&gt;Works wonderful!
&lt;br&gt;&lt;br&gt;Now to your problem:
&lt;br&gt;How if you write a small thread for waiting for a tcp connection. You 
&lt;br&gt;can start this thread several times, giving different parameters 
&lt;br&gt;regarding the ports and interfaces to serve. You hand over a parameter 
&lt;br&gt;pointing to the stream too.
&lt;br&gt;&lt;br&gt;Then you write a second thread, serving the data when an connection has 
&lt;br&gt;been established. This thread can have timeout handling and the other 
&lt;br&gt;things you like. The state-machine in the main loop can detect if the 
&lt;br&gt;thread has a connection or not by a variable or something.
&lt;br&gt;&lt;br&gt;Now, I would not start the second thread as I do not see, why one single 
&lt;br&gt;state machine does everything, but if you like, start 5 of the first and 
&lt;br&gt;5 of the second threads.
&lt;br&gt;&lt;br&gt;If a connection is accepted, the first type of threads detects it, 
&lt;br&gt;accepts the connection and does a NutEventPost on the related 
&lt;br&gt;data-thread. While normally a timeout will result in NutEventWait() == 
&lt;br&gt;-1, now it will return 0 and you know that you have been waked by 
&lt;br&gt;incoming data, so handle it.
&lt;br&gt;&lt;br&gt;I would have started the data-threads in the accept-threads and handed 
&lt;br&gt;over the needed pointers to the stream as a parameter. You need to 
&lt;br&gt;define a message-box or use some global variables for that. Both should 
&lt;br&gt;work and does not need a rework of the network system.
&lt;br&gt;&lt;br&gt;The accept-threads can also get some more timeout handling. If the 
&lt;br&gt;data-threads see, that a connection is closed, they can do a 
&lt;br&gt;NutEventPost() on the accept-threads. But that could lead to a stuck 
&lt;br&gt;thread if there is an unclean connection abort. So the accept threads 
&lt;br&gt;could check some counters or so to assure that the corresponding 
&lt;br&gt;data-thread is working well. If they get awake because NutEventWait() 
&lt;br&gt;returns -1 they check and handle erroneous conditions, if returned 0 the 
&lt;br&gt;await a new connection.
&lt;br&gt;&lt;br&gt;If you change to my implementation, the accept-threads will create 
&lt;br&gt;corresponding data-threads and vice versa. The main loop will check if 
&lt;br&gt;either accept- or data-thread exists and works well. If not it will 
&lt;br&gt;reboot or try to kill the threads ( never checked if that is possible 
&lt;br&gt;with Nut/OS) and restart them.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Ulrich
&lt;br&gt;&lt;br&gt;Nathan Moore schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hey Harald,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Considered, that NutTcpPassiveOpenEvent had been changed following your
&lt;br&gt;&amp;gt;&amp;gt; suggestion, the application will use the following pseudo code:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; for (;;) {
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;CreateSocket();
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;SocketOption(Set read timeout);
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;while (NutTcpAccept()) {
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;/* Timout, do something else,
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;** but do not sleep. */
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;}
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;/* Handle the connection. */
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;...
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;/* Finally */
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;DestroySocket();
&lt;br&gt;&amp;gt;&amp;gt; }
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Is that what you meant?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Yes. &amp;nbsp;It could check a variable or something and never open the window of
&lt;br&gt;&amp;gt; not listening to that port.
&lt;br&gt;&amp;gt; If it did sleep there it would still work, but would introduce the
&lt;br&gt;&amp;gt; possibility that you wouldn't be listening for a moment..
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Nathan
&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NutTcpAccept-blocks-the-tread-tp25791815p26147101.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26146787</id>
	<title>Re: NutOS serial driver</title>
	<published>2009-10-31T16:01:31Z</published>
	<updated>2009-10-31T16:01:31Z</updated>
	<author>
		<name>uprinz</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;&lt;br&gt;Jason Bourne schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I am using the NutOS v4.8.0. The application that I am writing needs
&lt;br&gt;&amp;gt; to received 2070 bytes in one shot and also transmit 4096 bytes in
&lt;br&gt;&amp;gt; one shot via RS232, I enabled interruptions to detect the end of the
&lt;br&gt;&amp;gt; packet when I received data. If I increase the USART_RXBUFSIZ to 3072
&lt;br&gt;&amp;gt; bytes and the USART_TXBUFSIZ tp 5120. Do I have to have any
&lt;br&gt;&amp;gt; considerations? Will The nutOS v4.8.0 crush due to this changes?
&lt;br&gt;&amp;gt; 
&lt;/div&gt;Hard to tell, as you don't tell on what target you're running that.
&lt;br&gt;If you use an ATmega128 it will crash as there is not enough memory. If 
&lt;br&gt;you use an ARM7 based system with 32k+ memory it should work.
&lt;br&gt;&lt;br&gt;I never saw a serial protocol that needed to be read at once in such a 
&lt;br&gt;big trunk. Normally you need data part by part and can work with each 
&lt;br&gt;part. If the data is not to be interrupted by buffer full conditions, 
&lt;br&gt;you only have to ensure, that the primary serial buffers are big enough 
&lt;br&gt;to fetch data without overrun while you work with the already received 
&lt;br&gt;data elsewhere before you pick the next part from the input buffer.
&lt;br&gt;&lt;br&gt;So you can interpret the data as it comes in part by part and sort it to 
&lt;br&gt;the structs where it should go. The input buffer takes care, that you 
&lt;br&gt;don't loose anything while you're busy decoding it.
&lt;br&gt;&lt;br&gt;Same with the output. If you send data, it will be placed into the 
&lt;br&gt;output buffer. If the buffer is full, your sending thread will be 
&lt;br&gt;blocked until there is some space in the buffer again ( look at high an 
&lt;br&gt;low watermark settings). If you'd like to have a continuous flow of 
&lt;br&gt;data, lower the output buffer size and set the output thread to a higher 
&lt;br&gt;priority and it will keep the output buffer full.
&lt;br&gt;&lt;br&gt;If you have an idea of how long your output thread needs for preparing 
&lt;br&gt;the data, you can use the high- and low-watermark system to. Let one of 
&lt;br&gt;these guys trigger your thread to prepare the next data just in time.
&lt;br&gt;&lt;br&gt;With that you need only small buffers and keep up a continuous data flow.
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;Ulrich
&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NutOS-serial-driver-tp26144890p26146787.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26144890</id>
	<title>NutOS serial driver</title>
	<published>2009-10-31T11:35:57Z</published>
	<updated>2009-10-31T11:35:57Z</updated>
	<author>
		<name>Jason Bourne-2</name>
	</author>
	<content type="html">&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;I am using the NutOS v4.8.0. The application that I am writing needs to received 2070 bytes in one shot and also transmit 4096 bytes in one shot via RS232, I enabled interruptions to detect the end of the packet when I received data. If I increase the USART_RXBUFSIZ to 3072 bytes and the USART_TXBUFSIZ tp 5120. Do I have to have any considerations? Will The nutOS v4.8.0 crush due to this changes?
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Thank you
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Juan
&lt;br&gt;&amp;nbsp;		 	 &amp;nbsp; 		 &amp;nbsp;
&lt;br&gt;_________________________________________________________________
&lt;br&gt;Windows 7: It works the way you want. Learn more.
&lt;br&gt;&lt;a href=&quot;http://www.microsoft.com/Windows/windows-7/default.aspx?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen2:102009&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.microsoft.com/Windows/windows-7/default.aspx?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen2:102009&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NutOS-serial-driver-tp26144890p26144890.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26135748</id>
	<title>Re: Dual rs232&lt;-&gt;Ethernet</title>
	<published>2009-10-30T12:31:38Z</published>
	<updated>2009-10-30T12:31:38Z</updated>
	<author>
		<name>uprinz</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;&lt;br&gt;Yes, if you take a look at the previous discussion of the last few 
&lt;br&gt;weeks, you'll see, that there are some problems existing in the TCP/IP 
&lt;br&gt;stack.
&lt;br&gt;But what you tell is that connections are not completely handled, as a 
&lt;br&gt;TCP COnnection may break at any time. So try to find a good point where 
&lt;br&gt;to monitor that situation and clean up the system to a default where it 
&lt;br&gt;accepts new data and connection.
&lt;br&gt;&lt;br&gt;But without code it's hard to tell.
&lt;br&gt;&lt;br&gt;Regards, Ulrich
&lt;br&gt;asdus schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Yep, you're right. But rs232d primer have some troubles.
&lt;br&gt;&amp;gt; Yes, it's have buffers to resolve different speed problems, but
&lt;br&gt;&amp;gt; connection stucks, if ethernet client disconnect unclean, and,
&lt;br&gt;&amp;gt; sometimes, i'm have strange data freezes, when i receive sended data
&lt;br&gt;&amp;gt; only on next connection.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 2009/10/30 Ulrich Prinz &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26135748&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uprinz2@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt; I am not sure, if I understand that correctly:
&lt;br&gt;&amp;gt;&amp;gt; You'd like to communicate with two RS232 ports via TCP/IP.
&lt;br&gt;&amp;gt;&amp;gt; In nut/app/rs232d there is a demo for doing that with one single port.
&lt;br&gt;&amp;gt;&amp;gt; So you can duplicate the THREAD and assign the second one to a different
&lt;br&gt;&amp;gt;&amp;gt; port. As a connection like that cannot be shared, only one client can
&lt;br&gt;&amp;gt;&amp;gt; access one RS232 port. So you do not need to take care of launching
&lt;br&gt;&amp;gt;&amp;gt; several threads per port.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; To access GPIOs of the CPU there are different options. You can watch
&lt;br&gt;&amp;gt;&amp;gt; the RS322 communication an catch special commands, that are not routet
&lt;br&gt;&amp;gt;&amp;gt; to the RS232 port but are used to control or read GPIOs.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Or you can launch a third server thread that controls the GPIOs.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; If your code doesn't work, you can post parts of the code in here, so we
&lt;br&gt;&amp;gt;&amp;gt; can help.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Regards
&lt;br&gt;&amp;gt;&amp;gt; Ulrich
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; asdus schrieb:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi all.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; For my home automation i need to use 2 rs232&amp;lt;-&amp;gt;ethernet converters
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I'm buy Ethernut V 1.3 H board and try to make it, using rs232d, Basic
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; TCP Server and Serial Port Monitor examples.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Using that i need to do this in dedicated threads, because i'm use
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; other ethernut's digital pins to get home events. All my tries fails,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; i have lags using my remote rs232's.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Can anyone with code or part of code, that's can help me to resolve my
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; problem? Great thanks!
&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Dual-rs232%3C-%3EEthernet-tp26076096p26135748.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26126352</id>
	<title>Re: Dual rs232&lt;-&gt;Ethernet</title>
	<published>2009-10-30T01:16:38Z</published>
	<updated>2009-10-30T01:16:38Z</updated>
	<author>
		<name>asdus</name>
	</author>
	<content type="html">Yep, you're right. But rs232d primer have some troubles.
&lt;br&gt;Yes, it's have buffers to resolve different speed problems, but
&lt;br&gt;connection stucks, if ethernet client disconnect unclean, and,
&lt;br&gt;sometimes, i'm have strange data freezes, when i receive sended data
&lt;br&gt;only on next connection.
&lt;br&gt;&lt;br&gt;2009/10/30 Ulrich Prinz &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26126352&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uprinz2@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I am not sure, if I understand that correctly:
&lt;br&gt;&amp;gt; You'd like to communicate with two RS232 ports via TCP/IP.
&lt;br&gt;&amp;gt; In nut/app/rs232d there is a demo for doing that with one single port.
&lt;br&gt;&amp;gt; So you can duplicate the THREAD and assign the second one to a different
&lt;br&gt;&amp;gt; port. As a connection like that cannot be shared, only one client can
&lt;br&gt;&amp;gt; access one RS232 port. So you do not need to take care of launching
&lt;br&gt;&amp;gt; several threads per port.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; To access GPIOs of the CPU there are different options. You can watch
&lt;br&gt;&amp;gt; the RS322 communication an catch special commands, that are not routet
&lt;br&gt;&amp;gt; to the RS232 port but are used to control or read GPIOs.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Or you can launch a third server thread that controls the GPIOs.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If your code doesn't work, you can post parts of the code in here, so we
&lt;br&gt;&amp;gt; can help.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards
&lt;br&gt;&amp;gt; Ulrich
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; asdus schrieb:
&lt;br&gt;&amp;gt;&amp;gt; Hi all.
&lt;br&gt;&amp;gt;&amp;gt; For my home automation i need to use 2 rs232&amp;lt;-&amp;gt;ethernet converters
&lt;br&gt;&amp;gt;&amp;gt; I'm buy Ethernut V 1.3 H board and try to make it, using rs232d, Basic
&lt;br&gt;&amp;gt;&amp;gt; TCP Server and Serial Port Monitor examples.
&lt;br&gt;&amp;gt;&amp;gt; Using that i need to do this in dedicated threads, because i'm use
&lt;br&gt;&amp;gt;&amp;gt; other ethernut's digital pins to get home events. All my tries fails,
&lt;br&gt;&amp;gt;&amp;gt; i have lags using my remote rs232's.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Can anyone with code or part of code, that's can help me to resolve my
&lt;br&gt;&amp;gt;&amp;gt; problem? Great thanks!
&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Dual-rs232%3C-%3EEthernet-tp26076096p26126352.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26122862</id>
	<title>Re: DHCP Failure on Renew</title>
	<published>2009-10-29T16:53:34Z</published>
	<updated>2009-10-29T16:53:34Z</updated>
	<author>
		<name>uprinz</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;&lt;br&gt;Hm, I am actually working in that direction...
&lt;br&gt;My Problem with DHCP was, that it did not work if you change the network 
&lt;br&gt;completely, i.e. unplug the system at home with 192.168.3.0/24 and plug 
&lt;br&gt;it in at work with 10.201.32.0/16.
&lt;br&gt;&lt;br&gt;In my opinion there are several problems buriedin DHCP, but let's stick 
&lt;br&gt;to the one you saw...
&lt;br&gt;&lt;br&gt;I found this in line 1773:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else if (dhcpState == DHCPST_REBINDING) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;retries++;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (tmo &amp;gt; dhcpConfig-&amp;gt;dyn_rebindTime - (NutGetSeconds() - 
&lt;br&gt;leaseTime)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tmo = dhcpConfig-&amp;gt;dyn_rebindTime - NutGetSeconds() - 
&lt;br&gt;leaseTime;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (dhcpConfig-&amp;gt;dyn_rebindTime &amp;lt;= NutGetSeconds() - 
&lt;br&gt;leaseTime) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;retries = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dhcpState = DHCPST_REBINDING;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* Broadcast a request for our previous configuration. We
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; must not include a server identifier. */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else if (DhcpBroadcastRequest(sock, bp, xid, 
&lt;br&gt;dhcpConfig-&amp;gt;dyn_yiaddr, dhcpConfig-&amp;gt;dyn_yiaddr, 0, secs) &amp;lt; 0) {
&lt;br&gt;&lt;br&gt;&lt;br&gt;This looks a bit like if the DHCPST_REBINDING is timed out, it stays in 
&lt;br&gt;DHCPST_REBINDING in the second if()...
&lt;br&gt;Looks like someone tried to escape this situation by checking for 
&lt;br&gt;retries, but the if( retries &amp;gt; n) 'out of here' is missing.
&lt;br&gt;On the other hand, there is a timeout and if that is over one needs to 
&lt;br&gt;get out of that loop instead of staying inside.
&lt;br&gt;&lt;br&gt;How did you find out about that problem? Is there a backup DHCP in your 
&lt;br&gt;network and the primary failed? Or did you simply leave the box in you 
&lt;br&gt;network that long, that the lease expired? I think I remember, that the 
&lt;br&gt;EIR did not work after lying around a longer time playing musik. I 
&lt;br&gt;simply reset it and it worked again for days. But I never tried to find 
&lt;br&gt;out why and I don't know the lease-time the Fritbox assigns to it's 
&lt;br&gt;clients.
&lt;br&gt;&lt;br&gt;I'll try that DHCP lease timeout in the next few days. Never checked 
&lt;br&gt;that, as my problems were at another situation.
&lt;br&gt;&lt;br&gt;By the way, I modified the DM9000 driver for the EIR and now I can 
&lt;br&gt;switch networks with different subnets and subnet-sizes and I get a dhcp 
&lt;br&gt;lease... Yes, ouch. Never expected the problem to be that far down in 
&lt;br&gt;the OSI model :)
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;Ulrich
&lt;br&gt;&lt;br&gt;Michael Jones schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; We have been having problems with DHCP enabled client dying after half lease
&lt;br&gt;&amp;gt; time for quite a while (Also reported by Ulrich a few days ago).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; My observations are that the DHCP thread gets stuck in the DHCPST_REBINDING
&lt;br&gt;&amp;gt; state and never sends the request nor yields to any other thread.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm still trying to understand to whole state machine, but perhaps somebody
&lt;br&gt;&amp;gt; could look at the &amp;quot;else&amp;quot; in dhcpc.c (trunk), line 1714 - IMHO that &amp;quot;else&amp;quot;
&lt;br&gt;&amp;gt; should not be there. Also, I'm not quite sure how the DHCPST_REBINDING state
&lt;br&gt;&amp;gt; should conclude once it has been entered.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; cu,
&lt;br&gt;&amp;gt; Michael
&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;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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DHCP-Failure-on-Renew-tp26086098p26122862.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26122575</id>
	<title>Re: Dual rs232&lt;-&gt;Ethernet</title>
	<published>2009-10-29T16:21:37Z</published>
	<updated>2009-10-29T16:21:37Z</updated>
	<author>
		<name>uprinz</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;&lt;br&gt;I am not sure, if I understand that correctly:
&lt;br&gt;You'd like to communicate with two RS232 ports via TCP/IP.
&lt;br&gt;In nut/app/rs232d there is a demo for doing that with one single port. 
&lt;br&gt;So you can duplicate the THREAD and assign the second one to a different 
&lt;br&gt;port. As a connection like that cannot be shared, only one client can 
&lt;br&gt;access one RS232 port. So you do not need to take care of launching 
&lt;br&gt;several threads per port.
&lt;br&gt;&lt;br&gt;To access GPIOs of the CPU there are different options. You can watch 
&lt;br&gt;the RS322 communication an catch special commands, that are not routet 
&lt;br&gt;to the RS232 port but are used to control or read GPIOs.
&lt;br&gt;&lt;br&gt;Or you can launch a third server thread that controls the GPIOs.
&lt;br&gt;&lt;br&gt;If your code doesn't work, you can post parts of the code in here, so we 
&lt;br&gt;can help.
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;Ulrich
&lt;br&gt;&lt;br&gt;asdus schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi all.
&lt;br&gt;&amp;gt; For my home automation i need to use 2 rs232&amp;lt;-&amp;gt;ethernet converters
&lt;br&gt;&amp;gt; I'm buy Ethernut V 1.3 H board and try to make it, using rs232d, Basic
&lt;br&gt;&amp;gt; TCP Server and Serial Port Monitor examples.
&lt;br&gt;&amp;gt; Using that i need to do this in dedicated threads, because i'm use
&lt;br&gt;&amp;gt; other ethernut's digital pins to get home events. All my tries fails,
&lt;br&gt;&amp;gt; i have lags using my remote rs232's.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Can anyone with code or part of code, that's can help me to resolve my
&lt;br&gt;&amp;gt; problem? Great thanks!
&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Dual-rs232%3C-%3EEthernet-tp26076096p26122575.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26122192</id>
	<title>Re: NutUdpSendTo taking too long</title>
	<published>2009-10-29T15:47:21Z</published>
	<updated>2009-10-29T15:47:21Z</updated>
	<author>
		<name>jvallet</name>
	</author>
	<content type="html">Hello Nathan, and thanks for the explanation. It was a shortcut to the 
&lt;br&gt;code that explains it. My friend was called &amp;quot;arpcache.c&amp;quot;
&lt;br&gt;&lt;br&gt;I have still some questions.
&lt;br&gt;&lt;br&gt;Nathan Moore escribió:
&lt;br&gt;&amp;gt; Hey José,
&lt;br&gt;&amp;gt; When you send a IP packet over ethernet you have to know the MAC
&lt;br&gt;&amp;gt; address of the recipient. &amp;nbsp;To find this out the ARP (Address Resolution
&lt;br&gt;&amp;gt; Protocol) cache is examined. &amp;nbsp;If no entry for the destination IP address
&lt;br&gt;&amp;gt; is in the ARP cache then an ARP request must be sent over the
&lt;br&gt;&amp;gt; local ethernet and then you have to wait for an ARP reply. &amp;nbsp;If no one
&lt;br&gt;&amp;gt; is there with that IP address then you just wait until you finally give up.
&lt;br&gt;&amp;gt; In NutOS the sending thread is blocked until the IP packet is either sent
&lt;br&gt;&amp;gt; or something goes wrong (in this case no ARP reply).
&lt;br&gt;&lt;br&gt;And in that case the no ARP reply is not considered an error, so 
&lt;br&gt;NutUdpSenTo will peacefully return 0. So it seems to me that for an 
&lt;br&gt;application there is no straight way to detect when an ARP entry has 
&lt;br&gt;been deteled. Perhaps calling directly ArpCacheLookup, or even 
&lt;br&gt;NutArpCacheQuery? Anything against this that I should be aware of?
&lt;br&gt;&lt;br&gt;Another way to solve this issue, I guess, could be to mark the ARP entry 
&lt;br&gt;as permanent, so it will not be flushed. Is this correct? It seems that 
&lt;br&gt;it would require to manipulate the ARP entry manually, as I couldn't 
&lt;br&gt;find any function to add/manipulate entries. Anything against this that 
&lt;br&gt;I should be aware of? &amp;nbsp;In my case it is assumed that the IP of the 
&lt;br&gt;machine that the Ethernut sends the UDP packets to has always the same 
&lt;br&gt;private IP
&lt;br&gt;&lt;br&gt;Regards!
&lt;br&gt;José
&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NutUdpSendTo-taking-too-long-tp26117044p26122192.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26117760</id>
	<title>Re: NutUdpSendTo taking too long</title>
	<published>2009-10-29T10:51:26Z</published>
	<updated>2009-10-29T10:51:26Z</updated>
	<author>
		<name>Nathan Moore-5</name>
	</author>
	<content type="html">Hey José,
&lt;br&gt;When you send a IP packet over ethernet you have to know the MAC
&lt;br&gt;address of the recipient. &amp;nbsp;To find this out the ARP (Address Resolution
&lt;br&gt;Protocol) cache is examined. &amp;nbsp;If no entry for the destination IP address
&lt;br&gt;is in the ARP cache then an ARP request must be sent over the
&lt;br&gt;local ethernet and then you have to wait for an ARP reply. &amp;nbsp;If no one
&lt;br&gt;is there with that IP address then you just wait until you finally give up.
&lt;br&gt;In NutOS the sending thread is blocked until the IP packet is either sent
&lt;br&gt;or something goes wrong (in this case no ARP reply).
&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NutUdpSendTo-taking-too-long-tp26117044p26117760.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26117044</id>
	<title>NutUdpSendTo taking too long</title>
	<published>2009-10-29T10:02:19Z</published>
	<updated>2009-10-29T10:02:19Z</updated>
	<author>
		<name>jvallet</name>
	</author>
	<content type="html">Hello all.
&lt;br&gt;&lt;br&gt;We have found one weird behaviour of NutUdpSendTo. Basically the problem 
&lt;br&gt;is the following.
&lt;br&gt;&lt;br&gt;If we put our Ethernut3 (with NutOS 4.6.4) to send UDP packets in a 
&lt;br&gt;network that does NOT have a computer with the IP that the UDP packets 
&lt;br&gt;are sent to, after some time (about 15 minutes) the Ethernut gets into a 
&lt;br&gt;state where every single execution of NutUdpSendTo takes about 500ms. We 
&lt;br&gt;can also see that in this state the microcontroller spends most of the 
&lt;br&gt;time idling, which suggests that there is a wait process somewhere. To 
&lt;br&gt;my poor understanding, sending a UDP packet is something like simply 
&lt;br&gt;dropping the packet into the network, not waiting for anything.
&lt;br&gt;&lt;br&gt;After this, if a computer with the target IP &amp;quot;appears&amp;quot; (in linux I 
&lt;br&gt;configure an ip alias), the situation comes back normal immediately, 
&lt;br&gt;where it takes usually in the order of milliseconds to execute NutUdpSendTo.
&lt;br&gt;&lt;br&gt;This situation seems to be reproducible. A simple while loop sending UPD 
&lt;br&gt;packets and a bit of patience makes the issue to show up. We measure 
&lt;br&gt;time by setting pins up and down and with an oscilloscope/logic 
&lt;br&gt;analyser. The basic code that we use is the following
&lt;br&gt;&lt;br&gt;-----------------------
&lt;br&gt;#define MY_MAC &amp;nbsp;&amp;quot;\x00\x06\x98\x30\x00\x35&amp;quot;
&lt;br&gt;#define MY_IPADDR &amp;quot;192.168.0.100&amp;quot;
&lt;br&gt;#define MY_IPMASK &amp;quot;255.255.255.0&amp;quot;
&lt;br&gt;&lt;br&gt;int main(void)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp;u_long ip_addr = inet_addr(MY_IPADDR);
&lt;br&gt;&amp;nbsp; &amp;nbsp;u_long ip_mask = inet_addr(MY_IPMASK);
&lt;br&gt;&amp;nbsp; &amp;nbsp;u_char mac[] = MY_MAC;
&lt;br&gt;&amp;nbsp; &amp;nbsp;UDPSOCKET *sock=NULL;
&lt;br&gt;&amp;nbsp; &amp;nbsp;char buf;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;DEBUGPINS_INIT;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;/* Initialize the serial port */
&lt;br&gt;&amp;nbsp; &amp;nbsp;NutRegisterDevice(&amp;DEV_UART0, 0, 0);
&lt;br&gt;&amp;nbsp; &amp;nbsp;freopen(&amp;quot;uart0&amp;quot;, &amp;quot;r+&amp;quot;, stdout);
&lt;br&gt;&amp;nbsp; &amp;nbsp;_ioctl(_fileno(stdout), UART_SETSPEED, &amp;baud);
&lt;br&gt;&amp;nbsp; &amp;nbsp;printf(&amp;quot;\n\nNut/OS %s\n&amp;quot;, NutVersionString());
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;/* Register the tracer and start the terminal */
&lt;br&gt;&amp;nbsp; &amp;nbsp;btn_terminal_init(stdout, &amp;quot;[udp]$&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp;btn_terminal_register_cmd(&amp;quot;trace&amp;quot;,NutTraceTerminal);
&lt;br&gt;&amp;nbsp; &amp;nbsp;btn_terminal_run(BTN_TERMINAL_FORK, 0);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;/* Register Ethernet controller */
&lt;br&gt;&amp;nbsp; &amp;nbsp;NutRegisterDevice(&amp;DEV_ETHER, 0, 0);
&lt;br&gt;&amp;nbsp; &amp;nbsp;NutNetIfConfig(&amp;quot;eth0&amp;quot;, mac, ip_addr, ip_mask);
&lt;br&gt;&amp;nbsp; &amp;nbsp;sock = NutUdpCreateSocket(LOCAL_PORT);
&lt;br&gt;&amp;nbsp; &amp;nbsp;if (sock==0)
&lt;br&gt;&amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;DEBUGPINS_SETHIGH(2); //Set the debug pin 2 up
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp;ip_addr=inet_addr(REMOTE_IP);
&lt;br&gt;&amp;nbsp; &amp;nbsp;while (1)
&lt;br&gt;&amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;DEBUGPINS_SETHIGH(0); //Set the debug pin 0 up
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if (NutUdpSendTo(sock, ip_addr, REMOTE_PORT, &amp;buf, 1) == -1)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DEBUGPINS_SETHIGH(3);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NutSleep(200);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DEBUGPINS_SETLOW(3);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;DEBUGPINS_SETLOW(0); //Set the debug pin 0 low
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;buf++;
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;}
&lt;br&gt;-----------------------
&lt;br&gt;&lt;br&gt;where the DEBUGPINS_SETHIGH(X) is a macro to put the Xth pin of our 
&lt;br&gt;debug connector to 1, and similar with the rest of macros. The pin 1 is 
&lt;br&gt;used to indicate when the micro is in the idle thread, and thus cannot 
&lt;br&gt;be seen in the code here, as it is in the NutOS sources. As you can see 
&lt;br&gt;we are able to use the tracer also in Ethernut3 (thanks to the 
&lt;br&gt;modifications of Ernst Stippl) through the btn-terminal for easily 
&lt;br&gt;getting the traces. If required we can provide sample traces and 
&lt;br&gt;pictures of the measurements with the scope. We can also provide all the 
&lt;br&gt;files required to run this code.
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;José
&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NutUdpSendTo-taking-too-long-tp26117044p26117044.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26111304</id>
	<title>Re: Bootloader</title>
	<published>2009-10-29T04:29:06Z</published>
	<updated>2009-10-29T04:29:06Z</updated>
	<author>
		<name>kafka85</name>
	</author>
	<content type="html">I will appriciate any help from you. I've written simple program that just jump to 4000 location. At this addres I placed program that blinks leds. It works, so I tries to place nutos under 4000 addres. But this time nutos won't start. I changed nutos ld file like this:
&lt;br&gt;&lt;br&gt;MEMORY
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; rom (rx) : org = 0x000004000, len = 240k
&lt;br&gt;&amp;nbsp; ram (rw) : org = 0x00200000, len = 64k
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;Any ideas? Or maybe what needs to be done before jumping? how to perform a jump? What to change in nutos?</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bootloader-tp22016407p26111304.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26086350</id>
	<title>Re: SOAP client for Ethernut 3.0?</title>
	<published>2009-10-27T15:24:22Z</published>
	<updated>2009-10-27T15:24:22Z</updated>
	<author>
		<name>Curtis Maloney</name>
	</author>
	<content type="html">Javier Longares wrote:
&lt;br&gt;&amp;gt; Hi folks,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm looking for making a SOAP client with Ethernut 3.0E board and I would
&lt;br&gt;&amp;gt; know if there is some souce code or some open source project which could led
&lt;br&gt;&amp;gt; my firsts steps.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Of course, if you know a SOAP for this board or you like toi make me some
&lt;br&gt;&amp;gt; suggestion I'll be very glad to hear you.
&lt;br&gt;&lt;br&gt;In my experience with SOAP my advice is this:
&lt;br&gt;- If you can avoid using it, do! &amp;nbsp;It's bloated, overly complex, and
&lt;br&gt;everyone implements their own sub-set of the spec, making
&lt;br&gt;interoperability challenging, at best.
&lt;br&gt;&lt;br&gt;If you want your devices to talk to an existing SOAP service, fair
&lt;br&gt;enough. &amp;nbsp;Consider using pre-generated request templates, instead of
&lt;br&gt;using a full XML generating lib.
&lt;br&gt;&lt;br&gt;On the parsing side, I think you'd be hard-pressed to get a fully
&lt;br&gt;compliant XML parser, though you should be able to get away with a
&lt;br&gt;light, SAX-like system.
&lt;br&gt;&lt;br&gt;If you can choose, choose to NOT use SOAP. &amp;nbsp;If you control both server
&lt;br&gt;and client, why not use regular HTTP POST? &amp;nbsp;If you need structured data,
&lt;br&gt;I understand JSON can be very easy to parse with regex.
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Curtis Maloney
&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SOAP-client-for-Ethernut-3.0--tp26077157p26086350.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26086098</id>
	<title>DHCP Failure on Renew</title>
	<published>2009-10-27T15:10:36Z</published>
	<updated>2009-10-27T15:10:36Z</updated>
	<author>
		<name>Michael Jones-4</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;We have been having problems with DHCP enabled client dying after half lease
&lt;br&gt;time for quite a while (Also reported by Ulrich a few days ago).
&lt;br&gt;&lt;br&gt;My observations are that the DHCP thread gets stuck in the DHCPST_REBINDING
&lt;br&gt;state and never sends the request nor yields to any other thread.
&lt;br&gt;&lt;br&gt;I'm still trying to understand to whole state machine, but perhaps somebody
&lt;br&gt;could look at the &amp;quot;else&amp;quot; in dhcpc.c (trunk), line 1714 - IMHO that &amp;quot;else&amp;quot;
&lt;br&gt;should not be there. Also, I'm not quite sure how the DHCPST_REBINDING state
&lt;br&gt;should conclude once it has been entered.
&lt;br&gt;&lt;br&gt;cu,
&lt;br&gt;Michael
&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DHCP-Failure-on-Renew-tp26086098p26086098.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26079825</id>
	<title>Re: NutCOnf/Qt</title>
	<published>2009-10-27T08:33:56Z</published>
	<updated>2009-10-27T08:33:56Z</updated>
	<author>
		<name>Thiago A. Corrêa</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;I've updated the qnutconf in svn. It is now able to save the
&lt;br&gt;settings dialog info to the registry and even build the NutOS
&lt;br&gt;libraries. Everything is very &amp;quot;alpha&amp;quot; at this point, but it now
&lt;br&gt;actually does something *hopefully* usefull :)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;If anyone wants to check out and care to comment, it would be
&lt;br&gt;appreciated. I'm outputing the full build log to the log window. I'm
&lt;br&gt;considering offering at the Settings dialog some sort of verbose
&lt;br&gt;filter. Perhaps even just invoke make and make -s depending on the
&lt;br&gt;verbosity level. I did some experiences with make -j5 but it didn't
&lt;br&gt;improve the buildtime, or my CPU utilization on my quad-core, so I
&lt;br&gt;dropped it.
&lt;br&gt;&lt;br&gt;PS: I do realize it looks ugly. I guess I need to fix the images
&lt;br&gt;folder to png or something like that.
&lt;br&gt;&lt;br&gt;Kind Regards,
&lt;br&gt;&amp;nbsp; &amp;nbsp; Thiago A. Correa
&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/RFC%3A-Using-CMake-tp25331986p26079825.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26077157</id>
	<title>SOAP client for Ethernut 3.0?</title>
	<published>2009-10-27T05:45:18Z</published>
	<updated>2009-10-27T05:45:18Z</updated>
	<author>
		<name>Javier Longares</name>
	</author>
	<content type="html">Hi folks,
&lt;br&gt;&lt;br&gt;I'm looking for making a SOAP client with Ethernut 3.0E board and I would
&lt;br&gt;know if there is some souce code or some open source project which could led
&lt;br&gt;my firsts steps.
&lt;br&gt;&lt;br&gt;Of course, if you know a SOAP for this board or you like toi make me some
&lt;br&gt;suggestion I'll be very glad to hear you.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;&lt;br&gt;Javier
&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SOAP-client-for-Ethernut-3.0--tp26077157p26077157.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26076096</id>
	<title>Dual rs232&lt;-&gt;Ethernet</title>
	<published>2009-10-27T04:33:35Z</published>
	<updated>2009-10-27T04:33:35Z</updated>
	<author>
		<name>asdus</name>
	</author>
	<content type="html">Hi all.
&lt;br&gt;For my home automation i need to use 2 rs232&amp;lt;-&amp;gt;ethernet converters
&lt;br&gt;I'm buy Ethernut V 1.3 H board and try to make it, using rs232d, Basic
&lt;br&gt;TCP Server and Serial Port Monitor examples.
&lt;br&gt;Using that i need to do this in dedicated threads, because i'm use
&lt;br&gt;other ethernut's digital pins to get home events. All my tries fails,
&lt;br&gt;i have lags using my remote rs232's.
&lt;br&gt;&lt;br&gt;Can anyone with code or part of code, that's can help me to resolve my
&lt;br&gt;problem? Great thanks!
&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Dual-rs232%3C-%3EEthernet-tp26076096p26076096.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26061904</id>
	<title>Re: Measuring idle time</title>
	<published>2009-10-26T08:22:36Z</published>
	<updated>2009-10-26T08:22:36Z</updated>
	<author>
		<name>Nathan Moore-5</name>
	</author>
	<content type="html">Hello all.
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We are debugging one application in Ethernut3, and we want to measure
&lt;br&gt;&amp;gt; the time that the micro spends doing some tasks. For that we are setting
&lt;br&gt;&amp;gt; different pins up and down and measuring times with the oscilloscope.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; To measure the idle time we are setting up one of the pins during the
&lt;br&gt;&amp;gt; execution of the idle thread. I am sure that many people have been
&lt;br&gt;&amp;gt; thinking about/doing this, so I wonder if NutOS provides some kind of
&lt;br&gt;&amp;gt; debug option or mechanism to do this already.
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;I did this once but there was no support in Nut for it.
&lt;br&gt;I only had 3 gpio (LEDs in this case) available, but had less than 9 threads
&lt;br&gt;including the idle
&lt;br&gt;thread, so I added a uint8_t to the thread control block to represent the
&lt;br&gt;LED pattern.
&lt;br&gt;I also added code in NutThreadCreate to count how many times it had been
&lt;br&gt;called and store that
&lt;br&gt;in each thread block.
&lt;br&gt;Then I added code in task switching to set all of my gpio to 0 while doing
&lt;br&gt;thread switching and
&lt;br&gt;set them to the pattern of the runningThread when a new thread had been
&lt;br&gt;scheduled based on
&lt;br&gt;the variable I had added to the thread control block.
&lt;br&gt;I then added code in my main thread to print out the thread names and their
&lt;br&gt;LED pattern after all
&lt;br&gt;my threads were created but before the main thread entered it's normal
&lt;br&gt;running state (loop).
&lt;br&gt;&amp;nbsp; &amp;nbsp;idle &amp;nbsp; &amp;nbsp; &amp;nbsp;= 001
&lt;br&gt;&amp;nbsp; &amp;nbsp;main &amp;nbsp; &amp;nbsp;= 010
&lt;br&gt;&amp;nbsp; &amp;nbsp;TcpSm = 011
&lt;br&gt;&amp;nbsp; &amp;nbsp;A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 100
&lt;br&gt;&amp;nbsp; &amp;nbsp;B &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 101
&lt;br&gt;&amp;nbsp; &amp;nbsp;C &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 110
&lt;br&gt;&lt;br&gt;Task switching would be 000
&lt;br&gt;If you have enough gpio available I would suggest strongly using only a
&lt;br&gt;single bit per thread rather
&lt;br&gt;than a bit pattern since it's easier to scope and measure.
&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Measuring-idle-time-tp26061285p26061904.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26061285</id>
	<title>Measuring idle time</title>
	<published>2009-10-26T07:54:06Z</published>
	<updated>2009-10-26T07:54:06Z</updated>
	<author>
		<name>jvallet</name>
	</author>
	<content type="html">Hello all.
&lt;br&gt;&lt;br&gt;We are debugging one application in Ethernut3, and we want to measure 
&lt;br&gt;the time that the micro spends doing some tasks. For that we are setting 
&lt;br&gt;different pins up and down and measuring times with the oscilloscope.
&lt;br&gt;&lt;br&gt;To measure the idle time we are setting up one of the pins during the 
&lt;br&gt;execution of the idle thread. I am sure that many people have been 
&lt;br&gt;thinking about/doing this, so I wonder if NutOS provides some kind of 
&lt;br&gt;debug option or mechanism to do this already.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;José
&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Measuring-idle-time-tp26061285p26061285.html" />
</entry>

</feed>
