OFF
MIKROE-1135
38 g
Status:
WiFi PLUS click is a compact solution for adding WiFi communication to your project. The click features MRF24WB0MA – 2.4GHz, IEEE std. 802.11 - compliant module from Microchip, as well as MCW1001 companion controller with on-board TCP/IP stack and 802.11 connection manager.
This product is no longer in stock
Availability date:
WiFi PLUS click is a compact solution for adding WiFi communication to your project. The click features MRF24WB0MA – 2.4GHz, IEEE std. 802.11 - compliant module from Microchip, as well as MCW1001 companion controller with on-board TCP/IP stack and 802.11 connection manager.
The combination of the MRF24WB0MA and MCW1001 results in support for IEEE Standard 802.11 and IP services.
WiFi PLUS click is designed to run on a 3.3V power supply. It communicates with the target MCU over an UART interface.
The MRF24WB0MA RF transceiver module contains integrated PCB antenna with range up to 400m.
MRF24WB0MA is a low-power, 2.4 GHz, IEEE 802.11-compliant, surface mount module with all associated RF components such as crystal oscillator, bypass and bias passives with integrated MAC, baseband, RF and power amplifier, and built-in hardware support for AES, and TKIP (WEP, WPA, WPA2 security).
The module has low power consumption modes. In sleep mode it uses 250 µA (typical), and while in hibernate mode the typical power consumption is only 0.1 µA.
The MCW1001A is a companion chip to the MRF24WB0 802.11 module. It provides simple socket based method of sending and receiving data from the MRF24WB0 802.11 module. The MCW1001A has an on-board TCP/IP stack and 802.11 connection manager to simplify the connection between a wireless network and the TCP/IP stack management.
Type | WiFi |
Applications | WiFi PLUS click does not use the memory resources of the target microcontroller for TCP/IP stack operations, which makes this module the best choice for wide range of different devices |
On-board modules | MRF24WB0MA, MCW1001 |
Key Features | Meets 2.4GHz, IEEE std. 802.11 standard. Integrated PCB antenna with range up to 400m |
Interface | GPIO,UART |
Compatibility | mikroBUS |
Click board size | M (42.9 x 25.4 mm) |
Input Voltage | 3.3V |
This table shows how the pinout on WiFi PLUS click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
The following function handles the UDP packet received from a wireless client.
01: void UDP_Handler() 02: { 03: int i; 04: unsigned short cnt; 05: response = Net_Wireless_MCW1001_SocketCreate( &socketHandle, _NET_WIRELESS_MCW1001_SOCKET_TYPE_UDP ); 06: if( response == _NET_WIRELESS_MCW1001_NO_ERROR ) 07: { 08: LCD_ClrLine(2); 09: Lcd_Out(2, 1, "Socket is OK"); 10: Delay_ms(600); 11: } 12: Net_Wireless_MCW1001_SocketBind( socketHandle, &localPort, &bindResult ); 13: if( bindResult < 254 ) 14: { 15: LCD_ClrLine( 2 ); 16: Lcd_Out( 2, 1, "Bind is OK" ); 17: Delay_ms( 600 ); 18: } 19: Net_Wireless_MCW1001_TimeToWait = 5; 20: response = Net_Wireless_MCW1001_UDP_SendBytes( socketHandle, remotePort, remoteIP, dat, strlen( dat ), &cntBytes ); 21: if( cntBytes == 8 ) 22: { // dat = "mikroErn"; strlen("mikroErn") = 8 23: LCD_ClrLine( 2 ); 24: Lcd_Out( 2, 1, "UPD Sent!" ); 25: } 26: Net_Wireless_MCW1001_TimeToWait = 2; 27: while( 1 ) 28: { 29: response=Net_Wireless_MCW1001_UDP_ReadBytes( &socketHandle, sizeof( dat ) ,&remotePort, remoteIP, &dat, &cntBytes ); 30: if( response == 0 ) 31: { 32: Lcd_Out( 1, 1, "Received: "); 33: cnt = 0; 34: if( cntBytes < 17 ) 35: { // All received data can be shown on single LCD line 36: Lcd_Chr( 1, 16, ' ' ); 37: dat[ cntBytes ] = 0; 38: } 39: else 40: { // Only 16 bytes of data will be displayed and echoed back 41: Lcd_Chr( 1, 16, '!' ); // Exlamation indicates ON LCD that recived data is too long for LCD line 42: dat[ 16 ] = 0; // Sting will be limited to 16 characters - adding zero teminaging character 43: } 44: LCD_ClrLine( 2 ); // Prepare line 2 for data display 45: Lcd_Out( 2, 1, dat ); // Show recived data 46: // Echo back the deta which is show on display 47: response = Net_Wireless_MCW1001_UDP_SendString(socketHandle, remotePort, remoteIP, dat, &cntBytes); 48: } 49: if( cnt++ > 2 ) 50: { 51: cnt = 0; 52: Lcd_Out( 1, 1, "I'm waiting... " ); 53: LCD_ClrLine( 2 ); 54: } 55: } 56: }
NOTE: Please be advised that any peripheral devices or accessories shown connected to the Click board™ are not included in the package. Check their availability in our shop or in the YMAN section below.