<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>LeafLabs Garden &#187; Topic: Is anyone else having issues with the WizEthernet actually working?</title>
		<link>http://forums.leaflabs.com/topic.php?id=1420</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:08:29 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=1420" rel="self" type="application/rss+xml" />

		<item>
			<title>manitou on "Is anyone else having issues with the WizEthernet actually working?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1420&amp;page=2#post-11109</link>
			<pubDate>Wed, 06 Jun 2012 14:02:11 +0000</pubDate>
			<dc:creator>manitou</dc:creator>
			<guid isPermaLink="false">11109@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Using ventosus UDP/DMA lib, I confirmed his faster UDP transmit times (in mbs, megabits/second) for 10 1000-byte UDP sends at various SPI Hz&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;1.125MHz  1.04mbs
2.25MHz   2.03mbs
4.5MHz    3.9mbs
9MHz      7.1mbs
18MHz    12.1mbs&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and that library works at the slower SPI rates.  I think my mods to dinau's library don't work at slower SPI rates, because I'm only using DMA for the &#34;block&#34; transfers, and still using discrete SPI transfers for command and control.  Not sure why that causes a problem at slower SPI rates.  but ventosus UDP lib uses DMA for ALL communications with WIZ
&#60;/p&#62;</description>
		</item>
		<item>
			<title>manitou on "Is anyone else having issues with the WizEthernet actually working?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1420&amp;page=2#post-11060</link>
			<pubDate>Mon, 04 Jun 2012 15:01:59 +0000</pubDate>
			<dc:creator>manitou</dc:creator>
			<guid isPermaLink="false">11060@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Alas, even with PWDN to ground the WIZ820io is still misbehaving -- not lighting LEDs.&#60;br /&#62;
For what it's worth, the schematic shows the PWDN with a pulldown resistor to ground, so I don't think you have to connect PWDN.  Even though the LEDs are off (link not up), my sketch can set the IP ddress etc.  (I read the low memory off the WIZ and can see that values have been set, and the PHY linkstatus is also 0 (down) at 0x35.  Bit 5 is high when the link LED is lit)  So I still have some sort of intermittent electrical or device problem.  The ether cable/port works to other devices (beaglebone)&#60;/p&#62;
&#60;p&#62;at least it stayed up long enough to complete my benchmarks ...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>manitou on "Is anyone else having issues with the WizEthernet actually working?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1420&amp;page=2#post-10938</link>
			<pubDate>Mon, 28 May 2012 13:42:54 +0000</pubDate>
			<dc:creator>manitou</dc:creator>
			<guid isPermaLink="false">10938@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;OK, I think the problem was I had PWDN unconnected.  (In my defense :-),  I started testing WIZ820io with wizEthernet lib and it had all the Wiz pins hooked to the mcu pins, including, RESET, PWDN, and INTERRUPT.  I started pulling wires to see which of those pins were necessary.  &#34;At the time&#34;, it worked with PWDN unconnected. In fact the Wiz site has a drawing for wirings to Arduino, and they show PWDN unconnected.)  Thanks for helping and posting your custom UDP/DMA code.  It is faster than the DMA mods I made to dinau's library.  Here's an update to my table above&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;SPI
1.125MHz 2414 .8  .7 mbs
2.25MHz  1565 1.23 1.3mbs
4.5MHz   1186 1.7 1.6mbs
9MHz     1011 2.0  1.9mbs
18MHz    1011 2.0  1.9mbs

DMA
4.5MHz 1234  2.8 3.3mbs
9MHz   1002  6.1  5.5mbs
18MHz  992  9.2mbs 7.8mbs&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Now the only mystery I have is that my DMA version doesn't work at 1.125MHz or 2.5MHz.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ventosus on "Is anyone else having issues with the WizEthernet actually working?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1420&amp;page=2#post-10931</link>
			<pubDate>Mon, 28 May 2012 04:48:18 +0000</pubDate>
			<dc:creator>ventosus</dc:creator>
			<guid isPermaLink="false">10931@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;hi manitou&#60;/p&#62;
&#60;p&#62;Me too implemented SPI over DMA for the W5200 chip, although I did not modify the Arduino lib, but have written a small C lib instead that just supports UDP reading and writing over DMA. Here the WIZ820io works flawlessly.&#60;/p&#62;
&#60;p&#62;7.3MBit/s @9Mhz&#60;br /&#62;
12.4MBit/s @18Mhz&#60;/p&#62;
&#60;p&#62;How do you connect the wiz820io to your Maple? My connection is as follows:&#60;br /&#62;
WIZ820io      Maple Mini&#60;br /&#62;
Gnd           Gnd&#60;br /&#62;
Vcc           Vcc&#60;br /&#62;
MOSI          MOSI (SPI2)&#60;br /&#62;
MISO          MISO (SPI2)&#60;br /&#62;
SCK           SCK  (SPI2)&#60;br /&#62;
SS            SS   (SPI2)&#60;br /&#62;
nRESET        RESET&#60;br /&#62;
PWDN          Gnd&#60;br /&#62;
nINT          (not used)&#60;/p&#62;
&#60;p&#62;Example sketch and dma_udp lib can be found here:&#60;br /&#62;
&#60;a href=&#34;http://pastebin.com/pZX2YTjh&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/pZX2YTjh&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://pastebin.com/Xx1ex0S6&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/Xx1ex0S6&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://pastebin.com/K4nCcaqG&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/K4nCcaqG&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://pastebin.com/GmBCXUYt&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/GmBCXUYt&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>manitou on "Is anyone else having issues with the WizEthernet actually working?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1420&amp;page=2#post-10913</link>
			<pubDate>Sun, 27 May 2012 15:56:48 +0000</pubDate>
			<dc:creator>manitou</dc:creator>
			<guid isPermaLink="false">10913@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I still have problems with the WIZ820io not working -- LEDs are off, though I can still read the program registers via SPI (PHYSTatus is 0x23, it is 0x55 when it is working).  Eventually, it starts working again.  Though it has not connected to the net for more than a day now ??  I got DMA working, I think.  At least I got some UDP transmit tests to work at 9MHz-SPI, transmitting 1k-byte packets at 6.1mbs.  Here is w5100.cpp with the DMA mods (SPI2)&#60;br /&#62;
  &#60;a href=&#34;http://pastebin.com/iz9jSnUX&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/iz9jSnUX&#60;/a&#62;&#60;br /&#62;
Since I can't keep the WIZ running, I don't have complete results but here is summary of three UDP  tests. Column 1 is time in microseconds for 8-byte echo.  Column 2 is data rate for sending 1000-byte UDP packets.  Column 3 is the time for receiving 10 1000-byte packets with no loss.  Data for SPI only and a few SPI-DMA results for various SPI frequencies.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;SPI only
1.125MHz 2414   .8       .7 mbs
2.25MHz  1565  1.23    1.3mbs
4.5MHz   1186  1.7     1.6mbs
9MHz     1011  2.0     1.9mbs
18MHz  TBD

  SPI+DMA
1.125MHz  ?
2.25MHz  ?
4.5MHz 1234
9MHz   1002  6.1 mbs
18MHz ?

 arduino 022                        v1 ide
8MHz 420us   3.2mbs  3.4mbs        656us  3.16mbs  3.2mbs
4MHz 528us   2.25mbs 2.4mbs        900    2.22mbs  2.2mbs
2MHz 792     1.4     1.4          1356    1.4      1.3
1MHz 1388     .8      .8          2376     .79      .7&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The old W5100 chip does not have a burst read/write, so it takes 4 SPI ops per data byte, so at 4MHz, data rate would not exceed 0.38 mbs.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>manitou on "Is anyone else having issues with the WizEthernet actually working?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1420&amp;page=2#post-10631</link>
			<pubDate>Sat, 12 May 2012 15:54:07 +0000</pubDate>
			<dc:creator>manitou</dc:creator>
			<guid isPermaLink="false">10631@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;for what it's worth, I think my problems with SPI at 18MHz is breadboard/noise problem.  I tried shorter wires and twisted some of the SPI wires together and got WIZ820io working at 18MHz -- most of the time. :-)   Electronics aren't my strength, maybe terminating resistors and/or capacitors could help??&#60;/p&#62;
&#60;p&#62;I may take a look at DMA (based on SPI DMA  SD library) ...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "Is anyone else having issues with the WizEthernet actually working?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1420&amp;page=2#post-10599</link>
			<pubDate>Thu, 10 May 2012 18:33:08 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">10599@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;by the way, you should feel free to edit the wiki page to point to the new port, especially if it's better:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://wiki.leaflabs.com/index.php?title=WizEthernet&#34; rel=&#34;nofollow&#34;&#62;http://wiki.leaflabs.com/index.php?title=WizEthernet&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;we (leaflabs) mean for the wiki to be &#34;community property&#34; -- if you've got a better implementation for the wiz820io, then by all means let the wiki page reflect that fact!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ventosus on "Is anyone else having issues with the WizEthernet actually working?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1420&amp;page=2#post-10595</link>
			<pubDate>Thu, 10 May 2012 16:07:51 +0000</pubDate>
			<dc:creator>ventosus</dc:creator>
			<guid isPermaLink="false">10595@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;On linux here, too, using plain libmaple from git, unix toolchain, Maple Mini, dinau's lib with w5200 defines uncommented.&#60;/p&#62;
&#60;p&#62;I only tested whether UDP works with 18MHz, not how fast it is, but I can confirm that it's no faster than with 9Mhz.&#60;/p&#62;
&#60;p&#62;Here my benchmarks with this little sketch (&#60;a href=&#34;http://pastebin.com/nGz0NV1N&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/nGz0NV1N&#60;/a&#62;)&#60;/p&#62;
&#60;p&#62;measuring time to trasmit 10000 UDP packets of size 1052 with SPI configured to different speeds.&#60;/p&#62;
&#60;p&#62;MHz    seconds MBits/s&#60;br /&#62;
18      40.7   2.07&#60;br /&#62;
 9      40.7   2.07&#60;br /&#62;
 4.5    47.1   1.79&#60;br /&#62;
 2.25   68.5   1.23&#60;br /&#62;
 1.125 104.8   0.80&#60;/p&#62;
&#60;p&#62;I'll stick to 9Mhz for now until someone gets DMA support into dinau's port...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>manitou on "Is anyone else having issues with the WizEthernet actually working?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1420&amp;page=2#post-10580</link>
			<pubDate>Wed, 09 May 2012 15:51:56 +0000</pubDate>
			<dc:creator>manitou</dc:creator>
			<guid isPermaLink="false">10580@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;ventosus what compilers etc. are you using.&#60;/p&#62;
&#60;p&#62;i'm building on linux box with maple-ide-v0.0.12 and using dinau's Ethernet lib with W5200 support for WIZ820io on Maple RET6.&#60;br /&#62;
As noted elsewhere, and my benchmarks confirm, maple SPI at 18 MHz is no faster than SPI at 9MHz using SPI.transfer() -- you need to go to DMA to get full clock speed SPI.  Nevertheless, when I configure SPI2 to 18MHZ -- DHCP fails, and non-DHCP sketches behave erratically (e.g. TelnetClient). Even some maple crashes (flashing LED).  Things are good at 9MHz.&#60;/p&#62;
&#60;p&#62;thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ventosus on "Is anyone else having issues with the WizEthernet actually working?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1420#post-10573</link>
			<pubDate>Wed, 09 May 2012 07:02:37 +0000</pubDate>
			<dc:creator>ventosus</dc:creator>
			<guid isPermaLink="false">10573@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;@manitou I'm running at 18MHz with SPI2 on Maple Mini r3.&#60;/p&#62;
&#60;p&#62;I send out packages of 96-736 bytes in size at 1-2kHz rate via UDP.&#60;br /&#62;
No lost packages so far and no corruption of the data inside the packages either.&#60;/p&#62;
&#60;p&#62;tcpdump output looks very nice&#60;/p&#62;
&#60;p&#62;100000 packets captured&#60;br /&#62;
100000 packets received by filter&#60;br /&#62;
0 packets dropped by kernel
&#60;/p&#62;</description>
		</item>
		<item>
			<title>manitou on "Is anyone else having issues with the WizEthernet actually working?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1420#post-10571</link>
			<pubDate>Wed, 09 May 2012 05:12:36 +0000</pubDate>
			<dc:creator>manitou</dc:creator>
			<guid isPermaLink="false">10571@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;mike,&#60;br /&#62;
serial3 was just for debug output to pc
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mconners on "Is anyone else having issues with the WizEthernet actually working?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1420#post-10539</link>
			<pubDate>Tue, 08 May 2012 20:36:05 +0000</pubDate>
			<dc:creator>mconners</dc:creator>
			<guid isPermaLink="false">10539@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Manitou, What did you have to use serial3 for? I just see connections needed for SPI, reset, and pwr/gnd? Or was that for comms back to the PC?&#60;/p&#62;
&#60;p&#62;Mike
&#60;/p&#62;</description>
		</item>
		<item>
			<title>manitou on "Is anyone else having issues with the WizEthernet actually working?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1420#post-10537</link>
			<pubDate>Tue, 08 May 2012 19:34:12 +0000</pubDate>
			<dc:creator>manitou</dc:creator>
			<guid isPermaLink="false">10537@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I improved Ethernet performance modestly by taking the SPI up to 9MHz.  However, I couldn't get the WIZ820io to work with the SPI at 18MHz.  Behavior with SPI2 at 18MHz was erratic.&#60;/p&#62;
&#60;p&#62;Anyone tried wiznet with SPI at 18MHz??&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;Test             4.5MHz       9MHz
8byte UDP echo   1190us      992us
1000byte send     1.7mbs      2.1mbs
1000byte recv     1.3mbs      1.7mbs  (speed at which 10 1k pkts arrive with NO loss)&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The maple times are slower than Arduino Uno with SPI at 4 and 8 MHz
&#60;/p&#62;</description>
		</item>
		<item>
			<title>manitou on "Is anyone else having issues with the WizEthernet actually working?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1420#post-10502</link>
			<pubDate>Sun, 06 May 2012 13:29:13 +0000</pubDate>
			<dc:creator>manitou</dc:creator>
			<guid isPermaLink="false">10502@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Thanks dinau.  I got the Maple RET6 working with the WIZ820io and your library (building on Linux). I used SPI2, Serial3, and wired reset from Wiz to reset on Maple. Static IP address and DHCP both worked as did simple TCP  and UDP tests.  Simple 8-byte UDP request-reply on local net took 1190 us.  Same test between 2 linux boxes takes about 730 us.  Streaming 1000-byte UDP packets to a local Linux box (100 mbs Ether) took about 4.6 ms per packet -- around 214KBs.  The SPI (I think) is configured at 4.5MHz, or roughly 560KBs
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ventosus on "Is anyone else having issues with the WizEthernet actually working?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1420#post-10496</link>
			<pubDate>Sat, 05 May 2012 16:21:38 +0000</pubDate>
			<dc:creator>ventosus</dc:creator>
			<guid isPermaLink="false">10496@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Yes, dinau's lib is the way to go, cleaner code, more complete, a lot of examples from the Arduino project and it's faster too (at least for sending Open Sound Control messages via raw UDP, that's what I've tried)&#60;/p&#62;
&#60;p&#62;@dinau, great port!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
