WiFi WL_NO_SHIELD Errors

Hi All,

I've posted this issue in the communication protocol forum, but no response yet. So I thought I'd try here. Udp send/receive errors - Networking, Protocols, and Devices - Arduino Forum

I'm using the Uni WiFi Rev 2 to do some Udp communications with a PC running some visual basic code. Every now and then the Uno stops communication (no receiving or sending). I've added some recovery functions to the PC and the Uno code, and the system at least recovers from this issue. For the Uno, this involves stopping the Udp and then Wifi, and then reinitializing them, but this takes about 6s to reconnect.

I've instrumented the Uno code, and when communications is lost the Uno WiFi.status() is reporting a WL_NO_SHIELD errors. I assume this means that the WiFi chip is not detected or there is some issue with it. Any ideas what could be causing this?

My code is attached to the original topic. I've got three of these boards and I've seen the issue on all of them.

Any help is greatly appreciated.

-Jim

Hi,

I added a 100ms delay to my main loop, and this appears to have cleared up this issue. I guess I was hammering the WiFi interface too fast (Udp.parsePacket()) , and maybe causing some problem with it. I ran the system overnight and don't see any losses of communications or recovery action.

Not sure why this would happen if you call a function in rapid succession. The delay is minimal and won't affect performance significantly.