QuickStart W5200 IO Demo Available?
Jon Keinath
Posts: 146
Is there a simple W5200 demo available showing what is required to have the prop respond to an input (GET) from a webpage. For example toggle one of the QuickStart's LEDs when clicking a link with a GET request? I have found plenty of examples for viewing variables generated from the prop, but have not had success finding one for the other way around.
If one doesn't exist I'll keep experimenting with all the info available. I can probably figure it out. If I do I'll definitely create a demo and post it...
My W5200 with simple demo information should be available here (if my firewall is configured correctly)...
http://97.84.219.12:8080/
Thanks!
If one doesn't exist I'll keep experimenting with all the info available. I can probably figure it out. If I do I'll definitely create a demo and post it...
My W5200 with simple demo information should be available here (if my firewall is configured correctly)...
http://97.84.219.12:8080/
Thanks!
Comments
It refresh every 2 sec
I'm trying to replicate what you've done using the Simple_server demo code. The demo code works correctly when I use my browser to access wiznet on my LAN. I think the issue I'm having is with my router configuration.
Would you be able to outline what steps you took to setup your router so that your wiznet was accessible from the internet? I've run out of ideas to try setting up port forwarding.
Thanks,
Tom
The Attached jpg file show the portforwarding on my router. It should not be more complicated then that, as long as you can access Your quickstart or spinneret on your domestic network. The spinneret is the device Connected to port 5000 with its own intern ip address.If you are using port 5000 or anything else to access quickstart/spinneret from outside your network you have to add the :5000 to your current wan ip address like Jon also does. If you use port 80, like my PINK on the first line, that should not be necessary.
MikeG used to have a Spinneret server tutorial available on his own Spinneret some time ago where you could do exactly what you say, to turn of an on an LED on the Spinneret PCB. That was very helpful but I cant seem to find it no more. There is a chance I do have the files saved on one of my other computers so I can take a look and post them if no one responds before me. I Guess that .spin-file should probably be easy to modify for the wisnet 5200 on the quickstart. On the corresponding html-file you could send the commands via internet.
OK, look at MikeG's web server w5100: https://code.google.com/p/propeller-w5200-driver/source/browse/trunk/%20propeller-w5200-driver/Spinneret/WebServer_W5100.spin
and also http://forums.parallax.com/attachment.php?attachmentid=109570&d=1405074625 for the html files. I think epin.htm was the page where you could manipulate pins on the spinneret.
Thanks for the screen shot. It helped, but I still have a problem somewhere else. Looks like I need learn a bit more about networking.
Thanks again,
Tom
The attachment shows my setup for both the DMZ and port forwarding.
I've tried accessing from outside my network (includes a quick test with my firewall turned off0. The message "Unable to connect" is displayed.
http://76.185.192.5:8080
Testing simple_server.spin
This is a test: 828652
Btw Happy New Year!
Thanks for all the help. I tried again by leaving off the port number and it now works for me too.
Now all we need is someone to help Jon with his original post.
Thanks again,
Tom
Thanks Andy,
Tom
http://code.google.com/p/spinneret-web-server/source/browse/trunk/MultiSocketServer_MikeG/TutorialSourceArchives/#TutorialSourceArchives%253Fstate%253Dclosed
The problem [for me] is to download the zip files from this site, I haven't found the key yet.
I found a html file http://192.168.1.156/led.htm in the documentation that appears to be the beginning of controlling an LED.
If I use the sample code I can get the following output in the terminal which looks promising:
I think all I need to do know is find out how to process the line and have the P1 react to this, any ideas on how to parse this line and get the on/off value into a spin variable to allow control of the LED?
http://97.84.219.12:8080/led.htm
If you click the links the LEDs on my QuickStart will either all turn on or all turn off.
I added the following code into the "Webserver_W5200_RTC.spin" code under the line "fn := req.GetFile:Name" around line 320:
Now to work up a full tutorial post so others can repeat...
http://97.84.219.12:8080/
It works fine (no issues) on my PC with Chrome and IE, however it rarely works with Chrome or "Browser" on my Android smart phone.
What is even weirder is that, when manually typing in the LED ON or LED OFF link will cause the LEDs to turn on or off (respectively) however the page never appears in the browser. Any idea on what would cause this? I have ruled out a CSS issue as I removed the CSS and the problem remains the same.
Thanks!
Works OK on PC Windows 7 Pro Service Pack 1 with Chrome Version 39.0.2171.95 m
Does not work on HP Stream 7 Tablet Windows 8.1 with Chrome.
I look forward to your tutorial.
I've tried the above link, but the connection times out.
Tom
Could this have been a bot (Google Bot, etc.) searching the page? During testing with the debug window open I noticed a couple requests coming from the Google bot. This could explain it if you had any links from other pages available like I do.
If the page simply timed out, you probably tried accessing it after I had disconnected it from the network. It is currently still disconnected. I have an idea on how to indicate this (device disconnected) with the help of an additional web server. Hopefully I have a chance to implement this soon.
I was going to try and get the tutorial complete, but now that I found an issue with the non PC devices connecting reliably I'm going to delay and do some more troubleshooting.