3:03 pm
May 11, 2016
Hi guys,
I have made a lot of VI and a lot of Arduino project using LV but for "online" projects we can't use LV because an ethernet/network library is missing. right?
it is very frustrating because now IoT it is very actual.
does nomeone knows about an eth library or can help me to create one?
thanks
4:26 am
March 12, 2015
miche91 said
Hi guys,I have made a lot of VI and a lot of Arduino project using LV but for "online" projects we can't use LV because an ethernet/network library is missing. right?
it is very frustrating because now IoT it is very actual.
does nomeone knows about an eth library or can help me to create one?
thanks
An Ethernet Addon has been created and posted here:
12:23 pm
February 24, 2020
Hi Steffan.
Thank you for the Ethernet Addon.
I use a Arduino Uno R3 with HanRun HR911105A (14/32) Ethernet Shield (W5100).
I first deployed the "Web Server Example.vi" just changing DHCP to false and static IP to [192, 0, 1, 2].
The code works for ~1 minute, with updated values every 2nd second in Google Chrome.
Then suddenly the Arduino restarts.
After some trial and error I have discovered that this is an memory issue.
I have modified the Web Server Example to write "free RAM" to serial,
and for every refresh I can see that the amount of free RAM is decreasing.
When it gets below 200 the Arduino crashes and restarts automatically.
Attached is the modified VI, a png-screenshot of the block diagram and screenshot of the serial output.
PS: Had to ZIP the screenshots; "Upload file size exceeds maximum allowed size" 152 and 264 kB.
6:47 pm
March 12, 2015
NTNU-User said
Hi Steffan.Thank you for the Ethernet Addon.
I use a Arduino Uno R3 with HanRun HR911105A (14/32) Ethernet Shield (W5100).
I first deployed the "Web Server Example.vi" just changing DHCP to false and static IP to [192, 0, 1, 2].
The code works for ~1 minute, with updated values every 2nd second in Google Chrome.
Then suddenly the Arduino restarts.
After some trial and error I have discovered that this is an memory issue.
I have modified the Web Server Example to write "free RAM" to serial,
and for every refresh I can see that the amount of free RAM is decreasing.
When it gets below 200 the Arduino crashes and restarts automatically.
Attached is the modified VI, a png-screenshot of the block diagram and screenshot of the serial output.
PS: Had to ZIP the screenshots; "Upload file size exceeds maximum allowed size" 152 and 264 kB.
I believe I have fixed the issue. You can download the latest version here:
1:02 pm
February 24, 2020
Thank you for taking the time and effort to optimize the code! 🙂
I just downloaded your new version of the Ethernet addon, but now the Arduino restarts for every refresh in the web browser.
When using Web-Server-Example-1.vi i get this response in the Serial Monitor;
"Web Server address: 192.0.1.2
Free RAM: 1055
FrWeb Server address: 192.0.1.2
Free RAM: 1055
FrWeb Server address: 192.0.1.2
Free RAM: 1055
FrWeb Server address: 192.0.1.2
Free RAM: 1055
FrWeb Server address: 192.0.1.2
[...]"
8:05 pm
March 12, 2015
I think the issue had to do with some memory management issues with the Client object. Go ahead and try the latest version to see if it is resolved. It looks ok here.
11:35 am
February 24, 2020
Steffan said
I think the issue had to do with some memory management issues with the Client object. Go ahead and try the latest version to see if it is resolved. It looks ok here.https://www.geverywhere.com/et.....net-addon/
Thank you, Steffan! 😀 It works perfectly now!
10
1 Guest(s)