Page 1 of 1

Arduino Uno + Arduino Ethernet shield

Posted: Mon Mar 24, 2014 7:24 am
by damstech8888
Dear Friends:

I try to built web page base on my Arduino Uno + Arduino Ethernet shield but I fail.

I am using EB023-00-2 component and config project board as Arduino Uno with "Simple Webserver_v5" Flowcode Examples.

After many try, I can ping this Arduino Ethernet shield no problem. But I can't open web page from web browser.

Should I watch any thing else?

B.R.

Peter

Re: Arduino Uno + Arduino Ethernet shield

Posted: Mon Mar 24, 2014 11:41 am
by Benj
Hello Peter,

Could you post your program so far so we can see how your doing the TCP comms.

Re: Arduino Uno + Arduino Ethernet shield

Posted: Tue Mar 25, 2014 7:12 am
by damstech8888
Sure, Please see attach file for my study.

Re: Arduino Uno + Arduino Ethernet shield

Posted: Wed Mar 26, 2014 11:46 am
by LeighM
Hi
We’ve changed the way that substitutions work on the V6 webserver component.
For outgoing values use SetOutValue macro that has as parameters, first the index, then the value string, e.g. SetOutValue(0, “Out 0”),
the string “Out 0” will replace %0 in the html. (Use SetOutValue(1, “Out 1”), %1 etc)
Request parameters can also be retrieved using GetInValue() macro
See the attached example.
Regards,
Leigh

Re: Arduino Uno + Arduino Ethernet shield

Posted: Thu Mar 27, 2014 4:01 am
by damstech8888
Dear Leigh,

Thanks for your fast support!

I can't open this example due to this error:
cant open.png
(17.36 KiB) Downloaded 2840 times
Can you help me?

Or you have example in AVR for webpage that I can study!

Regards,

Peter

Re: Arduino Uno + Arduino Ethernet shield

Posted: Thu Mar 27, 2014 9:21 am
by LeighM
Hi Peter,
Sorry about that, the flowchart was created in version 6.0.6 so will not be readable by older versions.
You can get a link to updated version here
http://www.matrixmultimedia.com/mmforum ... 54&t=14600
When you have loaded the example flowchart you can change the target to AVR
Let us know if you have any more problems
Regards,
Leigh

Re: Arduino Uno + Arduino Ethernet shield

Posted: Thu Mar 27, 2014 11:33 am
by damstech8888
Dear Leigh,

Thanks for your fast support! I got the web page from web browser!

I will study the data read and out next step!

B.R.

Peter

Re: Arduino Uno + Arduino Ethernet shield

Posted: Fri Mar 28, 2014 10:35 am
by damstech8888
Dear Leigh,

I don't understand...

W5100 only has 8K buffer memory each for Ex and Tx.

You have to assian TMSR = 0x03 says your page.htm is big like 8K.

In your V6 "Webserver Auto refresh temperature logger" sample, your html page has 2.05K. But once I brows this web page. The HTML cut in half, only 884byte remain.

That's why I can't open the page.

Is there miss assignment for webserver components? It looks like register assigns 1K to each socket only.

If not, how should I fill over 1K html file in to webserver components?

BR.
Peter

Re: Arduino Uno + Arduino Ethernet shield

Posted: Fri Mar 28, 2014 12:07 pm
by LeighM
Hi Peter,
Because of substantial differences between the way V5 and V6 work internally, the V6 Webserver component works differently to the V5 version. Unfortunately this means that V5 flowcharts that use the Webserver component do not convert well to V6. Also there is currently an html page text limit of 360 characters. This is primarily due to supporting low end target processors, but is certainly something we intend to improve in the future, but it’s fairly low on the priority list at the moment – sorry.
Regards,
Leigh

Re: Arduino Uno + Arduino Ethernet shield

Posted: Sat Mar 29, 2014 7:12 pm
by LeighM
Glad you got the page visible in your browser at least.
If the 360 character per page (x4 pages) limit holds up your project let us know and we can probably increase it a touch in the short term until we have time for a more elegant solution.
Let us know how you get on.

Leigh