Problematic page loading
Wildatheart
Posts: 195
HTML code is written (in part) to display a jpg on web page. Sometimes it loads the full jpg, sometimes part of the jpg, and sometimes the jpg doesn't load at all. Although the code does indeed work as intended, the full display is very problematic using IE and less problematic when using iphone (safari). Most of the time the situation can be resolved if another image at http://blahblah is referenced in place of the jpg.
On another matter, I have working code to load and display google maps but I'd like to use 'earth in place in place of 'maps. The code for 'earth can be found at http://code.google.com/apis/ajax/playground/?exp=earth#draggable_placemark . I'd be grateful if someone can help me with the header code to load this API.
On another matter, I have working code to load and display google maps but I'd like to use 'earth in place in place of 'maps. The code for 'earth can be found at http://code.google.com/apis/ajax/playground/?exp=earth#draggable_placemark . I'd be grateful if someone can help me with the header code to load this API.
Comments
Are you trying to run this from a Spinneret or W5200?
I'm using the W5100 on the original Spinneret board. The code date is August 1012.
When making changes to the SD card, and after reinserting it, I reset both the Spinneret and the Prop. It typically takes 2 pings to get any activity displayed in the web page.
If the jpg doesn't load, nor does the google map.
Please zip and post the HTML.
and
line 403 => pst.dec(sock.GetTtl)
GetMtu & GetTtl are nod defined ....
Thanks
The right side of the download page shows the date files were updated. It's a good idea to always get the latest stuff. the change log can be viewed by clicking the file name.
I called Linksys/Cisco tech support and they took control of my laptop and checked settings. Turns out that the new routers are programmed to reject their own IP address if called within the network. Turning off the WiFi connection on my iPhone allowed me to access my IP address:5000. It seems that this security feature was not available on the older routers.
Knowing that, and knowing that my router was properly set to recognize my IP address:5000 from outside of the local network and from 192.168.1.126:5000 withing the local network, I downloaded each of the latest Google files for the w5100.
The folder containing those files is attached. Because the Spinneret is now not accessable locally or from the outside, I think the place to start is to ask for a review of my changes I made in w5100.spin and in WebServer_5100.
My current IP is 72.222.215.152.
Will attach the originally requested HTML5 file after I can get Hello World up and running.
If the problematic matter can be resolved I'd still like help to replace the Google map API with the Google Earth API found at
http://code.google.com/apis/ajax/playground/?exp=earth#draggable_placemark
Existing can be found at http://72.222.215.152:5000
Doc
I was to fast !
Is there a way to get them all at once ?
Thanks a lot for your code
http://spinneret.servebeer.com:8080/
I looked specifically at the logo.jpg file and found malformed packet errors related to the IPA protocol. It may be nothing but the packets are not formatted as I expect or have experienced during development. At first, it looked as though the packets are coming from a GSM network; cell phone. Anyway, there are dropped packets and the connection does not appear to recover. The jpg always stops after sending 113951 of 168061 bytes. It could be the Socket is sending data to quickly but it's a little weird the error always happens at the same spot in the download process.
This is what what I suggest we do...
Added Pause...
From my end, I added a first time observed weird load of the jpg (attached) - might shed light on the matter.
Will make changes as you suggest this morning. Thanks, Mike!
@doggiedoc disabled UDP as you suggest and it may have marginally improved the LAN loading. Yesterday, Cisco advised keeping the setting at both, TCP and UDP, however, another tech told me disable UDP for security reasons? Not sure, but don't think that's the answer to our problematic loadings.
'...them all at once?" If you're referring to the W5100 files posted on Google, I think not. I think its a copy and paste of each file.
Reformatted SD card.
Added pause.
Results... better but remain problematic. Results now similar to servebeer server.
Safari and IE - equally problematic.
http://72.222.215.152:5000
Can only get one third of the picture, only see the top of the mountain.
On servebeer I could load the whole pic.
Also need to load your page twice because I always get an error page when first time loading.
We might need to add a pause in the main repeat loop.
Results... Some good loads. Some loads with no jpg. And some loads with blank screen. But so far no partial jpg loads as before.
See attached screenshot for a previously unseen load. Can this possibly be bad HTML code? Don't think so because this is first time showing, but I am a newbe to HTML.
servebeer site seems more stable
Edit: iPhone on 3G displays white screen without a reset. After a reset 3G hangs mid jpg load.
Can't take a screenshot of iPhone display but *** it just displayed the actual HTML text *** at a point beginning well into the code, then to the end of the code text - no graphics at all. YIKES!
Could it be the servebeer server (possibly w5200) is upgraded from the original Spinneret?
I went ahead and removed a lot of the redundant CSS, 11k worth, and attached the much smaller jpg and index.htm page.
It's probably because my ISP upload is pretty darn quick. With that in mind, add a pause is between the Socket.Connected and Socket.Available method as shown below. I'm guessing the socket is connected but the data (HTTP request header) has not been received. Go ahead and mess around with the pause value and let us know how it works out; if it works at all.
If the request is timing out you should see a timeout message on the Parallax Serial Terminal that looks like the following, right?.
The timeout code I posted earlier is not correct... use this snippet. Plus you'll have to add i as a local variable and set it 0 when the MultiSocketService starts up. I forgot to add that info... sorry.
Made suggested changes... http://72.222.215.152:5000 now functions at about 95% in IE on my laptop. Access with my iPhone on 3G is nearly impossible - I get nothing, else I received the partial HTML text again.
Will experiment with the delay settings after a bit.
Enclosed is the HTML Google Earth code. If you have time would you please substitute it for maps in my index.
Hopefully these changes will benefit the sporadic loading doggiedoc was experiencing and others as well. I'm sure we'll generate a lot of interest to see some fancy CSS and some chicken coops running on the Spinneret.
Wildatheart, I've been hitting the site pretty hard but it seems to recover well... I'll get a "page cannot be displayed" or "unable to connect" but a refresh and boom there it is...
Sorry for the HiJack Wildatheart.
But... Can I convince you to make the jump to the new code base? The new WizNet code is designed to share libraries between the W5200 and Spinneret. Plus, I'm not thrilled to support two different code bases; HttpServer and the layered socket/interface approach. It just occurred to me, I should to come up with a name for the new code... hummm.
Either way you'll have my support. Let me know if you need anything.
Wildatheart, site is still up and running I see.
doggiedoc, you didn't HiJack anything - we're all headed in the same direction here, but thanks for your consideration.
I too had some experience with HTTPServer last year, and it worked well. But as Mike suggested, we could do a better job of supporting his efforts and the community if we can all get on the same page. The worst of the transition is the copy and paste process from the Google code site.
http://72.222.215.152:5000 is mostly up and seemingly stable unless I'm tinkering with the code. Check out some of the fun CSS stuff displayed there. You could zoom in and display a Google map that shows your chicken coup - heck, you could even give the fox directions there!
Thanks!
Doc
See the Html5Graph for an example of reading real-time data.