Dangerous Prototypes

Other projects => Past projects => Web platform => Topic started by: Val42 on February 27, 2010, 08:07:49 am

Title: Web Server not working
Post by: Val42 on February 27, 2010, 08:07:49 am
I'm having a problem with the MCSDServer.hex program.  I didn't recompile or anything, but I used the one directly from the archive.  I use the DS30 Loader and it is configured as specified on "http://dangerousprototypes.com/2009/12/11/prototype-web-platform/".  One of the two works as directed, but the other one I have to tell the loader to download then reset the webPlatform.  (Does this mean I've damaged the bootloader on this one?)  The load succeeds on both devices.

Both of them react the same after the download.  They answer pings find.  When I go to the web address I get "404: File not found".  This means that it is returning the "404" code, and the browser is displaying the rest.  What am I doing wrong?

Configuration:
System: Ubuntu Linux 9.10
DS30 Loader GUI: 1.3.5
DS30 Loader engine: 1.3.3
Title: Re: Web Server not working
Post by: ian on February 27, 2010, 10:15:57 am
Hi Val,

Sorry about the problem.

When you say both, are you working with two different web platforms or two different firmwares?

Is your SD card properly FAT formatted (preferably with a digital camera or the Panasonic SDformat utility, Windows format won't work)? Does the SD card have an index.htm file to display?
 
Those are a few initial checks that come to mind, I'll do my best to help you get it going.
Title: Re: Web Server not working
Post by: Val42 on February 28, 2010, 07:58:03 am
Thanks for the information.  The SD card is formatted as FAT16.  I can certainly format it using my camera.  Does it work if I format it FAT32 on Linux?

Yes, I do have two of the Web Platform SBCs.  One of them I loaded with the SD card inserted, but the other one didn't have an SD card at the time.  I don't remember which is which, but this may be the difference in how they reacted when I attempted the load.  I don't have time to diagnose it fully tonight, so I will get back to you on Monday.

Thanks again.  I really had no idea what to do next.  Now I do.
Title: Re: Web Server not working
Post by: Val42 on March 02, 2010, 06:35:21 am
Okay, I've tried it on both of the boards.  It will work with a 2GB SD card formatted FAT16, and an 8GB SDHC card formatted FAT32.  I have found that the card must be inserted before powering it up though and the page must be named "index.htm".

I tried uploading pages by going to "http://192.168.0.102/mpfsupload", but I just get the start page.  Is there another page to explain how to do this, or should I still discuss things on this forum?
Title: Re: Web Server not working
Post by: ian on March 02, 2010, 07:51:28 am
I have not tried using the upload page with the SD card server. As far as I know, it only works with the EEPROM server firmware. You're welcome to ask any questions here, and there's also extensive support in the Microchip forums for development related stuff.

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.00932049112session_write_close ( )...(null):0
20.00962180688ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.00962181464Database_MySQL->query( ).../DatabaseHandler.php:119
40.05432320184Database_MySQL->error( ).../Db-mysql.class.php:273