Experimental Drivers for Wiznet-based Ethernet Shields - Page 5 - Beta Firmware and Drivers - Netduino Forums
   
Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Experimental Drivers for Wiznet-based Ethernet Shields


  • Please log in to reply
89 replies to this topic

#81 Eduardo

Eduardo

    Member

  • Members
  • PipPip
  • 22 posts
  • LocationSão Paulo, Brasil

Posted 31 August 2011 - 12:23 AM

Could someone help me find where I am wrong?
I connected the shield in netduino, and the shield to my laptop, but the program, in debug, reach the first line:

SecretLabs.NETMF.Net.Wiznet5100 wiznet = new SecretLabs.NETMF.Net.Wiznet5100(SPI.SPI_module.SPI1, Pins.GPIO_PIN_D10);

but does not reach the second:

NetworkInterface networkInterface = NetworkInterface.GetAllNetworkInterfaces()[0];


Project attached.

Attached Files


O coração tem razões que a própria razão desconhece.

#82 elettrozero

elettrozero

    Advanced Member

  • Members
  • PipPipPip
  • 58 posts

Posted 31 August 2011 - 07:45 PM

So far library is working pretty well. Thank you a lot!! You saved a Netduino One and an Eth Shield. :D

#83 sir_alex

sir_alex

    New Member

  • Members
  • Pip
  • 4 posts
  • LocationMilano, Italy

Posted 24 May 2012 - 09:22 AM

Hi all,

I don't know if anyone is using these drivers, but because I am, I have found a bug in the UDP ReceiveFrom() and Available() methods in System.Net.Sockets.Socket class: in both cases, the driver tries to match the just received message header with the EndPoint passed as argument, which is wrong because in UDP you may receive messages from anyone without having connected to him before, so you may not know your connection partner before having received a message from him.
So the correct thing to do is to return the message without trying to match it, and at the same time filling the EndPoint (which is passed by reference) with the message header content.

Attached you can find the modified code, where I have commented out the matching parts and added the EndPoint filling (in ReceiveFrom()).

Alessandro

#84 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 24 May 2012 - 04:04 PM

Hi Alessandro, Thanks for the detective work and bug fix. Can you double-check your post and make sure that your attachment got attached? I just tried to download the modified code but there doesn't seem to be any :) BTW welcome to the Netduino community, Chris

#85 sir_alex

sir_alex

    New Member

  • Members
  • Pip
  • 4 posts
  • LocationMilano, Italy

Posted 24 May 2012 - 04:57 PM

Hi Chris, thanks for your welcome; sorry for the attachment mistake, I just realized I missed the "Attach this file" button, so I have attached it here! :)

Attached Files



#86 VladVictor

VladVictor

    New Member

  • Members
  • Pip
  • 5 posts

Posted 14 January 2013 - 12:55 PM

Can someone help me with an issue: i have a server somewhere which outputs data that comes through a port. So on the netduino i have a socket that connects send data and then disconnects. The delay between when i close the socket and reconnect again is very big like 3-4 seconds and i receive the data. I tested my server with a web browser and everything works ok, i can see the GET very fast. Here is a pastebin with my code : 

 

Best regards, Vlad



#87 Gutworks

Gutworks

    Advanced Member

  • Members
  • PipPipPip
  • 363 posts
  • LocationOttawa, Ontario

Posted 14 January 2013 - 06:37 PM

Can someone help me with an issue: i have a server somewhere which outputs data that comes through a port. So on the netduino i have a socket that connects send data and then disconnects. The delay between when i close the socket and reconnect again is very big like 3-4 seconds and i receive the data. I tested my server with a web browser and everything works ok, i can see the GET very fast. Here is a pastebin with my code : 

 

Best regards, Vlad

Hi VladVictor,

 

I don't have experience with Wiznet so I doubt I can provide much help. However, I'm having trouble understanding what your issue is. Is it that the Netduino is taking so long to connect to the socket or how long it's taking to receive the data? Also the pastbin link is missing. 

 

Cheers,

Steve



#88 VladVictor

VladVictor

    New Member

  • Members
  • Pip
  • 5 posts

Posted 15 January 2013 - 10:27 AM

For example i send 3 strings of data of variable length. The 1st string arrives at my server instantly but the 2nd and the 3rd ones arrive really late, like 4-5 seconds delay. The pastebin is here: http://pastebin.com/NGu8MT6D . Sorry for this issues. 

 

Best regards,

Vlad



#89 ameer_hesham

ameer_hesham

    New Member

  • Members
  • Pip
  • 2 posts

Posted 30 May 2013 - 03:02 PM

i have ethernet shield SD card and i want to save the analog reading from the arduino  and save it to text file and send this text file to web site ( web services )  so i want help !! 



#90 Jason.Net

Jason.Net

    Advanced Member

  • Members
  • PipPipPip
  • 41 posts

Posted 15 September 2013 - 12:07 PM

Wiznet based Arduino Shield working fine on the Ethernet.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.