Re: [lwip-users] Dynamic page updation using Ajax-Issue

2016-09-21 Thread Noam Weissman
Hi,

384K of RAM is a lot. I run a WEB server on a micro with 96K when only 8K was 
for LwIP.

Do you have sufficient PCB's defined for multiple connections ?... 

Are you using RAW API ?... Server code is your own or based on something from 
the net ?

BR,
Noam.

-Original Message-
From: lwip-users [mailto:lwip-users-bounces+noam=silrd@nongnu.org] On 
Behalf Of ece.kishor
Sent: Wednesday, September 21, 2016 1:02 PM
To: lwip-users@nongnu.org
Subject: [lwip-users] Dynamic page updation using Ajax-Issue

I am developing an embedded web server using lwip. My requirement is to 
dynamically update the value in browser without refreshing the whole web page. 
I am using a processor from atmel named SAME70Q21 having onboard RAM of 384 KB. 
When the server is live and running, when multiple number of PCs’
give web requests, server fails to respond.
Is their any solutions for fix this problem?
Has this issue got any connection with RAM memory?
Any link or updates will be helpful to me.



--
View this message in context: 
http://lwip.100.n7.nabble.com/Dynamic-page-updation-using-Ajax-Issue-tp27374.html
Sent from the lwip-users mailing list archive at Nabble.com.

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users
___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

[lwip-users] Dynamic page updation using Ajax-Issue

2016-09-21 Thread ece.kishor
I am developing an embedded web server using lwip. My requirement is to
dynamically update the value in browser without refreshing the whole web
page. I am using a processor from atmel named SAME70Q21 having onboard RAM
of 384 KB. When the server is live and running, when multiple number of PCs’
give web requests, server fails to respond.
Is their any solutions for fix this problem?
Has this issue got any connection with RAM memory?
Any link or updates will be helpful to me.



--
View this message in context: 
http://lwip.100.n7.nabble.com/Dynamic-page-updation-using-Ajax-Issue-tp27374.html
Sent from the lwip-users mailing list archive at Nabble.com.

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] Problem with freeing tcp segments

2016-09-21 Thread Sergio R. Caprile
Your picture of the threads running suggests you are using some form of 
an OS... have you tested the port with a known good application so you 
know for sure that everything is running fine ?


If so, in what part of memp_overflow_check_element_overflow() you see 
the loop and how is it occurring ? What do you see, what variable values ?

Have you enabled statistics ? What do you see ?

My bet is that you don't have a problem with freeing tcp_segments but a 
memory problem. You would probably attract someone with knowledge on 
this subject if you label the subject accordingly. Please describe your 
scenario.
Also, your web server... how do you know it is not trashing memory ? and 
your Modbus TCP app ?


___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


Re: [lwip-users] Dynamic page updation using Ajax-Issue

2016-09-21 Thread Noam Weissman
Dear,

I know what is AJAX and how it works … you did not answer my questions?

BR,
Noam.

From: lwip-users [mailto:lwip-users-bounces+noam=silrd@nongnu.org] On 
Behalf Of Erkan Ersoy
Sent: Wednesday, September 21, 2016 4:52 PM
To: Mailing list for lwIP users
Subject: Re: [lwip-users] Dynamic page updation using Ajax-Issue

You can do that with ajax (javascript) using get method then update value in 
web page with javascript

On Wednesday, September 21, 2016 3:45 PM, Noam Weissman 
> wrote:

Hi,

384K of RAM is a lot. I run a WEB server on a micro with 96K when only 8K was 
for LwIP.

Do you have sufficient PCB's defined for multiple connections ?...

Are you using RAW API ?... Server code is your own or based on something from 
the net ?

BR,
Noam.

-Original Message-
From: lwip-users 
[mailto:lwip-users-bounces+noam=silrd@nongnu.org]
 On Behalf Of ece.kishor
Sent: Wednesday, September 21, 2016 1:02 PM
To: lwip-users@nongnu.org
Subject: [lwip-users] Dynamic page updation using Ajax-Issue

I am developing an embedded web server using lwip. My requirement is to 
dynamically update the value in browser without refreshing the whole web page. 
I am using a processor from atmel named SAME70Q21 having onboard RAM of 384 KB. 
When the server is live and running, when multiple number of PCs’
give web requests, server fails to respond.
Is their any solutions for fix this problem?
Has this issue got any connection with RAM memory?
Any link or updates will be helpful to me.



--
View this message in context: 
http://lwip.100.n7.nabble.com/Dynamic-page-updation-using-Ajax-Issue-tp27374.html
Sent from the lwip-users mailing list archive at Nabble.com.

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] Dynamic page updation using Ajax-Issue

2016-09-21 Thread Sergio R. Caprile

> I am developing an embedded web server using lwip.
[...]
> When the server is live and running, when multiple number of PCs’
> give web requests, server fails to respond.
> Is their any solutions for fix this problem?

yes, fix your web server... ;^)
Are we understanding each other ? I mean, you say you are developing a 
web server, not that you are developing a web page with lwip's web 
server. Right ?
"server fails to respond"... can you be a little more specific ??? 
capture files, what function, what API, etc.


> Has this issue got any connection with RAM memory?

Well, if you are developing the web server, you are assigning RAM memory 
to connections in your application, you should know.
In any case, lwIP has builtin statistics, you should enable them and 
check where your memory is going.


I'm still wondering in which way your problem and lwIP are related to 
the subject of this thread. I suggest you describe your problem in terms 
of what version and what API you are using, how you interface your 
application with lwIP, what you expect, what you get and how it is 
different from expectations, if you have an OS, if you set lwIP to run 
on that framework, the number of connections you allow and some other 
memory related parameters you will find in your lwipopts.h file.


There is a web server running on the RAW API that is mostly capable of 
doing what you are supposedly wanting to do (that is some CGI script 
serving some real-life values, I mean, because you mentioned AJAX), and 
I have run a fork of it on 30K RAM without issues.




___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] Netconn vs. raw API performance

2016-09-21 Thread Sergio R. Caprile
Netconn has more overhead than the RAW API. In scenarios where the eth 
pipe is faster than the micro, this extra overhead means extra latency 
and so less thruput.

However, 2 seconds rtt is, how can I say it, a bit way too much ?
Having "problems" with more than 128 bytes per message is another 
indication that something in your port, or your netconn application, is 
not correct. If you suspect that netconn_write() takes too long, why 
don't you move a pin and time it ?
Perhaps you've found the priority bug again ? Try searching the list, or 
perhaps the task is scheduled too spaced apart ?


Your driver might be OK, and the port, since the RAW API apps seem to 
work OK, or it could just be that you think they run OK and they don't. 
A TCP echo can run smoothly on a really broken port, I've seen that, try 
something more real like a web server, for 1.4.1 it is in the contrib 
tree. Furthermore, if you will use an example, throw away vendor demos 
and get it off the contrib tree. For 2.0.0 the server is an app in the 
main tree.


PS: people is not struggling with lwIP and LPCs, they are struggling 
with ports and drivers not following lwIP guidelines.


___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users