chipKIT® Development Platform

Inspired by Arduino™

WebServer

Created Fri, 26 Sep 2014 15:44:00 +0000 by Cosford


Cosford

Fri, 26 Sep 2014 15:44:00 +0000

Hi guys,

using the webserver library and example available from digilent, with a max32, network shield and an sd card reader hooked up. Now, I can set up the network side of it absolutely fine and it works great. It connects to local network, logs when I access the max32 etc, and apparently the SD card initialises and finds files fine. However, the data I get out of it is simply one single line of 'ÿ'.

I believe this represents 0xFF, so there's something fishy going on somewhere. Logs going out over serial look okay (although I wouldn't be able to spot an error with that lot unless it slammed 'ERROR' in my face anyway). See below:

WebServer v2.0 Copyright 2013, Digilent Inc. Written by Keith Vogel SD card initialized. File system found. Default HTML page:HomePage.htm exists! Static begin Network Initialized UTC: Sep 26, 2014 @ 15:25:22 My IP: 192.168.1.190 Gateway IP: 192.168.1.254 Subnet mask: 255.255.255.0 Dns1 IP: 8.8.8.8 Dns2 IP: 8.8.4.4 My MAC: 00:04:A3:F1:7D:D8 Listening on IP: 192.168.1.190:80 Got a client: 0xA0000E14 New Client detected Default page called UTC: Sep 26, 2014 @ 15:25:29 Read an HTML page off of the SD card Entering Client ID: 0xA0000E14 GET / HTTP/1.1 SD FileName:HomePage.htm HTML page:HomePage.htm exists! HTTP directive: HTTP/1.1 200 OK Content-Type: text/html Content-Length: 3740 End of directive Writing file:HomePage.htm Connection Lost Closing connection for client: 0xA0000E14 Closing Client ID: 0xA0000E14 Listening on IP: 192.168.1.190:80 Got a client: 0xA0001064 New Client detected Default page called UTC: Sep 26, 2014 @ 15:25:59 Read an HTML page off of the SD card Entering Client ID: 0xA0001064 GET /favicon.ico HTTP/1.1 SD FileName:favicon.ico Unable to find HTML page:favicon.ico Jumping to HTTP File Not Found page HTTP Error Closing connection for client: 0xA0001064 Listening on IP: 192.168.1.190:80 Got a client: 0xA00012B4 New Client detected Default page called UTC: Sep 26, 2014 @ 15:26:12 Read an HTML page off of the SD card Entering Client ID: 0xA00012B4 GET / HTTP/1.1 SD FileName:HomePage.htm HTML page:HomePage.htm exists! HTTP directive: HTTP/1.1 200 OK Content-Type: text/html Content-Length: 3740 End of directive Writing file:HomePage.htm Got a client: 0xA0001504 New Client detected Timeout on client: 0xA0001504 Closing connection for client: 0xA0001504 Got a client: 0xA0001504 New Client detected Default page called UTC: Sep 26, 2014 @ 15:26:27 Connection Lost Closing connection for client: 0xA0001504 Connection Lost Closing connection for client: 0xA00012B4 Closing Client ID: 0xA00012B4 Listening on IP: 192.168.1.190:80 Got a client: 0xA0001504 New Client detected Got a client: 0xA0001754 New Client detected Default page called UTC: Sep 26, 2014 @ 15:26:47 Read an HTML page off of the SD card Entering Client ID: 0xA0001504 GET / HTTP/1.1 SD FileName:HomePage.htm HTML page:HomePage.htm exists! HTTP directive: HTTP/1.1 200 OK Content-Type: text/html Content-Length: 3740 End of directive Writing file:HomePage.htm Timeout on client: 0xA0001754 Closing connection for client: 0xA0001754 Got a client: 0xA0001754 New Client detected Default page called UTC: Sep 26, 2014 @ 15:27:18 Connection Lost Closing connection for client: 0xA0001754 Got a client: 0xA00019A4 New Client detected Default page called UTC: Sep 26, 2014 @ 15:31:23 Connection Lost Closing connection for client: 0xA00019A4 Got a client: 0xA0001754 New Client detected Default page called UTC: Sep 26, 2014 @ 15:33:09 Connection Lost Closing connection for client: 0xA0001754 Connection Lost Closing connection for client: 0xA0001504 Closing Client ID: 0xA0001504 Listening on IP: 192.168.1.190:80 Got a client: 0xA0001754 New Client detected Default page called UTC: Sep 26, 2014 @ 15:33:21 Read an HTML page off of the SD card Entering Client ID: 0xA0001754 GET / HTTP/1.1 SD FileName:HomePage.htm HTML page:HomePage.htm exists! HTTP directive: HTTP/1.1 200 OK Content-Type: text/html Content-Length: 3740 End of directive Writing file:HomePage.htm Connection Lost Closing connection for client: 0xA0001754 Closing Client ID: 0xA0001754 Listening on IP: 192.168.1.190:80 Got a client: 0xA00019A4 New Client detected Default page called UTC: Sep 26, 2014 @ 15:36:59 Read an HTML page off of the SD card Entering Client ID: 0xA00019A4 GET / HTTP/1.1 SD FileName:HomePage.htm HTML page:HomePage.htm exists! HTTP directive: HTTP/1.1 200 OK Content-Type: text/html Content-Length: 3740 End of directive Writing file:HomePage.htm Got a client: 0xA0000E14 New Client detected Timeout on client: 0xA0000E14 Closing connection for client: 0xA0000E14

SD Card is formatted as FAT32 (attempted FAT with the same result), with the contents of the 'content' folder copied directly into the root directory.

Any help with this would be much appreciated,

regards, Cosford.


willliam

Mon, 17 Nov 2014 17:48:42 +0000

Double-check that the Serial.begin baud rate matches that of the Serial Monitor :^)