Scheda TecnicaSommarioPreface7Chapter 1. Getting Started with MRF24WB0MA/B or MRF24WG0MA/B131.1 Overview131.2 Scope131.3 Hardware131.4 Software141.5 References141.6 Common Terms and Definitions151.7 Local Network Topologies161.7.1 Infrastructure Basic Service Set (BSS)16Figure 1-1: Infrastructure BSS Network161.7.2 Independent BSS (IBSS) or Ad hoc Network17Figure 1-2: IBSS or Ad hoc Network171.7.3 WiFi Direct (Peer-to-Peer (P2P)) Network18Figure 1-3: WiFi Direct (Peer-to-Peer P2P) Network181.7.4 SoftAP Network19Figure 1-4: SoftAP Network19Chapter 2. Hardware Setup and Configuration212.1 PICtail Setup21Figure 2-1: MRF24WB0MA/B or MRF24WG0MA/B Wi-Fi® PICtail™212.2 PICDEM.net 221Figure 2-2: PICDEM.net2 Development Board with MRF24WB0MA/B or MRF24WG0MA/B Wi-Fi® PICtail™212.3 Explorer 16 and PIC32 Starter Kit22Figure 2-3: Explorer 16 and PIC32 Starter Kit with MRF24WB0MA/B or MRF24WG0MA/B Wi-Fi® PICtail™222.4 Connecting the Development Board222.5 Wireless Access Point (AP) Setup232.5.1 Accessing the AP Configuration Pages23Figure 2-4: Access Point Login232.5.2 Main AP Configuration Page24Figure 2-5: AP Configuration Page242.5.3 Setting up the Wireless AP25Figure 2-6: Wi-Fi Protected Setup (WPS)25Figure 2-7: Basic Wireless Setup262.6 Serial Monitor Setup272.6.1 To Set up Serial Monitor27Figure 2-8: Starting HyperTerminal from Run Dialog27Figure 2-9: HyperTerminal Name Setup27Figure 2-10: COM Port Connection28Figure 2-11: COM Communication Settings28Chapter 3. Software Setup and Configuration293.1 Software Items to Install293.2 Installing the Microchip MPLAB® X IDE293.3 Installing the Microchip MPLAB® XC/C18 Compiler293.4 Installing the Microchip TCP/IP Stack with MRF24WB0MA/B or MRF24WG0MA/B Wi-Fi® Driver303.5 Installing Interim Code Releases303.5.1 To Install the Interim Code30Chapter 4. Sample Application Demonstrations314.1 Basic Demonstration Applications314.1.1 TCPIP – Demo App314.1.2 TCPIP – WiFi Console324.1.3 TCP/IP – WiFi EZConfig324.2 Walkthrough and Instructions on Running the Demonstration324.3 Opening Existing Projects334.3.1 To Open an Existing Project33Figure 4-1: Open an Existing MPLAB Project33Figure 4-2: Open Project Dialog334.4 Hardware Configuration Options34Figure 4-3: HWP EX16_MRF24W XC32.h SPI Options344.5 Compile-Time Configuration Options354.5.1 SSID35Figure 4-4: Modifying SSID354.5.2 Static IP Address364.5.2.1 To Enable the use of a Static IP Address36Figure 4-5: Disable Auto IP and DHCP Client36Figure 4-6: Setting up Static IP Address374.5.3 MAC Address384.5.4 Channel Configuration38Figure 4-7: Channel Setup394.5.5 Ad hoc Network Configuration40Figure 4-8: Source Code Ad hoc Settings404.5.6 WPS Connection Method40Figure 4-9: WPS and Security Methods414.5.7 Wireless Security414.5.7.1 Wired Equivalent Privacy (WEP)414.5.7.2 Setup Access Point for WEP42Figure 4-10: 64-bit WEP Security Setup42Figure 4-11: 128-bit WEP Security Setup424.5.7.3 Setup Source Code for WEP43Figure 4-12: Source Code for WEP Security Setup434.5.8 WPA/WPA2434.5.8.1 To Set up AP for WPA/WPA2 Personal44Figure 4-13: WPA Personal Security Setup44Figure 4-14: WPA2 Personal AES Security Setup444.5.9 Setup Source Code for WPA/WPA2454.5.9.1 On-the-Fly PSK Calculation45Figure 4-15: Source Code Calculate PSK Setup454.5.9.2 Pre generated PSK46Figure 4-16: WPA PSK Generation464.6 Compiling and Downloading Images47Figure 4-17: PIC Microprocessor and Compiler-Development Board-PICtail Combination47Figure 4-18: Project Properties Icon47Figure 4-19: Change Device Type48Figure 4-20: Debug Project49Figure 4-21: Build Successful. Loading Completed.49Figure 4-22: Successful Programming504.7 Running TCP/IP – Demo App514.7.1 Network Type: CFG_WF_INFRASTRUCTURE51Figure 4-23: Infrastructure Network Environment Setup51Figure 4-24: Development Board Serial Output Display: Infrastructure Network Type52Figure 4-25: Web Server Image Upload (Computer 2)52Figure 4-26: Web Server Image Upload Successful (Computer 2)53Figure 4-27: TCPIP – Demo Application (Computer 2)54Figure 4-28: TCPIP – Demo Application: Toggling LEDs and LCD (Computer 2)55Figure 4-29: TCPIP – Demo Application: LEDs and LCD on Development Board554.7.2 Network Type: CFG_WF_ADHOC56Figure 4-30: Ad Hoc Network Environment Setup56Figure 4-31: Development Board Serial Display: Ad Hoc Network Type57Figure 4-32: TCPIP – Demo Application: LEDs and LCD on Development Board57Figure 4-33: WiFi Networks Detected on Smart Device58Figure 4-34: Select Ad hoc Network on Smart Device58Figure 4-35: Web Browser on Smart Device (Ad hoc BSS)594.7.3 Network Type: CFG_WF_P2P60Figure 4-36: WiFi Direct Environment Setup60Figure 4-37: Development Board Serial Output Display: WiFi Direct Network Type61Figure 4-38: Smart Device WiFi Direct Mode Enabled61Figure 4-39: Smart Device Prompt to Accept or Reject Connection Request62Figure 4-40: Development Board Serial Output Display: WiFi Direct Connection Status62Figure 4-41: Web Browser on Smart Device (WiFi Direct Network)634.7.4 WPS Connection Method64Figure 4-42: WPS Environment Setup644.7.4.1 WPS Method: WF_SECURITY_WPS_PUSH_BUTTON64Figure 4-43: Development Board Serial Output Display: WPS Push Button65Figure 4-44: Access Point/Router WPS Push Button Method66Figure 4-45: Access Point/Router in Search Mode66Figure 4-46: Access Point/Router Found and Connecting to Development Board67Figure 4-47: Access Point/Router WPS Push Button Method: Successful Connection67Figure 4-48: Development Board Serial Output Display: WPS Push Button684.7.4.2 WPS Method: WF_SECURITY_WPS_PIN69Figure 4-49: Development Board Serial Output Display: WPS PIN Method69Figure 4-50: Access Point/Router WPS PIN Method70Figure 4-51: Access Point/Router WPS PIN Method: Successful Connection70Figure 4-52: Development Board Serial Output Display: WPS PIN Method714.8 Running the TCPIP – WiFi Console724.8.1 Installing iperf.exe72Figure 4-53: Installing Iperf.exe72Figure 4-54: Opening a Command Prompt from Run Dialog73Figure 4-55: Opening a Command Prompt from Programs Menu73Figure 4-56: Development Board Serial Output74Figure 4-57: HyperTerminal Window Ready75Figure 4-58: Using ipconfig to get PC IP Address754.8.2 ipconfig Command Details764.8.3 Testing Transmit Performance76Figure 4-59: Iperf Transmit Performance (PC – Server)76Figure 4-60: Iperf Transmit Performance (Development Board – Client)774.9 Running the TCPIP – WiFi EZConfig784.9.1 Network Type: CFG_WF_ADHOC78Figure 4-61: Ad Hoc Network Environment Setup78Figure 4-62: Press S3 Button on Explorer 16 Development Board to Reset Demo)79Figure 4-63: Development Board Serial Output Display: Reset Message79Figure 4-64: Development Board Serial Output Display: Successful Connection80Figure 4-65: Wireless Network Connection (Computer 2)80Figure 4-66: Web Server Image Upload (Computer 2)81Figure 4-67: Web Browser (Computer 2)82Figure 4-68: Web Browser (Computer 2): Configure Network and Scanning82Figure 4-69: Web Browser (Computer 2): List of Available Wireless Networks83Figure 4-70: Development Board Serial Output Display (Computer 1): Scan Results83Figure 4-71: Web Browser (Computer 2): Transition from Old (Ad hoc mode) to New (Infrastructure Mode) Network84Figure 4-72: Development Board Serial Output Display (Computer 1): New Network Info84Figure 4-73: Web Browser (Computer 2): Old Network IP Address85Figure 4-74: Web Browser (Computer 2): New Network IP Address854.9.2 Network Type: CFG_WF_SOFT_AP86Figure 4-75: SoftAP Environment Setup86Figure 4-76: Development Board Serial Output Display (Computer 1)87Figure 4-77: List of Available Wireless Network Connection (Computer 2)87Figure 4-78: ipconfig Wireless Network Connection Status (Computer 2)88Figure 4-79: Pinging Soft AP (Computer 2)88Figure 4-80: Web Browser (Computer 2)89Chapter 5. Microchip Development Board Specifics915.1 PICDEM.NET 2 Usage915.2 Explorer 16 Usage915.3 Erasing EEPROM92Appendix A. Appendix93A.1 Microchip Hardware93A.2 Microchip Software93A.3 MRF24WB0MA/B or MRF24WG0MA/B Wi-Fi® Resources93A.4 Tools93Worldwide Sales and Service96Dimensioni: 4,79 MBPagine: 96Language: EnglishApri il manuale