ethernet library | Arduino Compatible Compiler for LabVIEW Discussions | Forum

Avatar
Please consider registering
guest
sp_LogInOut Log In sp_Registration Register
Register | Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Feed Topic RSS sp_TopicIcon
ethernet library
May 14, 2017
3:03 pm
Avatar
miche91
Member
Members
Forum Posts: 35
Member Since:
May 11, 2016
sp_UserOfflineSmall Offline

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

January 13, 2020
4:26 am
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

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:

https://www.geverywhere.com/et.....net-addon/

February 24, 2020
12:23 pm
Avatar
NTNU-User
Member
Members
Forum Posts: 3
Member Since:
February 24, 2020
sp_UserOfflineSmall Offline

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. 

February 25, 2020
1:25 am
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Ok thanks for the modified VI. I will take a look and let you know what I find.

February 25, 2020
6:47 pm
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

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:

https://www.geverywhere.com/ethernet-addon/

March 5, 2020
1:02 pm
Avatar
NTNU-User
Member
Members
Forum Posts: 3
Member Since:
February 24, 2020
sp_UserOfflineSmall Offline

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
[...]"

March 9, 2020
8:05 pm
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

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/

March 11, 2020
11:35 am
Avatar
NTNU-User
Member
Members
Forum Posts: 3
Member Since:
February 24, 2020
sp_UserOfflineSmall Offline

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! 

March 12, 2020
4:42 am
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Good to hear.

Forum Timezone: UTC 0
Most Users Ever Online: 100
Currently Online:
28
Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
miche91: 33
scottj: 28
scadao: 23
Member Stats:
Guest Posters: 5
Members: 202
Moderators: 0
Admins: 3
Forum Stats:
Groups: 1
Forums: 2
Topics: 266
Posts: 1222
Newest Members:
pujacontrol
Administrators: geadmin: 22, filipealtoe: 96, Steffan: 356