Jump to content
  • 0

chipkit wifi TCP/IP stack


czepek88

Question

Hi, i have problem with by chipkit wf32 board. Currently i'm developing some app using Digilent Dewfck, deipck libraries.Im using board MRF wifi adpter. On board there is some I2C communication going on based on Wire lib. I put  i2c measurement in seperate Task..but i have some problem with wifi connection. My goal is to make tcp client wich connects to network when it is in range. When the connection goes down it should disconnect and always try to reconnect without error and without blocking other tasks. I changed reconnection mode in MRF24Adaptor.c  - WF_ReconnectModeSet(255, WF_ATTEMPT_TO_RECONNECT, 0, WF_ATTEMPT_TO_RECONNECT);. Iit works but only at the frst time, when i establish a link, and then disconnect, next connection attempt (at this time network is unavaible) returns error- but why? Shouldnt it attempt infinitely? The error is not a big issue, but to reconnect i need again to call deIPcK.wfDisconnect() wich freezes the board for abour 1s. During freeze the board is not executing its I2c task wich is critical for me. 

For connection I use function deIPcK.wfConnect(szSsid, szPassPhrase, &ipStatus)

This function return error during connection attempt IsIPStatusAnError(ipStatus)

Any ideas why my connection attempts return error, dispite my config WF_ReconnectModeSet(255, WF_ATTEMPT_TO_RECONNECT, 0, WF_ATTEMPT_TO_RECONNECT)?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...