Arduino Uno + Arduino Ethernet shield

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
damstech8888
Posts: 14
Joined: Wed Mar 05, 2014 11:43 am
Has thanked: 1 time
Contact:

Arduino Uno + Arduino Ethernet shield

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Arduino Uno + Arduino Ethernet shield

Post by Benj »

Hello Peter,

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

damstech8888
Posts: 14
Joined: Wed Mar 05, 2014 11:43 am
Has thanked: 1 time
Contact:

Re: Arduino Uno + Arduino Ethernet shield

Post by damstech8888 »

Sure, Please see attach file for my study.
Attachments
1. Simple Webserver_v6.fcfx
(13.96 KiB) Downloaded 264 times

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: Arduino Uno + Arduino Ethernet shield

Post 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
Attachments
Webserver2.fcfx
(16.62 KiB) Downloaded 241 times

damstech8888
Posts: 14
Joined: Wed Mar 05, 2014 11:43 am
Has thanked: 1 time
Contact:

Re: Arduino Uno + Arduino Ethernet shield

Post 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

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: Arduino Uno + Arduino Ethernet shield

Post 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

damstech8888
Posts: 14
Joined: Wed Mar 05, 2014 11:43 am
Has thanked: 1 time
Contact:

Re: Arduino Uno + Arduino Ethernet shield

Post 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

damstech8888
Posts: 14
Joined: Wed Mar 05, 2014 11:43 am
Has thanked: 1 time
Contact:

Re: Arduino Uno + Arduino Ethernet shield

Post 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
Attachments
Webserver Auto refresh temperature logger.fcfx
(9.31 KiB) Downloaded 267 times

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: Arduino Uno + Arduino Ethernet shield

Post 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

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: Arduino Uno + Arduino Ethernet shield

Post 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

Post Reply