Can I post W5200 for Quickstart here? No link light.
Paul
Posts: 263
Just wondering as I Spinneret and W5200-4-QS are pretty similar. If not, please direct me to the correct forum.
Not getting any "link" light with known good switches and cables. I think I had the link light originally out of the box but after programming different things it doesn't link anymore. I've tried DhcpDemo and Simple_server and WebServer_W5200 but none seem to work. Now I'm stuck.
Thanks.
Not getting any "link" light with known good switches and cables. I think I had the link light originally out of the box but after programming different things it doesn't link anymore. I've tried DhcpDemo and Simple_server and WebServer_W5200 but none seem to work. Now I'm stuck.
Thanks.
Comments
You must power the W5200 QS then power the QuickStart. I'm assuming you are using a QuickStart board.
When you run any of the programs start up info is displayed in the Parallax Serial Terminal. What do you see in the terminal?
From the PST:
It looks like DHCP isn't working. ...or DHCP isn't working because I have no link.
Is there a "demo' that uses static IP? I'm pretty restricted to what range of IP addresses they let me choose from.
Yes, there are examples that use a static IP on Google Code and there are many examples in the forum. I'm at work right now. I don't want to post anything that will lead you down the rabbit hole.
It looks to me that the following will setup static IP after I enter my own IP and MAC. Am I close?
What about the WebServer_W5200 and DHCP. DHCP not working for ya?
Thanks for the MultiSocketServerDemo. This should help a lot.
Paul
repeat
DoDhcp(0) 'don't reset IP
...will work the first time after power-up/reset, but faills second pass (i.e. after IP is set to non-0.0.0.0 by the first pass), while...
repeat
DoDhcp(1) 'reset IP to 0.0.0.0 first, then get new IP
...works fine.
This is definitely a router/DHCP server dependent mystery, some setups don't need to resetIP, but maybe yours (like mine) does so give it a try.
What is the make and model of your home router?
The W5200 + QuickStart should work from USB power alone. There are some large capacitors on the board that may take a little while to charge (on the order of milliseconds). The FTDI chip also has a conversation with your computer when it first enumerates itself. As part of this conversation, it requests that the computer's USB port supply up to 500 mA, instead of the normal 100 mA before the request. Since this enumeration and request take a little time, I've noticed that the W5200 chip doesn't always start up properly.
Try having your program wait a second when it is starting, and issue a hard reset command:
That should bring the w5200 chip back to a known state.
Basically, the key is to make sure the w5200 chip has "stable" power on start up. You can accomplish this by supplying power to the hardware before you connect it to your computer's USB port (as Mike G suggested, and you have done), or by having the Propeller reset the w5200 chip.
Router is a Motorola SBG6580.
@twc, I'll give the resetIP() a go and see if works for me. I do remember seeing another method to force the IP in one of the DHCP webserver programs. I was going to dig it out and see what it does.
Thanks all.
Paul
The amount of demo code provided for the board is awesome, but I was wondering if there was any associated documentation for the various examples, as the only one covered in the product guide was the simple server. I know that the folder names are fairly self-explanatory, but brief description and basic instructions (setup, etc.) for each example would be greatly appreciated. I have been digging through the source code to figure out the functionality of each, but some of this stuff is pretty new to me, it's slow going and a little guidance would go a long way. In spite of that, I've managed to get a few things running and am really impressed with this cool little board and the libraries and code that came with it.. Thanks for the creation!
Regarding the WebServer_W5200_RTC example:
The original sntp server listed in the example was offline, so I put in another. It syncs up fine and the date, time and year are correct, but the day of the week displayed in the xml examples is wrong. I tried other servers with the same result. Any suggestions? Thanks in advance!