Page 1 of 2
WiFi 5 click
From MikroElektonika Documentation
WiFi 5 click carries Gainspan’s GS1500M ultra low-power Wi-Fi module
with a PCB trace antenna (external IPX antenna connector also available).
GS1500M supports Wi-Fi PHY speeds of up to 72.2mbps. The module is
fully compliant with both IEEE 802.11b/g/n as well as with the
requirements of the Wi-Fi alliance. Security features include support for
WEP/WPA/WPA2, Adhoc and WPS (Wi-Fi protected setup). On the
hardware side, the GS1500M module comprises two ARM7 44MHz chips
(one for the radio, the other for applications), as well as on-chip Flash and
SRAM. WiFi 5 click communicates with the target MCU through the
mikroBUS™ UART interface (TX, RX), with additional functionality
provided by RST and Prog pins (the latter in place of default mikroBUS™
AN pin).
WiFi 5 click
Features and usage notes
Schematic also available in PDF (http://cdndocs.mikroe.com/images/3/33/WiFi_5_click_schemat
WiFi 5 click is a good
choice for hobbyists.
The Gainspan’s
GS1500M has features
on par with more
expensive WiFi
modules, but since it’s
no longer in production,
it’s not suitable for
prototypes intended for
serial production. WiFi
5 click is priced
accordingly.
The integrated firmware
provides Wi-Fi and
networking stack services (TCP/UDP/IP, HTTP, DNS, DHCP, SSL).
WiFi 5 click
IC/Module Gainspan GS1500M
(https://s3.amazonaws.com/site_support/uploads/document_upload/GS1500MPB.pdf)
Interface
UART (TX, RX), RST, Prog
Power
supply
3.3V
Website
www.mikroe.com/click/wifi-5 (http://www.mikroe.com/click/wifi-5)
The following security protocols are supported: WEP, 802.11i WPA/WPA2 Personal Security (AES and TKIP), Enterprise Security (EAP-FAST, EAP-TLS,
EAP-TTLS, PEAP).
Typical RF output power is 14dBm (802.11b), 12dBm (802.11n).
Note that GSM1500M is well suited for battery-powered applications due to its multiple power saving mode (standby, sleep, deep sleep)
Data rates of up to 921.6kbps can be achieved through the UART interface.
Programming
This snippet demonstrates WiFi5 click connecting to a local network (mikroe public) and fetches weather data from a web site.
1 void main()
2 {
3
// initialize the UART for monitoring the program
4
UART1_Init_Advanced( 9600, _UART_8_BIT_DATA,
5
_UART_NOPARITY,
6
_UART_ONE_STOPBIT,
7
&_GPIO_MODULE_USART1_PA9_10 );
8
Delay_ms(300);
9
UART1_Write_Text("Uart initialized\r\n");
10
Delay_ms(5000);
11
// initialize the UART for communication between the MCU and the WiFi 5 Click
12
UART3_Init_Advanced( 9600, _UART_8_BIT_DATA,
13
_UART_NOPARITY,
14
_UART_ONE_STOPBIT,
15
&_GPIO_MODULE_USART3_PD89);
16
17
Delay_ms(5000);
18
19
20
UART1_Write_Text("Uarts ready\r\n");
21
22
Delay_ms(1000);
23
24
// set up the UART interrupt
25
RXNEIE_USART3_CR1_bit = 1;
26
NVIC_IntEnable( IVT_INT_USART3 );
27
EnableInterrupts();
28
Page 2 of 2
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// clear the buffer and the flags, setting them ready for the program to start
clear_serial_buffer();
flags_false();
UART3_WRITE_TEXT("AT+WPAPSK=MikroE Public,mikroe.guest\r\n"); // compute the PSK from SSID and PassPhrase
while(response_finished == false);
// wait for the "OK" response
UART1_WRITE_TEXT(serial_buffer);
// print out the response
clear_serial_buffer();
flags_false();
Delay_ms(300);
UART3_WRITE_TEXT("AT+WA=MikroE Public\r\n");
while (response_finished == false);
// clear the buffer and flags
UART1_WRITE_TEXT(serial_buffer);
// Print out the response
clear_serial_buffer();
flags_false();
UART3_WRITE_TEXT("at+httpopen=api.openweathermap.org\r\n");
while (response_finished == false);
// open the api.openweathermap.org web page
// wait for the "OK" response
UART1_WRITE_TEXT(serial_buffer);
// print out the buffer
clear_serial_buffer();
flags_false();
// clear the buffer and the flags
// try to connect to MikroE Public network
// wait for the "OK" response
// clear the buffer and flags
Code examples that demonstrate the usage of WiFi 5 click with MikroElektronika hardware, written for mikroC for FT90x and ARM are available on Libstock
(http://libstock.mikroe.com/projects/view/1787/wifi-5-click).
Resources
- GS1500M product brief (https://s3.amazonaws.com/site_support/uploads/document_upload/GS1500M-PB.pdf)
- GainSpan product page (http://www.gainspan.com/products/gs1500m)docs
- Access the world wide web easily with WiFi 5 click (http://learn.mikroe.com/access-world-wide-web-easily-wifi-5-click/) – tutorial at learn.mikroe.com
- WiFi 5 click code examples on Libstock (http://libstock.mikroe.com/projects/view/1787/wifi-5-click)
- mikroBUS standard specifications (http://download.mikroe.com/documents/standards/mikrobus/mikrobus-standard-specification-v200.pdf)
Retrieved from "http://docs.mikroe.com/index.php?title=WiFi_5_click&oldid=322"
◾ This page was last modified on 19 May 2016, at 18:18.
◾ Content is available under Creative Commons Attribution unless otherwise noted.
http://docs.mikroe.com/index.php?title=WiFi_5_click&printable=yes
6/15/2016
很抱歉,暂时无法提供与“MIKROE-2274”相匹配的价格&库存,您可以联系我们找货
免费人工找货