New Drivers for the Spinneret
Mike G
Posts: 2,702
In the very near future, Parallax will release the WizNet 5200 for the QuickStart. I have spent a fair amount of time (since April 2012) building a driver and object code for the W5200. All the time feeling a little guilty, neglecting the Spinneret and Spinneret users. I received a few emails and PMs only adding to my onus.
Last weekend I build a high speed SPI driver for the W5100 (Spinneret). The driver uses the same interface as the WizNet 5200 for the QuickStart. All W5200 code will work on a Spinneret provided there are enough sockets to support the intended application.
Attached is a simple web server using the new driver and object code.
The most up to date code can be found on Google code.
Last weekend I build a high speed SPI driver for the W5100 (Spinneret). The driver uses the same interface as the WizNet 5200 for the QuickStart. All W5200 code will work on a Spinneret provided there are enough sockets to support the intended application.
Attached is a simple web server using the new driver and object code.
The most up to date code can be found on Google code.
Comments
FYI I tweaked a number of the W5200 programs I've been using to run on my Spinnerette, real easy...
- Change occurrences of OBJ "W5200" to "W5100"
- Change Prop pin numbers used to Spinnerette pin assignment (i.e.replace wiz.QS_Init with wiz.Start)
- Change socket numbers used to fit 0...3 instead of 0..7
- Change MAC address to Spinnerette MAC address
There were a few glitches I'll elaborate in a following post, but overall went quite well. I ran a modified version of the W5200 TCSDDD program on Spinnerette overnight 1000+ passes with flying colors! Now Spinnerette users can take advantage of your great software.
I see the request on PST- GET /led.htm?led=on HTTP/1.1 and when I click on LED off I see the response with led=off.
Is there something else I missed that needs to be setup for the LED?
I have attached the spin archive that I'm using.
My IP is [url]50.103.26.40:5000[/url] if you want to test it.
Thanks.
Don
Do you need an example?
What do I need to do to make it work with your new code?
What are the advantages of your new code?
Thanks.
Don
The code is very basic. It looks at the file name being requested. If the file is led.htm then the code looks for the querystring parameter ?led=on/off. If the led=on PIN 23 is set to high. If led=off the pin is set low.
All the W5200 libraries are comparable with the new Spinneret SPI driver with a little configuration.
I have some htm/css files on a sd card.
But the css file is not loading (debug window shows a timeout)
when i load the first spinneret driver, the page is loading perfect.
And using the 8.3 standard for the filenames.
Zip and attach your HTML source. If you have modified the web server in anyway, attach the source as well.
oops.. 8.3 limitations...? Didn't notice that, but that solved another little mystery here!
Thanks, Tumbler!
Attached the files on the SD card.
PS These files work with your first spinneret firmware
1) Attach the HTML code.
2) How many resources are loaded per request (I need to HTML)?
3) Which library are you using?
What firmware are you referring to?
SD Card.zip
I'm using WebServer_W5100.spin
Don't know Mike, i can't debug now (not at home)
I updated the web server to handle sub directories but doing so messed up some other things I was working on.
It looks like you want a web server so the classic HttpServer will work fine.
Thx for the info.