chipKIT® Development Platform

Inspired by Arduino™

Problem with network shield

Created Sat, 13 Oct 2012 03:34:46 +0000 by drpap


drpap

Sat, 13 Oct 2012 03:34:46 +0000

I have a Max and have attached the network shield. I downloaded and installed the libraries as instructed in the readme file and have successfully 'compiled' the UDPSendReceive.pde

I can ping the max/shield combination at the command prompt, (i.e., ping shows a response, consistently), so I know the IP address is set correctly.

The problem is that it does not seem to be receiving packets beyond that. In other words, the code that responds back to an incoming packet never executes, even though I am sending packets to it.

I have used a sniffer to confirm that I am sending the appropriate udp packet to the right address and the right port.

Any suggestions would be appreciated; I hope that I a missing something obvious.

Thanks.


drpap

Sat, 13 Oct 2012 04:29:44 +0000

I traced it a bit more and it appears to be a problem specifically with UDP. The TCP client/server programs work fine, only the UDP example does not work. It seems to fail right at the beginning because the Udp.begin() function returns 0.

Has anyone managed to run the UDP class using the Max32 & Network shield?