Dangerous Prototypes

Other projects => Past projects => Web platform => Topic started by: t0mpr1c3 on October 31, 2012, 02:59:01 am

Title: Demo query
Post by: t0mpr1c3 on October 31, 2012, 02:59:01 am
Thanks DP for the Scratch & Dent web platform. It's a version v1c. I plugged it in, found a new device on 192.168.1.8, and successfully ping'ed it. Also I downloaded web-platform/firmware/MCstackDemo/dp-wp-stackdemo.v0b.hex and saw the blinky LED, and got the UART echo at 115200 baud. So I'm happy the ds33 chip works. But when I opened a browser and navigated to 192.168.1.8, expecting to see a redirect to the MPFS upload page, I could not connect. Any advice?

Complete blog post :
http://smokedprojects.blogspot.com/2012 ... tform.html (http://smokedprojects.blogspot.com/2012/10/october-swag-bag-web-platform.html)
Title: Re: Demo query
Post by: dpropicweb on November 02, 2012, 12:27:01 am
Refer to the docs at http://dangerousprototypes.com/docs/Web ... uick_start (http://dangerousprototypes.com/docs/Web_platform_quick_start) for uploading a demo website.
Title: Re: Demo query
Post by: t0mpr1c3 on November 02, 2012, 08:13:56 am
Yes indeed. Those are the instructions I was following. Good as the documentation is, I still need help troubleshooting.
Title: Re: Demo query
Post by: dpropicweb on November 02, 2012, 09:01:12 am
Quote
But when I opened a browser and navigated to 192.168.1.8, expecting to see a redirect to the MPFS upload page, I could not connect. Any advice?

So you tried http://192.168.1.8/mpfsupload (http://192.168.1.8/mpfsupload) as per the documentation?
Title: Re: Demo query
Post by: t0mpr1c3 on November 02, 2012, 02:07:56 pm
[quote author="dpropicweb"]
Quote
But when I opened a browser and navigated to 192.168.1.8, expecting to see a redirect to the MPFS upload page, I could not connect. Any advice?

So you tried http://192.168.1.8/mpfsupload (http://192.168.1.8/mpfsupload) as per the documentation?[/quote]

Yes, that's right.

I had the Web Platform connected to my laptop using a RJ45. Should it be connected to my router instead? It may be one of those instructions that seems so obvious it is not in the documentation.
Title: Re: Demo query
Post by: tayken on November 02, 2012, 06:44:27 pm
Quote
I had the Web Platform connected to my laptop using a RJ45. Should it be connected to my router instead? It may be one of those instructions that seems so obvious it is not in the documentation.
You have to set up your laptop's IP address manually then. And maybe even use a cross cable (I've been told modern PCs do not require this but...).

Usual way is to connect it to your router. You are right, I guess nobody thought about putting that into documentation. :)
Title: Re: Demo query
Post by: dpropicweb on November 02, 2012, 09:02:11 pm
Quote
I had the Web Platform connected to my laptop using a RJ45. Should it be connected to my router instead?

If you plugged it into your laptop, not your router, where did it find a DHCP server from which to get an IP address of 192.168.1.8? The default IP address is hardcoded as 192.168.1.1 if no DHCP server is found.
Title: Re: Demo query
Post by: t0mpr1c3 on November 13, 2012, 09:40:33 pm
192.168.1.1 is the address of my wireless router at home. I think I changed the default address to 192.168.1.8 when I was messing around hacking a second router which was connected to the LAN socket to my laptop and didn't want to keep turning off the wireless connection.

Thanks for helping me along! I really don't know squat when it comes to Ethernet connections, web protocols, and so on.
Title: Re: Demo query
Post by: shuckc on December 31, 2012, 12:22:15 pm
I have added a couple of notes to the Contiki page http://dangerousprototypes.com/docs/Con ... b_platform (http://dangerousprototypes.com/docs/Contiki_OS_on_the_web_platform) about the expected usual network setup:

Network notes: These examples assume the Web Platform is wired with CAT5 cable to your home Broadband/DSL Router's Ethernet port, and you are working from a computer either on the same wireless or wired network. Direct connection (laptop to Web Platform) will not work so easily as there is no device to give out DHCP addresses.

( ! ) 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.01172081760session_write_close ( )...(null):0
20.01202213352ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01202214128Database_MySQL->query( ).../DatabaseHandler.php:119
40.05712352864Database_MySQL->error( ).../Db-mysql.class.php:273