Home
ZG2100S-03 Getting Started Guide_3 0
Contents
1. then you must specify the desired paraphrase in define MY DEFAULT PSK PHRASE Microchip 802 11 Secret PSK Password Note it will take about 30 to 45 seconds for the calculation to occur so allow more time to connect to the access point using this mechanism 7 roe The 4 Age of Wireless Connecting the Internet of Things Modifying the HTTP2 h file To modify the HTTP2 h file click on the file Program accordingly to allow you to either get to the board from the AP via your local LAN or from the Internet Modify the define HTTP PORT line according to the following To access board via the Internet use port 65000 define PORT 65000u Listening port for HTTP server define HTTP PORT 80u Listening port for HTTP server Note this also requires the AP to be programmed to use port forwarding to the board This will require knowledge of the IP address provided to the board Please see instructions for the AP To access board directly via access point and PC not going out to internet use port 80 define HTTP PORT 65000u Listening port for HTTP server define PORT 80 Listening port for HTTP server 7 roe The 4 Age of Wireless Connecting the Internet of Things Compiling Project Code PIP Demo App 0 PLAB ID File Edit View Project Programmer Tools Configure Window Help 5 Select the Clear Memory 1 MPLAB
2. Function Description CSN J2 1 RB2 SPI Chip Select asserted low SCK J2 3 RF6 SCK1 SPI Clock SDO J2 5 RF7 SDM E SPI Data Out from ZG2100M SDI J2 SPI Data In to ZG2100M 7 RF8 SDO1_E INT_NX J2 18 RE8 INT1 Interrupt signal from ZG2100M asserted low RST N J2 28 RF0 Master reset asserted low CE N J2 30 RF1 ZG2100M disable asserted low VDD 42 21 amp 42 22 3 3V power input Erasing EEPROM While doing debug if you notice that settings in code especially related to SSID name MAC roe The 4 Age of Wireless Connecting the Internet of Things address and the like are not taking effect then you may need to erase the EEPROM The value in EEPROM takes precedence over values that are defined in source code i e TCPIPConfig h To erase the EEPROM perform the following Make sure the development board is programmed and not in debug mode Disconnect the MPLAB ICD2 or MPLAB REAL ICE from the board Press and hold BUTTONO RD13 S4 on Explorer 16 and RB3 S5 on PICDEM net 2 Press and release the MCLR button Continue holding BUTTONO until several LEDs flash indicating the EEPROM has been cleared This takes about 4 seconds Alternatively if you have UART connected to the development board you should see the following output BUTTONO held for more than 4 seconds Default settings restored 6 Release BUTTONO 7 Press and release the MCLR button again to reset the software o
3. TCPIP WiFi Demo App C30 MPLAB IDE v8 15a File Edit View Project Debugger Programmer Tools Configure Window Help To program the code to your Dc imm SAJA device click on the Program Release Vici cs ODO amp is Target Device icon as shown Eu eT a5 e HWBP 4 0 4 0 SWBP No Support If successful you will receive the following message gt Output Build Version Control Find in Files MPLAB ICD 2 Programming Debug Vector Debug Vector Programming Configuration Bits Contig Memory Connecting to debug executive Programming succeeded 23 Dec 2008 12 09 46 MPLAB ICD 2 ready for next operation TCPIP WiFi Demo App C30 MPLAB IDE v8 15a File Edit View Project Debugger Programmer Tools Configure Window Help Click on Reset as shown 5 e low insi he bl ircle 7 below inside the blue circle Mei os Checksum 0 7245 v By 85 HW Used 0 Support TCPIP WiFi Demo App C30 MPLAB IDE v8 15a File Edit View Project Debugger Programmer Tools Configure Window Help T SAVAR Click as circled below Release Vici ot ll E Checksum 0 7245 b gt 8 85 HWBP 4 Used 0 5 No Support 7 roe The 4 Age of Wireless
4. Connect the USB cable from the ICD to the PC Power on the router WRT54G2 and connect to the Ethernet port of the PC to the Ethernet port of the router 7 roe The 4 Age of Wireless Connecting the Internet of Things Out of Box Demo Now that you have all the required hardware and software you are now ready to see a ZeroG demonstration MPLAB IDE 15 MPLAB IDE File Edit View 12 24 Debugger Programmer Tools Configure Window Help Open a project by going to 12 Project gt Open c Checksum m d Set Active Project gt The files displayed are located in a C Microchip Solutions TCPIP WiFi Build Configuration Demo App Build Options gt dd F j Jew File t Remove File From Project Select Language Toolsuite Set Language Tool Locations Version Control There are 3 project files TCPIP WiFi Demo App C18 Open this file if your Microchip board is using a PIC18 microcontroller TCPIP WiFi Demo App C30 Open this file if your Microchip board is using a PIC24 or the dsPIC microcontroller TCPIP WiFi Demo App C32 Open this file if your Microchip board is using a 2 microcontroller Select the TCPIP WiFi Demo App appropriate for your development board Set your AP to the following configuration not required with ZeroG purchased AP 7 roe The 4 Age of Wireless Connecting the Internet of Things AP
5. Connecting the Internet of Things Preparing and Using the Web Server Application Loading the web page onto the board The first time the application is running on the Microchip board and particularly if the served page has not been programmed into the project the following will be required The HTML pages are compiled into a file called MPFSImg2 bin This file needs to be programmed into the board Once the Microchip board is up and running with the WiFi PlCtail open a browser a machine on the same LAN and enter the following assumes DNS is used http mchpboard mpfsupload If DNS is not used then enter the URL directly as noted below http XXx xxx xxx xxx mpfsupload If port 65000 is used then enter the URL as noted below http XXX XXX XXx Xxx 65000 mpfsupload XXX XXX XXX XXX represents the board IP address assigned by the AP DHCP server this is displayed on the development board LCD screen When requested for the download file point to C Microchip Solutions TCPIP WiFi Demo App MPFSImg 2 bin Observe the board web page from the PC Use the following URL to view the demonstration web page from a PC browser http mchpboard requires the use of DNS Or http XXX XXX XXX XXx 65000 if using port 65000 Or http XXx xxx xxx xxx if using port 80 Debug Port To assist in bring up serial data is output on the RS232 port on the Microchip 7 roe The 4 Age of Wireless Connecting the Internet of
6. Microchip website see link listings at end of this document 1 MPLAB C Compiler for PIC24 v3 11 b 60day free trial available see link listings 2 MPLAB C Compiler for PIC18 v3 20 upgrade 6 Microchip development environment 1 Microchip MPLAB IDE v8 15 or later see link listings for download information 7 802 11 access point B BG or BGn 1 Linksys WRT54G or WRT54G2 is recommended Microchip hardware may be acquired from http www microchipdirect com 7 roe The 4 Age of Wireless Connecting the Internet of Things Software This guide has sections on installing the Microchip SDK and TCP IP stack the Microchip MPLAB IDE and the necessary changes to configure the demo software for networks with different characteristics than the default settings Please check on http www microchip com for the latest information on installation of Microchip tools Also any Microchip documentation that comes with the tools takes precedence over this guide The ZGS2101 software has three ways of configuring for networks This guide documents the most basic method which is to hard code the data into the source code The software uses C calls to modify the values in variables used to keep the configurations The customers application code can thus create a user interface that allows scanning for networks and then configuring based on the end users selection As an example of using the variables the projects have a number of source files to
7. RON 7 roe The 4 Age of Wireless Connecting the Internet of Things Other Info Please refer to the web sites http www microchip com tcpip http www microchip com Ethernet http www zerogwireless com Microchip IDE v8 15 or later http www microchip com stellent idcplg ldcService SS GET PAGE amp nodeld 1406 amp dDoc Name en019469 amp part SW007002 MPLAB C Compiler for PIC24 v3 11 b Student edition w 60day free trial http www microchip com stellent idcplg ldcService SS GET PAGE amp nodeld 1406 amp dDoc Name en535364 MPLAB C Compiler for PIC18 v3 20 http www microchip com stellent idcplg ldcService SS GET PAGE amp nodeld 1406 amp dDoc Name en010014 HEX keys can be converted from ASCII paraphrases in advance using various on line calculators Example http www speedquide net Look under broadband tools WPA WPA2 Keys be created from your SSID and paraphrase using on line calculators Example http www wireshark org tools wpa psk html Note The Microchip name logo PlICtail and PICDEM are registered trademarks of Microchip Technology Incorporated 7 roe The 4 Age of Wireless Connecting the Internet of Things Federal Communication Commission Interference Statement This equipment has been tested and found to comply with the limits for a Class B digital device pursuant to Part 15 of the FCC Rules These limits are designed to provide reasonable protection against h
8. Things development board during power up The following describes how to utilize this function and what to look for during proper operation Listening Using Hyperterminal Type the name of a program Folder document or Internet resource and Windows will open it For you vpertrm exe Open HyperTerminal using Run Cancel Browse Connection Description New Connection Enter a name for the new Enter a name and choose an icon for the connection connection and click Zero Icon zero Connecting the Internet of Things The 4 Age of Wireless Select COM1 as the listening port Note that this port may by different on your PC Verify the appropriate RS232 port name for your setup Connect To S Zero Enter details for the phone number that you want to dial Country region United States 1 Area code Penne Connect using KR SE COM1 Properties Settings Follow settings and click Bits per second Parity None Stop bits Flow control Apply Ze roe The 4 Age of Wireless Connecting the Internet of Things When the Wi Fi amp device is running successfully you will see the following screen on HyperTerminal ZEROG2 HyperTerminal File Edit view Cal Transfer Help Dg 53 DA Demo v2 1 TCPStack v4 52 Starting AP connection Connected to AP New IP Address 1
9. allow run time configuration of the networks select adhoc vs infrastructure change SSID change security methods and keys These files are located in the ZG2100 project directory viewed from within MPLAB IDE and are ZGConsole c ZGConsolelfconfig c ZGConsolelwcontig c ZGConsolelwpriv c ZGConsoleMsgHandler c and ZGConsoleMsgs c This example code creates a very powerful run time command line interface for modifying all attributes of the wireless network The interface is accessed via a terminal connected to the RS232 port of the Microchip development board The use of these tools are not detailed in this document but can be found in the ZGS2101 CLI Usage Document 7 roe The 4 Age of Wireless Connecting the Internet of Things Getting Started With Microchip Software Software Items to Install The list of software items to install includes the following 1 Microchip MPLAB Integrated Development Environment v 8 15 or later 2 Microchip MPLAB C Compiler 3 Microchip In Circuit Debugger ICD 2 or ICD 3 Driver 4 Microchip TCPIP Stack Installer Installing the Microchip MPLAB IDE v 8 15 or Later Open web browser and go to hitp www microchip com stellent idcplg ldcService SS_GET_PAGE amp nodeld 1406 amp dDocName en019469 amp part SW007002 Go to the bottom of the page for the software download link Click to save the file setup Extract the zip Open the folder containing the PY Launche
10. pinging define STACK USE ICMP CLIENT Configuring the MAC Address There are three different sources for the MAC address There is a built in MAC address on the ZeroG module that is preprogrammed from the factory with the ZeroG OUI The second source is from the programmed code image The third source is from a value that s stored in EEPROM At runtime a data structure APP CONFIG is created in RAM which stores the valid MAC address to be used for that session The code will check to see if there is a valid EEPROM APP CONFIG data structure If so the EEPROM MAC address will be used 7 roe The 4 Age of Wireless Connecting the Internet of Things If there is no valid APP CONFIG information in EEPROM then the value programmed in TCPIPConfig h will be used If the value in the source code is 00 04 A3 00 00 00 then this will instruct the code to fetch the MAC address stored inside the ZeroG module and use that pre programmed value Otherwise the actual value programmed in the source code will be used Note that when there is no valid information stored in EEPROM the code will automatically save either the ZeroG preprogrammed value or the value defined in the source code These values will be used for runs Also be very cautious when changing the MAC address when there is already a valid MAC address saved in EEPROM The EEPROM has highest priority and will always trump values stored in source code You will need to ei
11. 7 The 4 Age of Wireless CONNECTING THE INTERNET OF THINGS ZG2100S 03 ZEROG SYSTEM DEVELOPMENT KIT FOR WI FI PICTAIL USING PICDEM NET 2 AND EXPLORER 16 GSG 1023 REVISION 3 0 ur 7 roe The 4 Age of Wireless Connecting the Internet of Things Table of Contents G t ng Started EG i MET LC 2 cc KA 2 T 2 HardWare eee M 2 3 Getting Started With Microchip Software rera 4 Software Items t Install 4 Installing Microchip MPLAB IDE 8 15 or Later 4 Installing the Microchip MPLAB C COofpllet 4 Installing the Microchip In Circuit Debugger Driver 5 Installing the Microchip Stack cssssisisscacscasnceasananecansbecacanans Rd ere ch Sdn ue padre pep erm RU RR PRA BERE PARA ES 6 Special Install Updating Code Dro 08 6 Hardware Setup and s id entire URGERE RED 7 Cable Connection MEME anaien 7 Out of BOX DEMO mM c 8 Fide cg E m UT Tr 9 Examp
12. 92 168 1 65 New IP Address 192 168 1 103_ Connected 0 07 27 Auto detect 19200 8 N 1 SCRO CAPS NuM Capture Print echo In the display above 192 168 1 65 is the default static IP address that the ZeroG radio starts with and 192 168 1 103 is the DHCP IP address provided by the router once connection was made The IP address of the radio is now 192 168 103 for this connection zero Connecting the Internet of Things The 4 Age of Wireless Microchip Development Board Specifics PICDEM NET 2 Usage If you have a PICDEM NET 2 board please follow the instructions here If you are using an Explorer16 board please skip this section Signal Connection PICtail note connector J1 on PICTail Function y o Pin Description CSN J1 24 RC2 SPI Chip Select asserted low SCK J1 12 RC3 SPI Clock SDO J1 10 RC4 SPI Data Out from ZG2100M SDI J1 8 RC5 SPI Data In to ZG2100M INT_NX 41 27 Interrupt signal from ZG2100M asserted low RST_N J1 25 RB1 Master reset asserted low CE N J1 23 RB2 ZG2100M disable asserted low VDD 41 26 5V power input Explorer 16 Usage If you have an Explorer16 board please follow the instructions here If you are using a PICDEM NET 2 board please skip this section Explorer 16 Connection PICtail Plus note male connector J2 on PICtail is f emale connector J5 on Explorer 16
13. Exposure Statement Kor dU CPU DH NE 24 End Prod ct Eo oiim 25 Manual Information That Must be Included 0 nee nennen nnne esee nne 25 7 roe The 4 Age of Wireless Connecting the Internet of Things Getting Started Guide Overview The Wi Fi PICtail PICtail Daughtercard Board is 802 11B demonstration board for evaluating the ZeroG Wireless ZG2100 Wi Fi controller on a Microchip Technology s processing platform t is an expansion board compatible with the Explorer 16 and PICDEM NET 2 development boards Features ZG2100 Wi Fi controller fully integrating 802 11B MAC and RF PHY requirements Power regulator to enable use on 3 3V or 5V development boards PICtail and PlCtail Daughter Board connection interface Hardware The following items are required for development or evaluation of the Microchip based ZeroG 802 11 solution WARNING The boards in this kit are highly sensitive to electrostatic discharge ESD Please ground yourself at all times while in contact with the boards 1 ZG2100PCB Wi Fi PICtail 2 Microchip Hardware Development board one of the following 1 Explorer16 PIC24 dsPIC or PIC32 depending on personality module 2 PICDEM Net2 PIC18 3 Microchip ZeroG Software driver and integrated Microchip stack available on disk v4 52 or later 4 Power supply 9v 300mA 5 C compiler downloadable from
14. Fi PiCtail Power Jumper J3 Cable connection Wi Fi PICtail Power Jumper The Explorer16 has a PlICtail V connector and the PICDEM net 2 board has a PICtail connector The Wi Fi amp PICtailTM PICtailTM Daughtercard should be inserted into either the top most socket of J5 on the Explorer16 board or the PICDEM NET 2 board The jumper J3 on the Wi Fi PICtail is the power jumper and it must be configured appropriately depending on which platform is selected as shown in Figure 1 For the PICDEM net 2 board place the jumper across pins 2 and 3 For the Explorer 16 board place the jumper across pins 1 and 2 J3 Power jumper 3 e PICDEM net 2 2 J configuration 4 16 configuration Figure 1 Configuring the J3 jumper on the Wi Fi PICtail Cable Connection WARNING The boards in this kit are highly sensitive to electrostatic discharge ESD Please ground yourself at all times while in contact with the boards Plug the PlCtail into the Microchip development board Explorer 16 or PICDEM net 2 making sure that the ZeroG Wi Fi amp module is facing the microcontroller Connect the RJ25 cable grey phone cable to the RJ25 port on the development board to the ICD Connect the serial cable to the serial port UART port of the development board and to the serial port COM port on the PC Typically the default port on the PC is COM 1 but this default number may differ from PC to PC
15. ICD 2 appropriate ICD tool Release G un 2 MPLAB ICE 4000 MPLAB ICD 2 3 MPLAB SIM sh own Checksum 0 72 ia ES 4 MPLAB ICE 2000 S 5 REAL ICE 7 MPLAB 3 e 4 in gt 8 PIC32 Starter Kit ese WiFi Demo Ap 9 Starter Kits Rrraknnints TCPIP WiFi Demo App C30 MPLAB IDE v8 15a File Edit view 272 Debugger Programmer Tools Confic Project Wizard New Compile the code by selecting Build All Open Close as shown Checksum Set Active Project DD 1 Quickbuild no file By De 224 Clean Export Makefile TCPIP WiFi D Build All Ctri F10 i Build Configuration G Sour guild Options gt Li If the build is successful you will receive a message BUILD SUCCEEDED similar to the one below Output x Build Version Control Find in Files MPLAB ICD 2 Executing CAProgram Files Microchip MPLAB C30 bin pic30 bin2hex exe Solutions TCPIP WiFi Demo Loaded CAMicrochip Solutions TCPIP WiFi Demo App TCPIP WiFi Demo App C30 cof Release build of project C Microchip SolutionsXT CPIP WiFi Demo App TCPIP WiFi Demo App C30 mcp succeeded Tue Dec 23 12 04 01 2008 BUILD SUCCEEDED The 4 Age of Wireless zero Connecting the Internet of Things
16. Setup for Demo The demonstration will work with an access point configured as follows SSID MicrochipDemoAP Security none Channel 1 DHCP on Advanced settings if having difficulty Basic rate Default 1 amp 2Mbps if having trouble with default Router starting address 192 168 1 1 DHCP starting address 192 168 1 100 DHCP leases 20 For out of box demo go to Compiling Project Code You do not need to change any settings in the code if you use the AP settings above 7 roe The 4 Age of Wireless Connecting the Internet of Things Example Application Code Development There are 2 files that need to modify in order to change the SSID RF channel MAC address security and certain services DHCP DNS PORT and ICMP These files are TCPIPConfig h located under Header Files HTTP2 h located under Header Files TCPIP Stack Modifying the TCPIPConfig h file Click on the TCPIPConfig h file Make sure that the SSID on the file matches the SSID on the router The default SSID is the MicrochipDemoAP Modify the red text in order to change the SSID define MY DEFAULT SSID NAME MicrochipDemoAP If the AP has DHCP enabled make sure the following line is commented out as shown below normally you want to use DHCP from the AP define STACK USE DHCP SERVER Optional By default any other device on the local network can ping the Microchip development board Comment the line out to disable
17. armful interference in a residential installation This equipment generates uses and can radiate radio frequency energy and if not installed and used in accordance with the instructions may cause harmful interference to radio communications However there is no guarantee that interference will not occur in a particular installation If this equipment does cause harmful interference to radio or television reception which can be determined by turning the equipment off and on the user is encouraged to try to correct the interference by one of the following measures Reorient or relocate the receiving antenna Increase the separation between the equipment and receiver Connect the equipment into an outlet on a circuit different from that to which the receiver is connected Consult the dealer or an experienced radio TV technician for help FCC Caution To assure continued compliance example use only shielded interface cables when connecting to computer or peripheral devices Any changes or modifications not expressly approved by the party responsible for compliance could void the user s authority to operate this equipment This device complies with Part 15 of the FCC Rules Operation is subject to the following two conditions 1 This device may not cause harmful interference and 2 this device must accept any interference received including interference that may cause undesired operation FCC Radiation Exposure Statement This equi
18. he Found New When attaching the USB cable the OS ERI should automatically detect the new hl esc alll alt ale eel d he Wii pdate Web site with your permission hardware and issue a pop up a screen asking you to install the driver Can Windows connect to Windows Update to search for DO NOT USE THE WINDOWS software RECOMMENDED DRIVER 5 4 time connect a device No not this time Follow the instructions provided by Microchip Cick Next to continue in their ICD Getting Started Guide Y 7 roe The 4 Age of Wireless Connecting the Internet of Things Installing the Microchip TCPIP Stack Open the ZeroG CD that came with your System Development Kit Click on Microchip TCPIP Stack Installer This will install the Microchip Solutions folder containing several Microchip projects on the PC s CA drive TCPIP Stack v4 52 Installer Special Install Updating Code Drops If you are installing an update to a previous install and do not have an installer program ensure you follow the following instructions e Install the Microchip folder into C Microchip Solutions rewriting the previous folder e Install any new or updated project files directly into C Microchip Solutions V roe The 4 Age of Wireless Connecting the Internet of Things Hardware Setup and Configuration The list of hardware items to setup includes the following Wi
19. her than the first you must copy them from the router entry table Using WPA WPA2 PSK define MY DEFAULT ENCRYPTION TYPE kKeyTypePsk if you want to use WPA or WPA2 PSK define MY DEFAULT PHRASE Microchip 802 11 Secret PSK Password The default WPA WPA2 PSK key is Microchip 802 11 Secret PSK Password Note that the passphrase is case sensitive and spacing is important To translate this text into the appropriate hex key please go to this link http www wireshark org tools wpa psk html Modify the red text to change the key the default PSK key in TCPIPConfig h will match the passphrase given above define MY DEFAULT 0 86 0xC5 0x1D 0x71 OxD9 0x1A OxAA 0x49 0x40 0 8 0x88 0xC6 0 9 0x7A 0x4A OxD5 OxE5 0x6D OxDA 0x44 Ox8E OxFB 0 9 0x0A OxE1 0x47 0x81 0x52 0x31 0 1 0x13 0x7C Using Passphrase for ZeroG Chip to Create WPA WPA2 Key If you are using WPA or WPA2 type security you may use the ZG210x radio to calculate the security key This process involves combining the paraphrase with the SSID to create a unique key of which a portion is actually used as the initial key for authentication This is a complicated process but can be offloaded to the ZeroG if connection time is not a concern define MY DEFAULT ENCRYPTION TYPE kKeyTypeCalcPsk if you want to ask the ZeroG chip to calculate the key from a passphrase If you use the calculate key option in
20. le Application Code Development 10 HTTP2 h located under Header Files TCPIP 10 Modifying the TCPIPConfig h file 10 Configuring the MAC Address edet nri Men Eh NE ESEE IREA 10 CES 11 12 MYST 12 Usine Wy PAY Wy 13 Using Passphrase for ZeroG Chip to Create WPA WPAQ2 Key 13 Moditymg the HTTP2 CUL NT 14 15 Preparing and Using the Web Server Application 17 Loading th web Page onto WS board 17 Observe the board web page from the PC 17 Debug Port 17 Micro hip Deyelopment Board SDODITIOS sumit 21 PICDEM NET ae eee 21 Explorer 16 c 21 Erasing EEPROM 21 nq 23 Federal Communication Commission Interference Statement esee 24 FCC Radiation
21. pment complies with FCC radiation exposure limits set forth for an uncontrolled environment This equipment should be installed and operated with minimum distance 20cm between the radiator amp your body This transmitter must not be co located or operating in conjunction with any other antenna or transmitter This device is intended only for OEM integrators under the following conditions 1 The antenna must be installed such that 20 cm is maintained between the antenna and users and 2 The transmitter module may not be co located with any other transmitter or antenna As long as 2 conditions above are met further transmitter test will not be required However the OEM integrator is still responsible for testing their end product for any additional compliance requirements required with this module installed for example digital device emissions PC peripheral requirements etc IMPORTANT NOTE In the event that these conditions cannot be met for example certain laptop configurations or co location with another transmitter then the FCC authorization is no longer considered valid and the FCC ID cannot be used on the final product In these circumstances the OEM integrator will be responsible for re evaluating the end product including the transmitter and obtaining a separate FCC authorization Ze roe The 4 Age of Wireless Connecting the Internet of Things End Product Labeling This transmitter module is authorized only for
22. r extracted files and click on the setup file to install Follow default settings for the installation Restart the computer once the installation is complete Installing the Microchip MPLAB C Compiler The C Compiler you need to install depends on whether you are using a Microchip PIC 18 or a PIC24 If you are using a PICDEM net 2 board then a PIC 18 If you are using an Explorer 16 board then you have PIC24 Please install the appropriate compiler To download the PIC18 MPLAB C Compiler open a web browser and go to hitp www microchip com stellent idcplg ldcService SS_GET_PAGE amp nodeld 1406 amp dDocName en010014 7 roe The 4 Age of Wireless Connecting the Internet of Things Click on the student version of the compiler link e g MPLAB C Compiler for PIC18 v3 22 Student Edition Click on Save File To download the PIC24 MPLAB C Compiler open a web browser and go to http www microchip com stellent idcplg IdcServicez8S GET PAGE amp nodeldz1406 amp dDocNamezen535364 Click on the student version of the compiler e g MPLAB C Compiler for PIC24 v3 11 b Student Edition Install the C Compiler Use all default settings for the installation process Installing the Microchip In Circuit Debugger Driver Setup the hardware as described in the Hardware Setup section Plug in the USB cable from the ICD to your peser PC Welcome to t
23. ther erase the EEPROM completely or program a different value through the Wi Fi demo configuration page If you need to completely erase the EEPROM please see the section Erasing EEPROM on page 21 at the end of the guide Optional Change the MAC address The default MAC address shown is 00 1 0 00 00 FF Modify the parameters in red if you wish to change the MAC address to a specific value NOTE each ZeroG radio module comes with a pre programmed unique MAC address it is not the default value in the code In order define MY DEFAULT BYTE1 0x00 define DEFAULT MAC BYTE2 0 1 define MY DEFAULT 0xCO define MY DEFAULT MAC BYTE4 0x00 itdefine MY DEFAULT 5 0x00 define MY DEFAULT MAC BYTE6 OxFF Configuring for Security Select security Modify the define statement in TCPIPConig h to match the AP security configuration that is in use Choices include none WEP WPA WPA2 PSK or to have the ZeroG chip calculate the WPA WPA2 key from a passphrase 7 roe The 4 Age of Wireless Connecting the Internet of Things Disable Security define MY DEFAULT ENCRYPTION TYPE kKeyTypeNone if you don t want to use a security key Using WEP define MY DEFAULT ENCRYPTION TYPE kKeyTypeWep if you want to use define MY_DEFAULT_WEP_KEY_INDEX 0 define MY DEFAULT WEP KEY LEN kZGWEPKeyLenShort kZGWEPKeyLenLong This is filled o
24. use in device where the antenna may be installed such that 20 cm may be maintained between the antenna and users for example access points routers wireless ADSL modems and similar equipment The final end product must be labeled in a visible area with the following Contains FCCID W70ZG2100 ZG2101 Manual Information That Must be Included The user s manual for end users must include the following in formation in a prominent location IMPORTANT NOTE To comply with FCC RF exposure compliance requirements the antenna used for this transmitter must be installed to provide a separation distance of at least 20 cm from all persons and must not be co located or operating in conjunction with any other antenna or transmitter zero Connecting the Internet of Things Revision History The 4 Age of Wireless Document ID GSG 102 03 Title 2652101 ZeroG System Development Kit for Wi Fi PICtail using PICDEM net 2 and Explorer 16 Revision History 1 01 Initial Revision 2 02 Revised for General release code 203 Updated address default settings Added Erasing EEPROM section on Microchip development boards 2 1 Match defines to latest v4 0 of Microchip TCP IP stack 3 01 Initial match to latest v5 0 of Microchip TCP IP Stack
25. ut for a short key of 5 bytes For a long key each key should be 13 bytes The active or default key 1 of 4 is selected with the KWepKeyID and is selected as one of 0 1 2 3 Modify the red text in either of the following defines depending on the WEP key length above to change the key define MY_DEFAULT_WEP_KEYS SHORT 0x00 0x01 0x02 0x03 0x04 0x10 0x11 0x12 0x13 0x14 0 20 0 21 0 22 0 23 0 24 0x30 0x31 0x32 0x33 0x34 itdefine MY DEFAULT WEP KEYS LONG 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0A 0x0B 0x0C 0x10 0x11 0x12 0x13 0x14 0x15 0x16 0x17 0x18 0x19 0x1A 0x1B 0x1C 0x20 0x21 0x22 0x23 0x24 0x25 0x26 0x27 0x28 0x29 0x2A 0x2B 0x2C 0x30 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38 0x39 0x3A 0x3B 0x3C Note often a passphrase is used with WEP A router will convert the passphrase into Hexidecimal format for the first key denoted 1 or default in the router and selected as kWepKeyID 0 The router will use an algorithm for the second through fourth keys that may not be consistent between routers of different makes The ZeroG code requires the explicit entry of the Hex keys If you only know the passphrase you can get the default or first key by converting the ASCII passphrase to Hex Sites like http www speedquide net have tools to do this see appendix of 7 roe The 4 Age of Wireless Connecting the Internet of Things this document For keys ot
Download Pdf Manuals
Related Search
Related Contents
TP-Link CPE210 User Guide Manhattan Silhouette 300i – 300p Ultimate 300B amplifiers 取扱説明書 取扱説明書 - 日東工業株式会社 N-TEC Samsung Impresora Ediciones CPG Aardvark LETTERHEAD - Laycock Systems, Inc Copyright © All rights reserved.
Failed to retrieve file