Home
AX220xx RS-232 to WiFi Reference Design User Guide
Contents
1. System Log 2011 1 11 17 54 14 Application starts successfully Step 6 Click Connect to make a TCP connection with the remote device server You will see the update of the Virtual Serial Port s status in both the Function Window and the Menu Window 30 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi Reference Design User Guide Virtual Port Network Virtual Port Network Configuration Device Management Connection Protocol Remote Host IP Remote Host Port Add Geen Ge a vi Virtual Serial Port ICH C UDP 168 2 10 oo hode M Device Monitor Remove Client IM Enable Flow Control Packet Server I Connect at Windows Start DS DHCP Server Setting Listen Port TS TFTP Serer Status Connected to remote host 192 168 2 10 5000 RER C COM Port Terminal Virtual Serial Ports List Virtual COM Ports Port ID Port Name COM2 192 168 2 10 Connected 192 168 2 10 5000 System Log 2011 1 11 17 54 14 Application starts successfully Note When you click Add to add a Virtual Serial Port if a warning message appears as in below figure you need to enable the administrator authority Below shows how 1 Select the AXR2W x86 exe or AXR2W x64 exe from Program File gt AX220xx RS232 to WiFi Configuration Utility folder 2 Right click on the file and select Properties 3 Check the
2. Ad Hoc BSS Wireless Area Rx AX220xx AN RS232 to WiFi E E DS 1 as Client DS 2 as Server cr RS232 cable lt DSM Data Frame lt gt RS232 to WiFi Data Frame Figure 5 2 Pair Connection Demo System Diagram In Figure above AXR2W running on PC 1 with wireless card is used to configure DS 1 and DS 2 In this demo scenario DS 1 will be configured as a client and DS 2 is configured as a server One Tera Term runs on PC 1 s COM2 as the client console to send receive serial data to from UART 2 of DS 1 and the other Tera Term runs on PC 2 s COM1 as the server console to send receive serial data to from UART 2 of DS 2 Ideally the DHCP Server service on the two DS is default to enable and the first DS that gets powered on first will act as DHCP Server while the 207 DS will act as DHCP Client if the IBSS network has no DHCP Server present previously 5 3 1 Server Mode Setup DS 2 will be Server mode by default 5 3 2 Client Mode Setup The default setting of connection type is Server mode so before starting the testing procedure DS 1 has to be configured to Client mode Follow is the procedures to do so 22 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi Reference Design User Guide pASIX et wl m Power on DS 1 Establish a WiFi connection between DS 1 and PC 1 for configuration purpose a
3. Auto Test Echo Baud Rate p COM 115200 Data Bits E TX Interval ms 1000 TX Data Length 10 Parity Check None h stop Bits Flow Control Mone ud In Menu Window select Virtual Serial Port tool Select the Virtual Serial Port COM2 from the Virtual Serial Ports List and then click Close to close the connection between the Virtual Serial Port driver and the AX220xx device server Click Remove to remove the Virtual Serial Port driver from PC1 File View Help i virtual Port Network Configuration Device Management l Connection Protocol Remote Host IP Remote Host Port virtual Serial Part TCP f UDP Ten wenn 10 2000 Mode M Device Monitor t Client f Enable Flow Control Packet Server Connect at Windows Start DS DHCP Server Listen Port Ts Tae Sane Statice Er te hast 192 168 2 10 5000 com Port Terminal onnected to remote hos TITTTTTTTTTTTTTTTTTTTTTTT Virtual Serial Ports List E Virtual COM Ports i COM 1192 160 2 101 Connected 192 159 210 S ll 34 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi Reference Design User Guide 7 Software Function Description This section describes the detailed information of various software functions available such as AXR2W Configuration Utility Web Server Remote Configuration and Command Line Interface CLI on UARTO console 7 1 Device Management Tool This
4. 15 SW 1 DIP Switch Setting for 921 6Kbps Burn Flash Operati0ON ooccccccccccccconnncnnnnconononanncnnnnnnnos 16 SW 1 DIP Switch Setting for 115 2Kbps Burn Flash Operati0N ooccccccccccccconnnccnnnccnononanncnnnnnnnos 16 RS 232 to WiFi Reference Design Jumpers Gettng 17 Device Server Demo System Diagram rrrrrrnnnnnrnvvnrrnnnnnnnnvvvnnvrnnnnnnnnrvnnnnnnnnnnnnnssnnnnnnnnnnnssssnnnnnnnnn 20 Pair Connection Demo System Diagram rrrrnnnnnnnnvvnrrrnnnnnnvvnnnrrnnnnnnnnsrnnnnnnnnnnnnernnnnnnnnnsnnsssnennnnnnnn 22 ET EN 24 Main Window of AX220xx Window ISP Tool 67 SOM Weare ge MT DIA EE EE 70 6 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi E AST A Reference Design User Guide List of Tables Table 1 1 AX220xx RS 232 to WiFi Reference Deesonkt 8 Table 3 1 AX220xx RS 232 to WiFi Reference Design Features cooccccccoccocccccnnccconnnconononnonononononnnnconanennnss 12 Table 3 2 AX220xx RS 232 to WiFi Reference Design Software Features 14 7 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi A SL A Reference Design User Guide 1 introduction This user guide provides an overview of AX220xx RS 232 to WiFi Reference Design hardware and software components related setup procedures supported features and deliverables ASIX Electronics provides a complete AX220xx RS 232 to WiFi Reference Design Kit
5. There are 4 checkboxes and 3 buttons on the main window The Status sub window displays the helpful messages and the Time Cost sub window shows the time elapsed during erasing programming Flash memory 67 Copyright 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi Reference Design User Guide Below describes the brief function of the main window SS Connect before starting programming user must press Connect to make the connection between the Development Board and PC via COM port After connected the button will be toggled to Disconnect Boot Loader select this checkbox to enable burning AX220xx Boot Loader binary file MCPU select this checkbox to enable burning AX220xx RS 232 to WiFi demo firmware WCPU select this checkbox to enable burning AX220xx WCPU firmware HW Config Data select this checkbox to enable burning Hardware Configuration to sector 2 of on chip Flash memory Select the checkbox below Also Programming EEPROMI to enable burning Hardware Configuration to EEPROM Burn click this button to start programming the Flash memory The Windows ISP program will program the given binary file into the Flash memory based on user s selected checkboxes Dump click this button to dump the hardware configuration from either Flash memory sector 2 or EEPROM and save these data as a file named HwCfgFromFlash txt or HwCfgFromEeprom txt respectively The programming result
6. for AutoTest Echo Baud Rate 1200 Data Bits le gt TX Interval ms 11000 Parity Check None 14 Bata Length 10 Stop Bits a amp Open Clear Flow Control None Close Purge COM Terminal 2 Test Port COM2 i M Auto Test M Echo Baud Rate 1200 i Data Bits TX Interval ms 1000 Parity Check None y TX Data Length 10 SEH AA Flow Control None y Close Purge The COM Port Terminal tool contains two terminals Each terminal provides the same following functions Action Behavior Opens the selected COM port Closes the selected COM port Clears the console data Clears the data stored in COM port buffer Each terminal supports following general COM port parameters Field Description _______________________ O Each terminal supports following parameters for test function Field Description O Auto Test Enable disable sending test data Enable disable echoing back received test data TX Interval ms The time interval to send out a test data TX Data Length The test data s length 63 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi Reference Design User Guide 7 8 Command Line Interface CLI This section describes the command line interface or console to configure the DS There are many commands supported to configure the DS User can type help to show all the supported commands with verbose messages These message
7. AX220xx RS 232 to WiFi Reference Design User Guide AX220xx RS 232 to WiFi Reference Design User Guide Revision 1 20 July 08 2011 1 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi E AST A Reference Design User Guide md Sul m Revision History 100 2011 03 10 Initial release 1 10 2011 04 07 1 Replaced Hyper Terminal with Tera Term for demonstration 2 Added Appendix C performance report 2011 07 08 1 Added the WiFi Wizard and firmware upgrade for Boot Loader MCPU and WCPU image Updated all the related web page figures 2 Added the WiFi configuration item for Protection Frame Type 3 Added section 4 3 RS 232 to WiFi Reference Design Jumpers Setting 4 Added section 7 1 6 Firmware Upgrade Dialog 5 Updated two web page figures in section 7 3 3 and 7 3 6 1 to correct the configuration description about the file name length and SSID length 2 Copyright 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi Reference Design User Guide Table of Contents TL NMUOQUCHOM he 8 1 1 System Architecture Overview ccoocccocccconncconccocnnonnccnnnnonnonoroconnnnnnnnnonoss 9 1 2 User Guide CGontente nano nannnnonans 10 1 3 Additional Hesources cc cccccc cece eceeceeesueeeeeeeeeeueueeeeeeeeeueeaeeeeeeaeeaenas 10 AA 11 gt FOIS E E E E 12 4 Device Server Hardware Setup oooccconncccococccococonannnonaanonnannnnnans 15 4 1 Flash P
8. Upgrade Bootldr TFTP Server IP File Name File mame can be up to 63 characters Cancel Upgrade MCPU TFTP Server IP File Name File mame can be up to 63 characters Cancel Upgrade VW OU E mail Server Address TP laskcomt Please enter host name or IP address e g asix com tw or 10 4 1 100 From E mail Address lis asixcomtw To E mail Address 1 toi asix com tw To E mail Address 2 to2 asixcomtw To E mail Address 3 fo3astkcomtw Cold Start Disable Authentication Failure Disable Local IP Address Changed Disable Password Changed Disable El DHCP Server Disable Enable IP Pool Starting Address i92 168 24 IP Pool Ending Address i92468 210 Default Gateway Dnnn Subnet Mask 255 255 2550 Mote that the end pool must be larger than start pool and their net ID must be equal cant This page supports 3 firmware upgrade buttons Note that before user performs the firmware upgrade one should start DHCP Server and TFTP Server tools in AXR2W Configuration Utility first Please refer to section 7 5 and section 7 6 for details 50 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi A SI xX Reference Design User Guide 1 Upgrade Bootldr upgrades the Boot Loader firmware and then reboots the device server 2 Upgrade MCPU upgrades the MCPU firmware and then reboots the device server 3 Upgrade WCPU upgrades the WCPU
9. COM Terminal 2 Port Open COM Successfully FP Auto Test Echo Stop Bits Flow Control None Close Purge Input some text data e g 11111 in the console of COM Terminal 1 and then you should see the data appear in the console of COM Terminal 2 Input some text data e g 22222 in the console of COM Terminal 2 and then you should see the data appear in the console of COM Terminal 1 COM Terminal 1 com gt Test Open COMI Successfully So GE IT Auto Test Echo 122222 Baud Rate 115200 Data Bits E TX Interval ms 100 Parity Check None Tx Data Length 1206 st pits H Jl em Flow Control None Close Purge COM Terminal 2 e E om Port com2 gt ES pen uccessfully F Auto Test TF Echo 111111 Baud Fate 115200 Data Bits je y TA Interval ms Dm Parity Check None gt TX Data Length ho Stop Bits Open Clear Flow Control None y Close Purge Click Close of COM Terminal 1 and COM Terminal 2 to close COM1 and COM2 ports 33 Copyright O 2011 ASIX Electronics Corporation All rights reserved Step 6 Step 7 AX220xx RS 232 to WiFi ASIX oe re Electronics Corporation Reference Design User Guide COM Terminal 1 Ge GC El Gen Test Echo Baud Rate 115200 Data Bits E Tx Interval ms fina Parity Check None y TX Data Length 1206 Stop Bits hy Clear Flow Control None y Close COM Terminal 2 Port
10. Boot Loader Firmware Sector zA Software Configuration Sector USD Hardware Configuration Sector MCPU Sub System Firmware sector3 sector10 Sectors Ox 60000 sector11 sector 14 Firmware Upgrade Temporary sectors Ox COO00 WCPU Sub System Firmware Sectors sector15 sectorl8 UxFFEFF 65 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi E AST A Reference Design User Guide 8 1 1 Boot Loader Firmware Sector This area is used to store AX220xx Boot Loader firmware code and occupies the sector 0 of on chip Flash memory The start address is 0x00000 and the code size Is 16K bytes 8 1 2 Software Configuration Sector This area is used to store the data structure of software configuration parameters and occupies the sector 1 of on chip Flash memory The start address Is 0x04000 and the data size is up to 8K bytes 8 1 3 Hardware Configuration Sector This area is used to store the hardware configuration settings and occupies the sector 2 of on chip Flash memory The start address is 0x6000 and the data size is up to 8K bytes Please refer to AX220xx datasheet Section 3 2 1 Hardware Configuration Sector in Flash Memory SA2 Sector Memory Map for detailed description 8 1 4 MCPU Sub System Firmware Sectors This area is used to store the MCPU sub system firmware code and occupies the sector 3 to sector 10 of on chip Flash memory The start address is 0x8000 and the code
11. COM Port Terminal MAC Addrase OHEP COTE e COG Enae Teen Port Moda otatus Ce In addition to the auto binding function you can also remove a connected Virtual Serial Port or add a Virtual Serial Port via the Virtual COM Ports tree s context menu To add a Virtual Serial Port you can move the mouse cursor onto the Virtual COM Ports tree item and then right click the mouse button Then select the Create menu item 46 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi JAN AS A Reference Design User Guide o To close a connected Virtual Serial Port you can move the mouse cursor onto that Virtual Serial Port s tree item and then right click the mouse button Then select the Close menu item 0 Device Management Virtual Serial Port Device Monitor DHCP Server COM Port Terminal A TO A O E Virtual COM Ports Ou 47 Copyright O 2011 ASIX Electronics Corporation All rights reserved D Device Management Sy Se Virtual Serial Port MESS Device Monitor Status Progre DHCP Server COM Port Terminal Virtual COM Ports COM2 101 211 AX220xx RS 232 to WiFi Reference Design User Guide 7 3 Web Server Remote Configuration This section describes the detail functions of AX220xx RS 232 to WiFi Web Server Remote Configuration 7 3 1 Login Authentication Page There are two ways to open the w
12. Open COM Successfully Baud Rate 115200 Data Bits TA Interval rns fioo Parity Check None TA Data Length 1206 stop Bits Flow Control None Open COM4 Successfully Part R FP Auto Test Echo Baud Rate 1115200 Data Bits TA Interval ms Dom Parity Check None Tx Data Length D Stop Bits Clear Flow Control None Close Purge Note In general the first and second Virtual Serial Ports should be added successfully in 10 seconds For additional Virtual Serial Ports the Virtual Serial Port tool may take longer time up to 20 seconds to complete the addition procedure 44 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi K AST A Reference Design User Guide 7 2 3 Remove a Virtual Serial Port Step 1 Select the to be removed Virtual Serial Port from the List Step 2 Click Remove to remove the selected Virtual Serial Port 7 2 4 Seta Virtual Serial Port Step 1 Select the Virtual Serial Port from the List Step 2 Click Setting to configure the Virtual Serial Port The Virtual Port Network Configuration supports following parameters Field Description OOOO Enable Flow Control Packet Enable disable the Virtual Serial Port sending and receiving flow control packets This function is dependent on the flow control function of AX220xx RS 232 to WiFi firmware If this function is enabled on Virtual Serial Port driver and the firmware both si
13. Run this program as an administrator checkbox from Compatibility page u AXRIW s86 exe Properties m Conpatbity F you have problems with this program and it worked corectly on an eanier version of Windows select the compatibility mode that matches that eanier version Help me choose the settings Compatibility mode E Run this program in compatibility mode for Windows XP Service Pack 3 Settings E Run in 256 colors E Run in 640 x 480 screen resolution El Disable visual themes E Disable desktop composition E Disable display scaling on high DPI settings 31 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi ASIX Reference Design User Guide Electronics Corporation 6 5 Virtual Serial Port Operation Example Note The following example assumes the AX220xx device server s UART2 port is connected to the COM1 port on PC1 And this device server has established a TCP connection with the Virtual Serial Port COM2 on the same PC1 Step 1 In Menu Window select COM Port Terminal tool You will see the System Log Window being switched to the Function Window of COM Port Terminal tool File View Help Virtual Port Network Virtual Port Network Configuration Connection Protocol Remote Host IP Remote Host Port D Device Management Add Connec ya vi Virtual Serial Port P TCH UDP 192 58 2 fi 5000 Mode M Device Monito
14. firmware and then reboots the device server User should enter correct TFTP Server IP address and the firmware file name without file path is fine for upgrade before clicking these buttons When clicking Apply or any firmware upgrade button a confirmation window will appear User can press OK to continue the operation or press Cancel to cancel the operation The E mail Server Address IP field can accept host name or IP address format for example you can enter asix com tw or 10 1 4 100 in this field The device server supports the DHCP server service and user can setup the settings of DHCP server and press Apply to change the current settings 7 3 4 Security Page http www asix com tw A S LX ELECTRONICS CORPORATION AX220xx RS 232 to WiFi Logout Security Old Password New Password Confirm Password Accessible IP Setting IP 1 IP 2 IP 3 IP 4 Please enter IP address e g 10 4 1 100 Control Disable DI Attention When you change the accessible IP successful you must reboot device to take effect please confirm settings before reboot device Apply Cancel On this page the Accessible IP Setting must be used with care User should enter correct accessible IP address s before enabling this function The new configuration will take effect after the device server reboots When clicking Apply a confirmation window will appear User can press OK to continue the operatio
15. http www asix com tw ELECTRONICS CORPORATION AX220xx RS 232 to WIFI WiFi Wizard The Wizard Complete Successfully Your WiFi network settings are as below You can press Accept button to take effect Network Setting Channel Sevice Area Name SSID Security Mode Tx Data Rate Transmission Power Preamble Beacon Interval RTS Threshold Auto Power Control Protection Frame Type infrastructure 3 R2WAP64 no security auto 100 auto 100 ms 2432 enable RTS nere This sub page displays the new WiFi settings user has configured but not yet saved to AX220xx device Now user can review and confirm them The command buttons support Behavior Press Accept A confirmation window will pop up User can press OK to save the new WiFi settings to device and then reboot it with new settings If user presses Cancel it will return to this sub page Go back to Advanced Settings sub page 58 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi ASIX Reference Design User Guide 7 Electronics Corporation 7 3 7 Status Page http www asix com iw a ASX ELECTRONICS CORPORATION AX220xx RS 232 to WiFi Device Name Device IP Address 192 168 0 13 MCPU Firmware Version 1 1 0 WCPU Firmware Version 1 2 0 WiFi MAC address Hex 0x000ec6001f01 Modem Status HEX 0 Protocol Type TCP Connection Status Idle Serial Port TX Coun
16. no pa 98 cco ed e7 97 aeapob ap LL 38 2 yes Ba 1f 1f 1d 4 88 MIS AP3 ap gll 27 2 ves Ba 19 cb e5 25 54 ZyXEL 1 ap M11 la 2 yes 4c e6 76 25 fd 78 4CE67625FD78 1 ap LL 23 ajna Please wait Join 655 successful Update base band 1 8 2 11b mode Update network mode 3 infrastructure Update channel 3 Update ssid R2WAPE4 Authentication type open system Update encryption type no security Update Tx Rate Auto Save WiFi config to flash ROM 192 168 0 18 uart gt ping 192 168 8 40 Pinging from 192 168 0 40 with 32 bytes of data Reply from 192 165 0 40 bytes 32 time lt 2Bms TTL 128 Reply from 192 168 0 40 bytes 32 time lt l ms TTL 128 Reply from 192 168 0 48 bytes 32 time lt l ms TTL 128 Reply from 192 168 0 48 bytes 52 time lt l ms TTL 128 Ping statistics for 192 168 0 48 Packets Sent 4 Recelved 4 lost a Figure 5 3 Console Captured Use another Tera Term as console to login to DS Default username password is admin admin Enter sisrvy command to do site survey and it will display a list of BSSs being found Enter joss command to join to the specific BSS note that the argument must be an index in the site survey result list In this example DS joins to BSS with SSID R2WAP64 Finally enter ping command to check if the connection is built successfully 24 Copyright O 2011 ASIX Electronics Corporation All rights reserved 3 AX220xx RS 232 to WiFi E ASIA Reference
17. shared key 12345678 Pre shared key length Protection Frame 0 RTS Table 3 2 AX220xx RS 232 to WiFi Reference Design Software Features lt OD OD Note These settings are fixed and can t be changed in current software package If the DHCP Client service is enabled and has acquired IP address from network DHCP server the DHCP Server service will be disabled automatically If the DHCP Client service failed to acquire IP address after 5 seconds the DS will assign its own IP address using the default settings of static IP address subnet mask and default gateway and also activate the DHCP Server service automatically 14 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi E ASIX Reference Design User Guide ctronics Corporation 4 Device Server Hardware Setup This chapter introduces the AX220xx RS 232 to WiFi Reference Design board Device Server hardware related setup Figure 4 1 shows the SW1 DIP switch position on AX220xx RS 232 to WiFi Reference Design board The SW1 is used to set AX220xx chip configuration pins value during chip reset LLE eg rs em D A KN aan Geh g UART 0 SW 1 Figure 4 1 SW1 DIP Switch Position on AX220xx RS 232 to WiFi Reference Design Board 15 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi E AST A Reference Design User Guide Elect 4 1 Flash Programming Sw
18. size is up to 480K bytes 8 1 5 Firmware Upgrade Temporary Sectors If user wants to upgrade a new WCPU sub system firmware via wireless network AX220xx Boot Loader will store the received new AX220xx WCPU sub system firmware code in this area temporarily since the current WCPU sub system firmware is running on the system After the firmware download operation has been completed and the checksum value of the new downloaded firmware has been verified correct the AX220xx Boot Loader will overwrite the WCPU sub system firmware area with the new version of firmware being saved in here The area occupies the sector 11 to sector 14 of on chip Flash memory The start address is 0x80000 and the code size is up to 256K bytes 8 1 6 WCPU Sub System Firmware Sectors This area is used to store the WCPU sub system firmware code and occupies the sector 15 to sector 18 of on chip Flash memory The start address is 0OxC0000 and the code size is up to 256K bytes 66 Copyright 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi Reference Design User Guide 8 2 Burning Firmware via COM Port ISP Mode User can burn firmware to AX220xx RS 232 to WiFi device server via the UART 0 or UART 2 interface ASIX Electronics provides a Windows In System Programming ISP tool for customers to program AX220xx on chip Flash memory through a Windows PC The Windows ISP tool is a Windows dialog based software program that communicates thro
19. system Step 1 Power PC 1 PC 2 and Device Server DS Step 2 Follow section 6 1 description to install software package on PC 1 Step 3 Connect one end of RS 232 cable with a Null modem converter to PC Ze COM port and the other end to DS s UART 2 port Then open a Tera Term with appropriate serial port settings Step 4 On PC 1 use the Wireless Network Connection window application to look for WiFi network with SSID said R2WiFi and then press Connect to connect to DS Then PC 1 s wireless NIC card will acquire an IP address assigned by DS assuming that the DHCP Server service on DS is enabled and that PC 1 is set to automatic IP address setting in the Internet Protocol TCP IP Properties window by checking the Obtain an IP address automatically box For how to establish a connection to DS please refer the section 5 4 Step 5 Follow section 6 2 1 description to invoke the AXR2W Configuration Utility Then follow section 6 3 description to search for available DS Step 6 Follow section 6 4 description to add a Virtual Serial Port on PC 1 and establish a connection with DS 20 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi Reference Design User Guide Step 7 Open a Tera Term on PC 1 with appropriate serial port settings Step 8 Now user can input data on PC 1 s Tera Term and the data will be displayed on PC 2 s Tera Term or vice versa For best viewing in Te
20. will be displayed in the Result box Note 1 AX220xx Boot Loader is default to sector 0 MCPU sub system firmware default start sector is 3 and WCPU sub system firmware default start sector is 15 2 User can select 3 checkboxes on Windows ISP to burn 3 images at once 68 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi E AST A Reference Design User Guide 9 Software Modules 9 1 Peripheral Software Modules AX220xx RS 232 to WiFi Reference Design Kit CD provides various working sample codes for AX220xx chip hardware driver modules such as CPU Ethernet S W DMA MS Timer IC UART2 and 8051 80390 standard modules like UART Timer Please refer to AX220xx Software User Guide for details 9 2 TCP IP Stacks AX220xx RS 232 to WiFi provides the ulP TCP IP stack The ulP is a TCP IP protocol stack for 8 bit and 16 bit microcontrollers with very small code footprint and RAM requirements Below table shows features supported in the original ulP protocol stack and AX220xx ulP TCP IP module A E A A Piragmentreassenbly ves Mg a UDP S UDP TCP options YES YES Outorsequenes TCP data NO NO TOP urgentdata vws ES Data buffered for re transmission NO 1 ES 9 3 Upper Protocol Modules AX220xx software developers who need to know the detail of the DS firmware can refer to the AX220xx RS 232 to WiFi Software Developer s Guide The developer s guide des
21. 168 2 10 Step 5 Click OK to complete the setting operation 29 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi Reference Design User Guide D Device Management Virtual Port r Network Virtual Port Network Configuration Add c i Connection Protocol Remote Host IP Remote Host Port onnec Gg S Virtual Serial Port We ama aue mm ET Dep Mode M Device Monitor _ Remove EDER Client E Enable Flow Control Packet Server I Connect at Windows Start D DHCP Server Listen Port Ts TFTP Server Se COM Port Terminal Status dded a virtual serial port successfully Cd a Virtual Serial Ports List Virtual COM Ports Port ID Port Name Remote IP Remote Port COM System Log 2011 1 11 17 54 14 Application starts successfully File View Help D Devi Wirtual Port Network Virtual Port Network Configuration evice Management Add z Connection Protocol Remote Host IP Remote Host Port AE CONNEC Virtual Serial Port Lx e TCP UPJ 192 168 2 10 leo V vode M Device Monitor Remove Client IV Enable Flow Control Packet C Server Connect at Windows Start D DHCP Server Listen Port TS TFTP Server ep ener ae Status Added a virtual serial port successfully DOOR ARANA DDN EE Virtual Serial Ports List Virtual COM Ports Port ID Port Name Status Remote IP Remote Port COM2
22. 2K bytes binary code 10 2 Software Debugger Tool AX220xx currently provides two debug tool solutions one is the UART console debug the other is the Digital Core Design DCD s DoCD HAD2 debugger All the AX220xx software modules support some basic UART console debug function by default If user needs more powerful debug tool like source level debug AX220xx reference design board supports the DCD s DoCD Hardware Debugger the HAD2 module Through the HAD2 module the software running on AX220xx reference design board can be real time debugged User can purchase the HAD2 module from DCD and download the debugger software from DCD s web site at http www dcd pl Please refer to DCD s provided DoCD HAD2 debugger documents for procedures to set up the DoCD HAD2 debugger environment Note The DoCD HAD2 Debugger is optional for AX220xx user and it can be purchased from Digital Core Design s web site http www dcd pl If you don t have the DoCD HAD2 Debugger you can still debug AX220xx software through UART console debug method DoCD HAD2 Debugger Key Features AX220xx execution control R W all contents of AX220xx Real time hardware watch points and breakpoints Source Level debugging Software watch points and breakpoints AX220xx Flash programming Supports Keil IAR and others Source code tracing 71 Copyright O 2011 ASIX Electronics Corporation All rights reserved Ser a Ca Dt ETTE as Dia E mrk 1
23. AA 66 8 1 5 Firmware Upgrade Temporary Sectors occccconcccccnocccconnccnconnncncnnnncononnncononnanonos 66 8 1 6 WCPU Sub System Firmware Gechors n 66 8 2 Burning Firmware via COM Port ISP Mode 67 9 SoftWare ele TT 69 9 1 Peripheral Software Modules n0nn0nnannnnnnnnnnnnnnnnnnnnnnennennrnnnnnnrsnenn 69 Ge Te 69 9 3 Upper Protocol Modules nannannonnnannnnnnnnnnnnnnnonnnnnnnnnnnennennnnnrnnnrnrrnn 69 10 Software Development TOOIS nnurrnnnvennnnvnnnnuvnnnnnennnnvennnnueen 71 10 1 Software Compiler Tool 71 10 2 Software Debugger Tool 71 Appendix A Software Availability oomcconncconnccococconoconnannnnanos 73 Appendix B 12C EEPROM or Flash SA2 Default Setting 74 4 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi RN 4 ROA Reference Design User Guide Appendix C Device Server Throughput Repott 0 2 0 76 5 Copyright 2011 ASIX Electronics Corporation All rights reserved m Figure 1 1 Figure 2 1 Figure 2 2 Figure 4 1 Figure 4 2 Figure 4 3 Figure 4 4 Figure 5 1 Figure 5 2 Figure 5 3 Figure 8 1 Figure 9 1 AX220xx RS 232 to WiFi E AST A Reference Design User Guide sb OI List of Figures Device Server System Architecture Diagramm 9 AX220xx 5232 to WIFI Block P g ende 11 AX220xx RS 232 to WiFi Reference Design Board with DoCD HAD 11 SW1 DIP Switch Position on AX220xx RS 232 to WiFi Reference Design Board
24. COMS 9600band Tera Term YT File Edit Zepp Control Window Help Port coms y Terminal Baud rate 115200 Window Data oun y bit Font Parity none stop 1 bit Flow control none ARE Transmit delay jo msecichar 0 mserc line Eevboard Droa 19 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi Reference Design User Guide 5 2 Device Server Demo Scenario Firstly a single device server scenario is provided to demonstrate a simple system application The demo scenario requires following equipments 1 Two PCs and an Ad Hoc BSS IBSS environment are required 2 A Tera Term running on PC 1 is used as the console to communicate with the target serial device 3 A Tera Term running on PC 2 is used as the target serial device Figure 5 1 shows the demo system diagram Ad Hoc BSS PC 1 Device Server PC 2 AX220xx RS 232 to WiFi board Target serial device Wie Wireless Y i mmm RS 232 Null Modem Cable Figure 5 1 Device Server Demo System Diagram The demo scenario allows the two Tera Term console running on separate PC to communicate with each other over WLAN network The input data on PC 1 s Tera Term console will be transmitted to PC 2 s Tera Term console or vice versa The following describes the setup procedures for building such device server
25. Channel Map Ge 0x70 Max Set Point Value for CCK modulation for ee n oO 74 Copyright 2011 ASIX Electronics Corporation All rights reserved O AX220xx RS 232 to WiFi Reference Design User Guide channelit 14 1 Note 3 KE l x7F 0x7E Reserved OXFFOXFF 1 0x8D 0x80 Max Set Point Value for OFDM 36M modulation for Ox00 0x00 channel 14 1 Note 3 de x8F 0x8E Reserved JOXFFOXFF Ox9D 0x90 Max Set Point Value for OFDM 48M modulation for Ox00 0x00 channel 14 1 Note 3 x9F 0x9E Reserved OXFFOXFF S OxAD 0xA0 Max Set Point Value for OFDM 54M modulation for Ox00 0x00 channel 14 1 Note 3 xAF OxXAE Reserved JOXFFOXFF OxBE 0xB0O Max Integration Value for all data rates for 802 11a 0x00 0x00 channel 165 offset OxOBE 149 140 128 112 100 64 52 48 40 xx 36 16 196 184 offset Ox0BO Max Set Point Value for 36M modulation for OxFF OxFF 802 11a channel 165 offset OxOCE 149 140 128 112 100 64 52 48 40 xx 36 16 196 184 offset Ox0CO Reserved Max Set Point Value for 48M modulation for OXFF 802 11a channel 165 offset OxODE 149 140 128 112 100 64 52 48 40 xx 36 16 196 184 offset OxODO Reserved Max Set Point Value for 54M modulation forj OxFF OxFF 802 11a channel 165 offset OxOEE 149 140 128 112 100 64 52 48 40 xx 36 16 196 184 offset OxOEO Reserved OxFF OxFF OxFF OxFF OxF
26. Design User Guide 6 Software Toolkit Setup AX220xx RS 232 to WiFi Toolkit includes the VSP Virtual Serial Port driver and the AXR2W Configuration Utility This section provides a brief overview of the software package installation and frequently used functions 6 1 Step 1 Step 2 Software Package Installation Run AX220xx RS 232 to WiFi Toolkit setup program and the installation wizard will appear on the screen AX220xx RS232 to WiFi Configuration Utility InstallShield Wizard Preparing to Install Axe Oe R5232 to WiFi Configuration Utility Setup le preparing the InstallShield Wizard which will guide you through the program setup process Please wall Preparing to Install Wait for setup wizard to finish installation and then click Finish ANE JA LIES Cf e Me AX22Dxx RS232 to WiFi Configuration Utility Install me TE EA TA Setup has finished installing 442205 RS 232 to WiF Configuration Utility om pour computer o la en 25 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi Reference Design User Guide 6 2 Quick Start This section provides a brief getting started guide of the AXR2W Configuration Utility User can refer to next section for detailed description of each function supported The AXR2W Configuration Utility is a Windows program It consists of necessary tools that user can use to manage AX220xx RS 232 to WiFi d
27. F OxFF OxF4 Serial Number 11 0 Note 4 0x00 0x00 0x1FF 0x100 Reserved for WCPU HW future use OxFF OxFF 1 User should assign a unique Node ID and WLAN MAC address for each device 2 User should set the data after calibration of each channel 3 User should set the data after calibration of each channel for CCK and OFDM 4 User should assign a traceable serial number 75 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi Reference Design User Guide gt ASIX ty r eh Appendix C Device Server Throughput Report This throughput report provides the performance data of single device server for customer reference The following description covers the test environment test configuration and throughput data of different configurations 1 Test Environment PC CPU Intel Core i5 3 3GHz PC DRAM 3 GB PC OS Windows XP 32 bits Tool exSerialToEthernet FlowControl v1 1 0 0 USB to RS 232 Adapter GUSB232H2 B v2 0 0 25 R2WiFi Firmware v 0 7 0 WCPU Firmware v 1 1 0 PC Virtual COM IN WiFi Real COM e D ZEN AX220xx We RS232 to WiFi HS UART2 R2W 2 Test Configuration R2W Interface RealCOM Virtual COM HS UART2 115200 921600 Data bits bits 8 1 y 8 STS Stop bit bits 1 1 2 1 AAA Parity mes none MF Xon Xoff HW None Protocol rr TGRUDP Mode TI TI Gen
28. IX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi Reference Design User Guide After clicking Search any device server being found on network will be shown on the Device List with following information Field Description gt Z S O i Static IP is assigned as dynamic IP Client mode destination port Status Idle no connection Connected the device server has a TCP or UDP connection If a device server shows Connected in Status field it indicates that data transmission task is in progress To avoid any unexpected interrupts during data transmission the Device Management tool prohibits user operations of device setup reset reboot and upgrade for those device servers with Connected status 7 1 2 System Setting Dialog When clicking System Setting the Setting dialog will appear Timer Setting Search period S ance 33 100ms Restore period 15 100ms Reboot period 15 sec unit The Setting dialog provides two functions Press OK Enables the new period setting Cancels the new period setting The Setting dialog provides following parameters Field Description O Search period Set the search timeout period Reset period Set the reset timeout period Reboot period Set the reboot timeout period 36 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi Reference Design User Guide 7 1 3 Search Dialog When
29. ONICS CORPORATION A ASIA AX220xx RS 232 to WiFi WiFi Wizard Enter a WEP Key for Your WiFi Network Please select the key length key index and enter up to 4 applicable key strings Key Length 64 bits y Key Index Key Index0 zl The WEP key length must be 10 digit hex for WEP 64 or 26 digit hex for WEP 128 Key Index 0 1234567890 Key Index 1 0987654321 Key Index 2 a1b2c03d4e5 is Key Index 3 0123456789 is Back Finish This sub page configures either WEP 64 or WEP 128 key settings if WEP encryption is chosen for device servers WiFi network The Key Index selects the active key to use among the 4 Key Indexes Note that the key length must be 10 characters for WEP 64 bits or 26 characters for WEP 128 bits The command buttons support Action LBebauigr Go to Advanced Settings sub page Go back to Encryption Selection sub page Go to WiFi Settings Confirmation sub page 55 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi BASIA Reference Design User Guide Electronics Corporation 7 3 6 4 AES TKIP Key Settings Sub Page http www asix com iw HER ap ELECTRONICS CORPORATION A ASA AX220xx RS 232 to WiFi WiFi Wizard Enter a AES TKIP Pre shared Key Please enter your AES TKIP key with length between 8 63 AES TKIP Pre shared key 12345678 Back Finish This sub page configures AES or TKIP pre shared key if AES or TKIP encryption is
30. System Log Window e Menu Window displays supported tools e Function Window displays supported functions of the selected tool e System Log Window displays system log messages or uses as the built in web browser window in Device Management tool 6 2 2 Menu and Toolbar of AXR2W Configuration Utility The Menu of AXR2W Configuration Utility supports the following commands File menu introduction Item Description S O Open Log Open an existed system log file Save system log messages into a specified log file Close the AXR2W configuration utility program View menu introduction Item Description Hide Unhide the toolbar Hide Unhide the Status bar Help menu introduction Item Description Contents The help file About AXR2W Access copyright information The Toolbar of AXR2W Configuration Utility supports the following commands 13 i Starts stops the TFIP server Starts stops the DHCP server Opens the help file Saves system log messages Into specified system log file Opens an existed system log file Note When AXR2W Configuration Utility detects multiple network interfaces at startup and no any Virtual Serial Port is connected or opened the following Select a Network Interface dialog will appear and prompt user to select a desired network interface 27 Copyright 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi AST A Reference Des
31. System Setting Dialog ce cceccccssececeeeeesseeeeseeeceseeeeseeeeeseeeeeseeeeeseeeesseeees 36 TE GS ANCHO AAA PSP 37 A AAA PPP A 37 715 Device Setup Dial g uverdig 38 Pico Frimware Upgrade Dialog E 42 7 2 Virtual Serial Port Tool 43 FT FOTON QIN 43 3 Copyright O 2011 ASIX Electronics Corporation All rights reserved EA SIX AX220xx RS 232 to WiFi Ej MIL Reference Design User Guide Ada Vina Sena Nr 44 Remove a Virtual Serial Hot 45 seta Virtual Serial e e TEA EAA EE EREEREER 45 5 Make a Connection and Close a Virtual Serial Hot 46 T2260 o o eo PI 46 7 3 Web Server Remote Contfguraion 48 7 3 1 Login Authentication Page occcocccccnccocnnccnconnncnconnnncnanonnnnnnnnonanonnronnnncrarennrnnnnos 48 Tor nn EE EA E 49 SS ONE 50 7 3 4 Security Page 51 oo VPN 52 156 VWWIELAVIZATO RADO jens 53 ES TA AP e 59 7 4 Device Monitor TN 60 Tal POT VIN 60 75 DHCP Server TOO Lune 61 TT FONN 61 rO PP SE NN 62 FET FUN 62 7 7 COM Port Terminal Tool 63 FAFO WWIING OW A 63 7 8 Command Line Interface Ch 64 o Flash PONNI 65 8 1 AX220xx Flash Memory Partitions ccccccceecceeeeeeeeeeeeeeeeeeeeeeeeaes 65 8 1 1 Boot Loader Firmware Sector nannnnnnnnennnnnnsennnrnrnnnrnnnnrnrnrrnerrrnnersrrrrnrernnne 66 8 1 2 Software Configuration Sector sennsenonnnnsennnrnnnnrrnnenrnrnrrnerrrnnrrsnrrrenrennne 66 8 1 3 Hardware Configuration Gechor 66 8 1 4 MCPU Sub System Firmware Sectors
32. VSPD version LL 2230 poa Y 3 Test Result Data Flow Direction Connection Protocol TCP Condition Test data length 1457 bytes Pattern compare disable Real COM to Virtual COM Virtual COM to Real COM Flow Control Xon Xoff Xon Xoff Throughput 115 2Kbps Kbps Data Flow Direction 90 1 90 1 921 6Kbps 220 1 221 1 219 1 310 2 309 3 311 3 Connection Protocol UDP Condition Test data length 1457 bytes Pattern compare disable Real COM to Virtual COM Virtual COM to Real COM Flow Control Xon Xoff Xon Xoff Throughput 115 2Kbps 106 5 106 5 106 5 100 9 101 8 101 8 Kbps 921 6Kbps 940 6 940 6 940 5 914 2 511 2 917 1 76 Copyright 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi Reference Design User Guide A Sy A Electronics Corporation 4F No 8 Hsin Ann Rd Hsinchu Science Park Hsinchu Taiwan R O C TEL 886 3 5799500 FAX 886 3 5799558 Email support asix com tw Web http www asix com tw 77 Copyright O 2011 ASIX Electronics Corporation All rights reserved
33. anagement Packet Type Flow Control None Chent Broadcast Destination Port Multicast Destinatio Hoctnemede 192 168 1240 Ba AE Mode o Accesible IP Addresses 0 sleep 1 Single Twisted Fair Halt Duplex subnet Mask 255 255 255 0 Enable EE Gateway 192 168 2 1 IF 1 0000 Double Twisted Fair Foll Duplex Slave ma ooo 3 Double Twisted Pair Full Duplex Master DNS Server 1168 95 1 1 DU Transmit Timer mme 0000 IP 4 0 0 0 0 SMTP Configuration Parameter Domain Name jasixcomty 00000 From Address fs asxcomiw To Address lini asixcomty To Address 000 ToAddress3 in3 asixcomty O00000 Event Enable Disable IP Change Enable e Cold Start Enable e Password Change Enable Authentication Fal Enable se dem sw tea Network Setting Serial Port Setting 38 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi A SL A Reference Design User Guide lectronics Corporation Device Setup x Network Setting Serial Port Setting WiFi Setting DHCP Server Setting Device Setup E Network Setting Serial Port Setting WiFi Setting DHCP Server Setting bysten settings IF Fool Start Address 168 7 4 Ge IP Pool End Address mm mm 4 10 Network Mode TE am ubne 255 255 255 Default Gate Service Area NameS SID R T G32 K y 0 0 0 0 security Mode WER 6d Lease Time 1440 minutes WEP Encription Key Settings SE Enab
34. buttons support Action Behavior gt gt O Press Next Go to Encryption Selection sub page Go to WiFi Settings Confirmation sub page 53 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi ASIX Reference Design User Guide Electronics Corporation 7 3 6 2 Encryption Selection Sub Page ID iwww asix com tw E ELECTRONICS CORPORATION ASIA AX220xx RS 232 to WIFI Logout WiFi Wizard Select an Encryption Type for Your WiFi Network Select an encryption type for your WiFi network if you do not modify any encryption key please select the previous key settings C WEP encryption key settings C AES TKIP pre shared key settings Use the previous key settings Next Back This sub page configures the encryption type that will be used User can select among the 3 options and press Next or press Back to go back to WiFi Link Settings sub page Action Behavior Check WEP encryption key settings and press Go to WEP Key Settings sub page Next Check AES TKIP pre share key settings and press Go to AES TKIP Key Settings sub page Next Check Use the previous key settings and press Go to Advanced Settings sub page Next 54 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi BASIA Reference Design User Guide Electronics Corporation 7 3 6 3 WEP Key Settings Sub Page hitp www asix com tw i A S ELECTR
35. ce if it is not valid Step 3 Click Connect to connect to the remote device Step 4 Run application such as Tera Term to send data to the remote device Step 5 Close application and then click Close to close the connection 1 Before clicking Close you must close Tera Term or serial port application program first 2 Before configuring the remote host IP address and port you must select a Virtual Serial Port 7 2 6 Auto Binding Function The auto binding function enables you to connect a Virtual Serial Port with a device server easier and faster Before using this function you must make sure the target Virtual Serial Port s Enable Flow Control Packet setting is correct e it must be same as the device server s setting Below example illustrates how to use the auto binding function to connect the Virtual Serial Port COM2 with the DSM1 device server Step 1 In the Function Window of Device Management tool select the DSM1 device server from the Devices List Step 2 Drag the selected device server from the Function Window to the Menu Window Step 3 Drop the selected device server on the COM tree item in the Virtual COM Ports tree area System Search De ce Setup Re boot s Use External Browear Saiting IF Search Web Browser Restore ENEE l Search After Application Start Status idie Device Management Y Virtual Serial Port iM Device Monitor DE DHCP Server TFTP Server E
36. ceforge jp The following procedures introduce how to setup Tera Term Step 1 Follow the setup wizard to complete installation t Setup Tera Term ee ford Welcome to the Tera Term Setup Wizard This will install Tera Term 4 68 on your computer It is recommended that you close all other applications before continuing Click Next to continue or Cancel to exit Setup Step 2 Run the Tera Term Select File tab and then choose New connection to create a new serial port connection In the pop up dialog select Serial and COM port to be connected and then click OK Y COM7 9600baud Tera Term Y Fie Edit Setup Contol Window xi New connection Alt H C TCPAP Host 192 168 0 100 i M Histo Duplicate session All ory er Service Telnet EE SSH SSH version ssH2 al Oth Log ei Protocol UNSPEC a Comment to Log Port COM1 Prolific USB to Serial Bridge Cy COMI Prolific USB to Serial Bridge COM1 COM2 Prolific USB to Serial Bridge COM2 COM8 ASIX Virtual Serial Port COM8 Carew connection Al View Log Shin baos diale Step 3 After the serial port is created select Setup tab and then choose Serial port to set the serial port configuration and then click OK 18 Copyright 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi A SI A Reference Design User Guide Electronics Corporatio i
37. chosen for device server s WiFi network Note that the key length of AES TKIP must be 8 63 characters The command buttons support Action Behavior Go to Advanced Settings sub page Go back to Encryption Selection sub page Go to WiFi Settings Confirmation sub page 56 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi Reference Design User Guide http wWww asiXx com tw KK ASX ELECTRONICS CORPORATION PA AX220xx RS 232 to WiFi WiFi Wizard WiFi Network Advanced Settings Please determine below settings for your WIFI network TX Data Rate Auto gt Transmission Power Level 100 Preamble Mode Auto You must enter an integer between 20 1000 in the beacon interval field default is 100 ms Beacon Interval ms 100 You must enter an integer between 0 2432 in the RTS threshold field default is 2432 RTS Threshold 2432 Auto Power Control Mode Enable Protection Frame Type RTS Next Back This sub page provides advanced configuration for device server s WiFi network Usually these don t need to be changed in typical WiFi network operation The command buttons support Action Behavior O Go to WiFi Settings Confirmation sub page Go back to Encryption Selection sub page 57 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi Reference Design User Guide KE ASIA
38. ck the status field of both device servers in Device List which should display Connected Step Send some test data from either console Test data generated on Client console on PC 1 will be displayed on Server console on PC 2 or vice versa For best viewing in Tera Term during the test user can select Setup tab and then choose Terminal to bring up the Terminal Setup window in Tera Term then select Transmit CR LF and check Local echo box on both PC 1 and PC2 respectively 23 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi JA SI A Reference Design User Guide Electror 5 4 How to Make a Connection The following are procedures to make a connection with DS Step 1 Step 2 Step 3 Step 4 55ID TYPE CH RSSI SECURITY pa 22 b0 b2 6d 48 aeap987 ap 083 10 2 yes O 9B cco de 1lf 9c aeape2 ap 8283 11 lno da Sd 95 95 ec cec 6 5 sta 001 1f no Sc d9 98 1ld d6 fT apRichard ap 1 2f 2 yes 20 60 b3 35 92 55 MISVOIP ap 20110 1 yes 48 5b 39 bc 86 34 R2W4P64 ap ads 54 no B 22 75 fd 77 f8 Belkin N ap 0801 od ajno B2 d3 ac 28 46 d9 222555 sta 003 lc no 20 19 70 40 fc f ZyXEL ap 006 25 2 yes Ba 22 15 26 bd 10 aespl2 ap 887 24 l no 2 16 78 d 49 9c witispeaker sta 087 2a Going pa 19 70 27 dc 6e 1523 2 8 ap May 25 ajno pa da 79 b6e Bb a5 seap07 ap Hi 18 Olne pa 07 48 15 B5 36 Airstation ap 11 23 2 wes 2 9f 64 b a7 ld r2w len sta 01115
39. clicking Search the Device Searching dialog will appear Devices Search ie Cancel 255 255 255 255 The Devices Searching dialog provides two functions Action Behavior OI Starts the search operation Cancels the search operation The Devices Searching dialog provides following parameters Field Description S IP Mute IP aide IP BroadcastPaddress oS O 7 1 4 IP Search Dialog When clicking IP Search the IP Search dialog will appear IF Search IF 192 168 1 1 Cancel The IP Search dialog provides two functions Press Search Starts the search operation Press Cancel Cancels the search operation The IP Search dialog provides following parameters The device server s IP address 37 Copyright 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi A SI A Reference Design User Guide lectronics Corporation 7 1 5 Device Setup Dialog When clicking Device Setup the Device Setup dialog will pop up with 4 tabs Network Setting Serial Port Setting WiFi Setting and DHCP Server Setting Device Setup ES Device Setup Ki Network Setting Serial Port Setting WiFi Setting DHCP Server Setting Network Setting Serial Port Setting WiFi Setting DHCP Server Setting Device Name DSM1 Bad Rate 115300 ECE OID es Data Packet Type Data Bits Bj DHCP Enable zi m UDP e Server iw TCP Parity None Static IP H Stop Bits TS Data Listening Port 5000 M
40. covering all the needed hardware and software components that allow user to quickly implement a Serial to WiFi Device Server application If user would like to purchase the Reference Design Kit please contact ASIX s Sales salesOasix com tw for details The AX220xx RS 232 to WiFi Reference Design consists of 5 hardware components as listed in Table 1 1 AX22001 802 11b g Generic Development This consists of one AX220xx Generic Main Board and one AX22001 802 11b g WiFi Module Board being pre assembled together AX220xx Generic Development Kit CD gt SSS One RS 232 cable with a Null modem converter One RJ 45 Ethernet cable One 5V 3A AC DC power adapter Table 1 1 AX220xx a 232 to WiFi Reference Design Kit Note The following RS 232 Null modem converter should be connected to the RS 232 cable otherwise AX220xx couldn t establish the connection with PC or other RS 232 devices 8 Copyright 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi Reference Design User Guide 1 1 System Architecture Overview AX220xx RS 232 to WiFi Reference Design adopts AX220xx SoC chip to provide a cost effective solution for customers to enable existed serial communication of a device to extend virtually over a WLAN network The solution provides a hardware device connected to the target serial device and the software package needed for the remote PC Architecturally speaking AX220xx RS 232 to WiFi Refe
41. cribes the details for the entire software architecture source files configuration and exported functions for each upper protocol module Figure 9 1 below shows the software architecture diagram of DS The upper protocol modules used in the RS 232 to WiFi device server includes DHCP client server modules DNS client module HTTP server module Telnet server module SMTP client module TCP IP ulP module Adapter module and PPPoE module 69 Copyright 2011 ASIX Electronics Corporation All rights reserved Main CPU Sub System AX220xx Software Architecture AX220xx Network Modules Driver Modules WIFI CPU Sub System Ethernet Network Wireless Network Figure 9 1 Software Architecture Diagram 70 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi Reference Design User Guide AX220xx RS 232 to WiFi Reference Design User Guide 10 Software Development Tools 10 1 Software Compiler Tool All the software modules for AX220xx family are developed in C language on Keil IDE development environment User can purchase the Keil IDE Development Environment from Keil s web site at http www keil com c51 selector asp In general user needs to purchase the PK51 development tool for C language compiler debugger and simulator User can also download the Keil C51 evaluation software for free from Keil s web site but the evaluation software can only compile the sample codes with less than
42. des will prepend a 3 byte header in each egress WiFi packet and will strip off the 3 byte header in each ingress WiFi packet Connect at Windows Start Enable disable the automatic connection function at Windows start When this function is enabled the Virtual Serial Port will automatically connect to the target device server after VSP COM port is opened Virtual port can run either on Client or Server mode If the Server mode is selected Listen Port field must be configured a port number accordingly And the port number larger than 2000 is recommended Max Packet Size The maximum payload size of each egress TCP or UDP packet The default setting of maximum payload size is 450 bytes By default this field is not allowed to configure and is gray out virtual Port Network Configuration Connection Protocol Remote Host IP Remote Host Port Ge TCP C UDP 192 168 hode Client f Enable Flow Control Packet Server Connect at Windows Start Listen Fort You can enable the configuration of this field by editing the setting item 11 in AXR2W s setting file AxR2w dat II 11 USP Maxinun Network TX Packet Size Setting disable 1 enable 45 Copyright 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi K AST A Reference Design User Guide 7 2 5 Make a Connection and Close a Virtual Serial Port Step 1 Select the Virtual Serial Port from the List Step 2 Check Settings to configure the remote devi
43. eb page of an AX220xx device server 1 From AXR2W Configuration Utility user can select the target device on Device List and click Web Browser The tool will open a browser and connect to the web server of selected device automatically The below Login page will appear 2 User can manually open a web browser and type in http xxx xxx xxx xxx e g http 192 168 2 3 This is the target AX220xx device server s IP address The below Login page will appear http www asix com W gi ELECTRONICS CORPORATION ASIA AX220xx RS 232 to WiFi Username Password User must enter correct username and password and click Login before one can browse the device server The default username is admin and default password is admin The HTTP server will redirect to Basic page if the authentication is successful 48 Copyright 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi Reference Design User Guide 7 3 2 Basic Page http www asix com tw Device Name Device name can be up to 16 characters Data Baud Rate 115200 y Data Bits ls y Data Parity None y Stop Bits hy Flow Control None y Rs485 Sep H MENE SETE a A en VE tg e ee era DHCP Client Enable y Static IP Address fi9216823 8 Static Subnet Mask 255 255 2550 Static Default Gateway 19216821 Static DNS Server 168911 Connection Type TCP F Transmit Timer ms 100 Please enter an integ
44. en clicking Apply a confirmation window will appear User can press OK to continue the operation or press Cancel to cancel the operation 52 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi BASIX Reference Design User Guide Electronics Corporation 7 3 6 WiFi Wizard Page The WiFi Wizard is similar to WiFi page but provides a step by step procedure to help user to configure WiFi network settings and avoid incorrect settings The WiFi Wizard includes following 6 sub pages WiFi Link Settings sub page Encryption Selection sub page WEP Key Settings sub page AES TKIP Key Settings sub page Advanced Settings sub page WiFi Settings Confirmation sub page E ag bn 7 3 6 1 WiFi Link Settings Sub Page to iwww asix com tw ER AL GIN ELECTRONICS CORPORATION TAG ASIA AX220xx RS 232 to WiFi Logout WiFi Wizard Welcome to the WiFi Setup Wizard This wizard helps you set up your device to join a WIFI access point or set up its own security enabled WIFi network Network Mode Infrastructure D Channel 3 D Service Area Name SSID R2WAP64 The service area name can be up to 31 characters Security Mode No Security D AES TKIP is unsupported in Ad hoc mode To prevent outsiders from accessing your network we recommend you assign a security mode to your network Next Finish This sub page provides basic configuration for device server s WiFi network The command
45. er between 10 65535 Server Client Mode Server zs Server Listening Port 5000 Please enter an integer between 1024 65535 Client Destination Host Name IP 192 168 2 2 Please enter host name or IP address e g asix com tw or 10 4 1 100 Client Destination Port 5000 Please enter an integer between 1024 65535 Apply Cancel Restore_Default Reboot On this page the Client Destination Host Name IP field can accept either host name or IP address format for example you can enter asix com tw or 10 1 4 100 in this field This page supports 4 command buttons 1 Apply submits the current settings on this page to the device server 2 Cancel cancels the changed settings on this page 3 Restore Default restores the device server back to factory default settings When clicking it a warning dialog will appear You can press OK to continue the operation or press Cancel to cancel the operation 4 Reboot restarts the device server When clicking Apply or Reboot a confirmation window will appear User can click OK to continue the operation or click Cancel to cancel the operation 49 Copyright 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi Reference Design User Guide 7 3 3 hito ZAiwrww SI com ER A Ss TX ELECTRONICS CORPORATION AA AX220xx R5 232 to WiFi o 0 0 0 TFTP Server IF File Name File name can be up to 63 characters Cancel
46. es List with following information Field Description IP Device server IP address 2 Modem Status i Modem Status The firmware version 60 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi AST A Reference Design User Guide esch Chal m 7 5 DHCP Server Tool 7 5 1 Function Window Start IP Address 192 166 2 100 Gateway Router 192 166 2 1 End IP Address 192 1688 2 200 Subnet Mask 255 gt 255 200 0 Server P Address 192 168 2 2 Domain Name Server 1660 95 1 1 Boot File Ou bin Start MAC to IP Address Mapping List Delete Delete Al ID Address MAC Address Log The DHCP Server tool provides following functions 1 Start starts stops the DHCP server function 2 Delete deletes a MAC to IP address mapping record 3 Delete All deletes all MAC to IP address mapping records The main window supports seven parameters Field Description gt Z gt To start DHCP Server tool Step 1 In Menu Window select DHCP Server tool Step 2 Type in proper value in each field for DHCP server configurations Note that the Boot File field is only applicable to the case of upgrading firmware using Bootp TFTP The AX220xx device server will send Bootp request packet to DHCP server to get parameters such as IP address TFTP server IP address and file name Then the device server uses these parameters to send TFTP requ
47. est packet to upgrade the firmware Step 3 Click Start to start DHCP server 61 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi E AST A Reference Design User Guide et Sul m 7 6 TFTP Server Tool 7 6 1 Function Window Start Fie Pa CA A Progress Log The TFTP Server tool provides following functions Action Behavior Press Start Starts stops the TFTP server function Press Folder Browser Opens a folder browse dialog for file path selection The main window supports one parameter Field Description gt O S O File Path The file path for TFTP file read requests To start TFTP Server tool Step 1 In Menu Window select TFTP Server tool Step 2 Select the file path for which the to be upgraded firmware file is located This path is applicable to the firmware file name specified by user from the web server page or Firmware Upgrade dialog Step 3 Click Start to start TFTP server 62 Copyright 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi Reference Design User Guide 7 7 COM Port Terminal Tool This section describes the detailed functions of COM Port Terminal tool in AXR2W Configuration Utility The tool supports two terminals each supporting a simple test function to allow validating user s AX220xx RS 232 to WiFi device server easily 7 7 1 Function Window COM Terminal 1 SC est COM
48. evice server application The AXR2W Configuration Utility contains the following tools Field Description Device Management tool Enables you to remotely manage AX220xx RS 232 to WiFi device servers Virtual Serial Port tool Enables you to manage Virtual Serial Ports on the host PC servers address from it when operating at the DHCP enabled mode firmware from the TFTP server test your AX220xx RS 232 to WiFi device server application 6 2 1 Invoke AXR2W Configuration Utility Step 1 Goto the folder where software package was installed Step 2 On the 32 bit Windows environment run AXR2W_x86 exe and then the main window will appear as below figure Note on a 64 bit Windows environment user should run AXR2W_x64 exe Ble frr Help Sla os rs Dm Device Management System rare JEC GEL me DID Finnwara Use External Browser gettin Upgrade Ge Dvina S ta pon ren ll URE Seach Ater Apia Stan Device Monitor NO Device Name MAC Address DHCP i Port Mode alatus E COM Por Taminal Virual COM Ports COM GOMMI Fm lie E A S o 1 2010 11 1 10 25 44 Application starts succas Menu Window Function Window System Log Window 26 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi E AST A Reference Design User Guide md Chal m The main window divides the display into three functional areas Menu Window Function Window and
49. frastructure mode Channel Channel number Service Area Name SSID Service Set Identifier ses WiFi data can be encrypted with option of open system WEP 64 128 TKIP and AES either WEP 64 or WEP 128 to be used Protection frame type will be either RTS or Self CTS 7 1 5 4 DHCP Server Setting The DHCP Server Setting tab provides following parameters Field Description O o Z oZ oOo o ooo P Pool Start Address he start IP address to offer to DHCP client P Pool End Address he end IP address to offer to DHCP client S he default gateway to offer to DHCP client he time period that the offered IP address is valid Status Enable disable DHCP server service 7 7 Subnet Mask The subnet mask to offer to DHCP client 7 7 41 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi LSZ A Reference Design User Guide Electronics Corporation 7 1 6 Firmware Upgrade Dialog Note that before user performs the firmware upgrade one should start DHCP Server and TFTP Server tools first Please refer to section 7 5 and section 7 6 for details Select the target AX220xx RS 232 to WiFi device from the Devices List Click Firmware Upgrade to bring up the Firmware Upgrade dialog Choose the firmware file type Input a correct AX220xx RS 232 to WiFi firmware file name Input the TFTP server IP address Click Upgrade Firmware to start upgrading the new AX220xx firmware code Fi
50. ign User Guide Selecta Network Interface Multiple network interfaces are detected Please select a proper network interface Network Interface 192 168 1 240 192 168 1 240 10 1 2 48 Continue 6 3 Device Search Operation User can use the Device Management tool to search for all the AX220xx RS 232 to WiFi device servers present on a WLAN network Note that the device servers should first join and connect to the same BSS as the PC s wireless NIC s Step 1 In Menu Window select Device Management tool Step 2 Click Search to search available device servers on WLAN Below figure shows an example that one device server is found Step 3 Device servers that were found will be shown in Devices List On the list the device server s settings including connection type IP address and port number etc information are available File View Help El os 1s D Device Management System Search Device Setup Reboot Firmware Use External Browser oi Virtual Cenad Port ae IP Search Web Browser Restore Upana Search After Application Start M Device Monitor Status ate lt e i Progress TITIIIIITITITIIIITTIIITTTTT DHCP Server Devices List Ts TFIP Server NO Device Name MAC Address DHCP IP Port Mode Status COM Port Terminal O 1 DSM1 00 DE C6 00 00 Enable 101210 5000 Server Idle Virtual COM Ports COM COM4 system Log 2010 11 1 10 2544 Application starts successfully Ready 28 Co
51. is Management Packet Subnet mask 255 255 255 0 Pen eee default settings of Default gateway 192 168 2 1 static IP address subnet mask and default gateway Enable Disable ESCH rr Es Server IP 168 95 1 1 To remotely configure http Device Server IP pe re http 192 168 2 3 Send the warning Domain name asix com tw message if the event was triggered o 1 address to1 asix com tw MTP Clien l S SEN To 2 address to2 asix com tw o 3 address to3 asix com tw Event enable flag 0x0000 If enabled to assign IP address to other Station s connected to same BSS as DS RF Baseband mode pillo cai Operation mode _ 1 Ad Hoc mode 13 Copyright 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi AST A Reference Design User Guide Chama Di SSD ROWE ISSIDlengh 6 ITransmission rate 0 auto level Preamble it auto Beaconinterval 100ms gt RTS threshold 2432 Auto power control 1 enable Encryption mode open system PEP keyindex O Z o SSS O WP keylength oO Vuen 0x01 0x23 0x45 0x67 0x89 0x01 0x02 0x03 0x04 0x05 eren DS 0x0b OxOc Ox0d 0x0e 0x0f 0x10 0x11 0x12 WEP 128 key 1 0x13 0x14 0x15 0x16 0x17 WEP 128 key 0x18 0x19 Ox1a 0x1b 0x1c 0x1d 0x1e 0x1f 0x20 0x21 0x22 0x23 0x24 0x25 0x26 0x27 WEP 128 key 2 0x28 0x29 0x2a 0x2b 0x2C 0x2d 0x2e 0x2f 0x30 0x31 WEP 128 key 3 0x32 0x33 0x34 Pre
52. itch Setting The SW1 DIP switch setting pertaining to the Flash programming is described below The Pole 5 Burn Flash Enable of SW1 switch should be set to ON for enabling COM port Flash programming or it should be set to OFF for AX220xx Boot Loader Flash programming or for normal operation If COM port Flash programming mode is chosen the Pole 6 Burn Flash 921K of SW1 switch should be set to ON for normal speed of 115 2Kbps i e the UART 0 or UART 2 interface baud rate or it can be set to OFF if user s PC UART RS 232 supports high speed UART mode of 921 6Kbps The Port 47 should be set to ON for normal operation since the 12C Configuration EEPROM is usually not needed for this reference design However if user would like to use the I2C Configuration EEPROM for inventory storage purpose Port 7 can be set to OFF SW1 Pole Function ON OFF 6 Burn Flash 921 6Kbps UART mode 115 2Kbps High Speed UART mode Disable SWI Description Z gt 1 Set Pole 5 Burn Flash Enable to ON 2 Set Pole 46 to OFF for high speed UART mode 921 6Kbps 1 Set Pole 5 Burn Flash Enable to ON 2 Set Pole 6 to ON for normal UART mode 115 2Kbps Figure 4 3 SW 1 DIP Switch Setting for 115 2Kbps Burn Flash Operation 4 2 COM Port Setting For normal device server operation the UART 0 is used for console while the UART 2 is used for RS 232 to WiFi serial data port The default setting of each UART port is shown as below COM Port I
53. le S Key Length 64 bits y Eev Index select Key Index 0 Rey Index 0 1934567890 Key Index 1 0987654321 Eey Index 2 1B2C3D4E5 Eey Index 3 0123456700 Please enter 10 or 26 Hex digits for 64 or 128 bits key length AESTEIF Encryption Key settings AES TEIF Passphrase 8 63 digits 112345678 WiFi Advanced Settings TX Data Rate Am o Tranamission Power Level 100 Freamble Mode Anto Beacon Interval 20ms 1000ms 1000 me ETS Threshold 0 2432 B43 0 Auto Power Control Mode Enable e Protection Frame Type ETE e WiFi Setting DHCP Server Setting sue toa The Device Setup dialog provides following functions Action Behavior 4 Press Submit Submits new setting to device Saves the new setting to a file Reads a set of setting from a file 39 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi E ASIX Reference Design User Guide 7 1 5 1 Network Setting Sea D D amh O gt y op D 5 D O o CR O lt si D nm s e o O 5 D Hal oi 3 D t D x nm Description Device identification string The MAC address of the device server Enable disable DHCP client function Enable Server mode Static IP IP address of device server in Server mode Data Listening Port Server data packet listening port Enable Client mode Destination IP Remote host IP address for Client mode Destination Port Remote host listeni
54. n or press Cancel to cancel the operation When clicking Logout at the top right corner of the page the session will be logged out and redirected to the login page 51 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi Reference Design User Guide 7 3 5 WiFi Page UREA a A S TN FLECTRONICS CORPORATION a i AX220xx RS 232 to WiFi Network Mode Infrastructure El Channel 3 Service Area Name SSID R2WAP64 Security Mode No Security Key Length 64 bits l key Index Select Key Index 0 E Key Index 0 1234567890 Key Index 1 0987654321 Key Index 2 a1b2c3d4e5 ts Key Index 3 0123456709 Please enter 10 digit hex for 64 bit key length or 26 digit hex for 128 bit key length AES TKIP Encryption Key Settings eee AES TKIP Passphrase 12345678 Please enter a string between 3 63 digits in length came WiFi Advanced Settings TX Data Rate Auto l Transmission Power Level 100 Preamble Mode Auto Beacon Interval ms W000 Please enter an integer between 20 1000 RTS Threshold 2432 Please enter an integer between 0 2432 Auto Power Control Mode Enable ri Protection Frame Type RTS E Apply Cancel The page configures the WiFi settings of device server s WiFi network Note that the current value of WEP Key Index 0 3 fields will be displayed according to Key Length field being selected either 64 bits or 128 bits i e WEP 64 or WEP 128 Wh
55. ng port TCP Transmit serial data via TCP connection UDP Transmit serial data via UDP connection Multicast Transmit management data via multicast packet Broadcast Transmit management data via broadcast packet Subnet Mask Subnet mask of device server Gateway Gateway IP address of device server DNS Server DNS server IP address of device server Transmit Timer Time interval to send out serial data packet Accessible IP Addresses Configuration Parameters Enable Enable disable accessible IP addresses Accessible IP address 1 Accessible IP address 2 Accessible IP address 3 Accessible IP address 4 SMTP Configuration Parameters Domain Name The SMTP client s domain name From Address The sender s IP address To Address 1 The ist recipient s IP address To Address 2 The 2nd recipient s IP address To Address 3 The 3rd recipient s IP address Enable disable the Cold Start event Device Name MAC Address DHCP Server BRh 0O0 N 7 1 5 2 Serial Port Setting The Serial Port Setting tab provides following parameters Description Data transfer rate per second Data bits Data bits Parity check Stop bits Stop bits Flow control Flow control RS 485 Mode RS 485 mode 40 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi E AST A Reference Design User Guide Elect 7 1 5 3 WiFi Setting The WiFi Setting tab provides following parameters Field Description gt S Either Ad Hoc or In
56. nterface Baud Rate UART O 9600 bps UART Debugging Console UART 2 115 2Kbps RS 232 to WiFi Serial Data Port 16 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi Reference Design User Guide 4 3 RS 232 to WiFi Reference Design Jumpers Setting This section indicates some jumpers setting related to RS 232 to WiFi Reference Design on the Development Board Other jumpers might need to be adjusted according to user s needed interface functions Please refer to section 4 of AX220xxx Generic Development Kit User Guide for detailed Development Board jumpers setting information Jumper Setting 1 Description Set pole 7 of SW1 DIP switch to ON and set other poles to OFF User can adjust the switch setting according to his needed configuration if necessary Select the DB9 connector P3 as UARTO Select the DB9 connector P5 for UART2 and enable MCPU UART2 interface J10 J37 0 JO U Bah WD H Figure 4 4 RS 232 to WiFi Reference Design Jumpers Setting 17 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi ASIX Reference Design User Guide Electronics Corporation 5 Network Environment Setup 5 1 How to Setup Tera Term In this user guide we use the Tera Term to be our terminal emulator to demonstrate the reference design Tera Term is open source software under BSD license and can be downloaded from http ttssh2 sour
57. ock Diagram provides illustration of AX220xx RS 232 to WiFi device block diagram and board photo Section 3 Features provides the feature list of AX220xx RS 232 to WiFi reference design hardware and software components and the factory default settings of software functions Section 4 Device Server Hardware Setup introduces the DS hardware related setup Section 5 Network Environment Setup introduces two network demo scenarios and their setup procedures Section 6 Software Toolkit Setup provides a Quick Start on how to install the VSP driver and to setup the AXR2W Configuration Utility for a quick test or validation of AX220xx RS 232 to WiFi reference design Section 7 Software Function Description describes the detailed information of various software functions available such as AXR2W Configuration Utility Web Server remote configuration and Command Line Interface CLI on UARTO console Section 8 Flash Programming describes the on chip Flash memory partition of the DS and the Flash memory programming tool and programming procedures Section 9 Software Modules introduces the supported software modules of DS and the software architecture Section 10 Software Development Tools introduces the software tool chains being used to develop or debug the firmware of DS 1 3 Additional Resources You can check available up to date documentation on the ASIX Electronics web site at www asix com tw 10 Copyright O 2011 ASIX Elec
58. og HE HE EECHER E al PR RN a ra i Mirad Dira da e Er ed Ce De A 00100 1416 DCH A Daj ES Land Beri herleg bed Pip mek A Pines 103031 00063032 0004013 0001034 0061033 Pet ed ic 600302 ibid abans aoe 00070 ad nr ar a Dating QO 5001033 Nadi Pes te oe raner le Mohs Gad 151 004 1 ad te ds 00047 haynes Cot ed ri OG Daf fad add 054 Dep OE Det FES Poa O87 E El 8 32 2 E Leora LEMA JZHADES7 DEA if SEA 3006401 Er AAA Chet DE Delen Deg Dr SC DETR GetittsDut A E En METE THE Ri Add AED Ri aed bl Ri sogll roe ER Fui FEEL Ri gi Of ho DEE Delt 02203500 0000100 CAE En Lie tebe GIFTE tei an a7 A gen j JA En Dad es 4200175 0500 00001 ag 12 rier oe F EH a Mo pe mm nm AX220xx RS 232 to WiFi Reference Design User Guide KI J ss Feli Es pida ii Na ott i Foi O Dei e It ae TAU ED Fal 0600 Del 0 00 05d Een l gett Melk Gett ODO Ga geg CC Fan dog ot Foi toh Ia Gigi et Fan FF it Ee mt IO Ou et Fan Oo ot Cer CO De de et Cen ad KID Can 600 09501 de Ce Fan na AD Dad GO Dat dr Tat Bin Mo 6 Pp dd etg degt db Ea A ed a O a ett GID Far 0 Oe et fed O a de Op frr e du GP Cox Dro Da 1800 600 Cant dog et ft Ge fa deg G t Fe dot a Foi Qi 0004 Ge eat Fan D Oo at oni Out e Oe GAL Feu 1 ARI Lab AI IO Ena Ao rau to et Zut ef Deg et Dit Ott Det Abed De Din Ost LA Oe o
59. pyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi AST A Reference Design User Guide Oorporation 6 4 Virtual Serial Port Operation User can use Virtual Serial Port tool to add or remove a Virtual Serial Port on the host PC Step 1 In Menu Window select Virtual Serial Port tool Step 2 Click Add to add a Virtual Serial Port The COM Port Configuration dialog will appear Step 3 On the COM Port Configuration dialog select an unused port number to assign to the new Virtual Serial Port Then click OK to complete the add operation Virtual Port Network Virtual Port Network Configuration D Device Management Connection Protocol Remote Host IP Remote Host Port Mode M Device Monitor Client Enable Flow Control Packet C Server I Connect at Windows Start Ce EE Listen Port Ts TFTP Server Status SP removed successfully HARRAH ARERR ERROR Oa E a UU Virtual Serial Ports List Port ID Port Name Virtual COM Parts Cancel system Log No Time Message I 1 2011 1 11 17 54 14 Application starts suca Ready NUM Step 4 Click Setting to configure settings of the connection type IP address and listening port according to configuration of the targeted device Here assumes the settings are as follows Connection Protocol Remote Host IP 192
60. r Remove Le Client M Enable Flow Control Packet O Server I Connect at Windows Start 0S DHCP Server Setting Listen Port Ts TFTP Server Cc COM Port Terminal Status Connected to remote host 192 168 2 10 5000 Aa Virtual Serial Ports List Virtual COM Ports Port Name Status Remote IP Remote Port COM2 192 168 2 10 COM2 Connected 192 168 2 10 5000 COM Terminal 1 Port COM1 v Test I Auto Test Baud Rate 115200 y Data Bits 8 TX Interval ms 100 Parity Check None vw TX Data Length 1206 Stop Bits zl Open Clear Flow Control None v Close Purge COM Terminal 2 Port COM2 v Test Auto Test Echo Baud Rate 1 5200 v Data Bits 8 TX Interval ms 1000 Parity Check None IX Data Length 10 Stop Bits x Open Clear Flow Control None Close Purge Step 2 Use COM Terminal 1 to open COM1 and use COM Terminal 2 to open COM2 Here assumes the AX220xx device server s serial port settings are 115200 baud rate 8 data bits no parity check 1 stop bit and no flow control 32 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi LSZ A Reference Design User Guide Electronics Corporation Step 3 Step 4 Step 5 COM Terminal 1 Port com d FT Baud Rate Open COM Successfully Data Bits Stop Bits Flow Control
61. ra Term during the test user can select Setup tab and then choose Terminal to bring up the Terminal Setup window in Tera Term then select Transmit CR LF and check Local echo box on both PC 1 and PC2 respectively Edit Setup Control Window Window Font Eevboand Tera Term Terminal setup El x New line Terminal size sx far W Term size win size Receive CR Transmit CR LF Cancel Auto window resize Terminal ID er 00 l Answerback Auto switch VT lt gt TEK Coding receive Coding transmit UTF UTF amp locale che CodePage 936 Note that above setup procedures are provided for user to quickly set up a device server application in an Ad Hoc IBSS WLAN network topology for test or validation Once connected user can use the AXR2W Configuration Utility to re configure the device server to connect to an AP and operate in Infrastructure WLAN network 21 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi E AST A Reference Design User Guide Elect 5 3 Pair Connection Demo Scenario Secondly a pair connection demo scenario with two device servers working as a pair of client and server mode is provided The pair connection demo system diagram is shown in Figure 5 2 DS 1 Client Console DS 2 Server Console Tera Term Tera Term COM1
62. rence Design consists of 3 components Device Server DS i e AX220xx RS 232 to WiFi device Virtual Serial Port VSP driver and AXR2W Configuration Utility An architecture diagram describing their relationship is shown in Figure 1 1 AXR2W Terminal VSP driver Target serial device WiFi Network DS AX220xx RS 232 to WiFi device Figure 1 1 Device Server System Architecture Diagram The serial port data is transmitted over a TCP or a UDP socket connection built between the VSP driver and the DS over a WiFi network Each VSP driver running on remote PC is a Virtual Serial Port that can handle one serial port s data and make only one socket connection of either TCP or UDP with a DS at a time In other words each DS is also connected with a unique VSP driver at a time However the remote PC can support multiple VSP driver installations which allow communicating with multiple individual DSs simultaneously The AXR2W Configuration Utility running on remote PC is a Windows dialog based program used to manage the VSP drivers and their associated DSs remotely via configuration packets over UDP socket connection 9 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi Reference Design User Guide 1 2 User Guide Contents The manual contains the following chapters Section 1 Introduction provides an overview of AX220xx RS 232 to WiFi Reference Design solution and this document Section 2 Bl
63. rmware Upgrade TFTP Server IP Address Timer Upgrade Period 25 sec device Production Firmware Name Cancel bin Firmware File Type MCPU v Firmware Upgrade Notes 1 Choose the firmware type 192 165 1 40 2 Input a correct firmware file name 3 Make sure the device s IP address is In the same subnet as your PC s IP 4 Enable only one network card on your PC 5 Disable Windows Firewall 42 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi E AST A Reference Design User Guide Electror 7 2 Virtual Serial Port Tool This section describes the detailed functions of Virtual Serial Port tool in AXR2W Configuration Utility 7 2 1 Function Window virtual Port Network Configuration Remote Host IP Remote Host Port ERE 8 2000 f Enable Flow Control Packet I Connect at Windows Start Connection Protocol Ge TCP UPP Mode Client Connect Close e fe RES setting Status Connection closed successfully virtual Serial Ports List Port Name Status Remote IP Remote Fort Remove O Server Listen Port 2 COMA Idle The Virtual Serial Port tool provides following functions Action Behavior Press Add Adds a Virtual Serial Port Removes the selected Virtual Serial Port Makes a TCP or UDP connection with the selected device server Closes the selected TCP UDP connection Press Setting Configures
64. rogramming Switch Setting ccccecceeecseeeeeeeeeeeeseeeseeeenees 16 4 2 COM Port Setting cc ccecccsseceeeeeeseeeeceeeeseeeteueeteeeteneetaaeeteneetsees 16 4 3 RS 232 to WiFi Reference Design Jumpers Setting nannannennennenn 17 5 Network Environment Setup rannnnnnnnnnnnnnnnnnnnnnnennnnennnnennnnen 18 5 1 How to Setup Tera lem 18 5 2 Device Server Demo Scenario arururnnnnnnnnnnnnnnennnnnnennnnnnnennevnnennennnennne 20 5 3 Pair Connection Demo Scenario rrrunnrnnnrnnnvnnnvnnnrnnnrnnnrnnnenrurernnevunernr 22 SE EE o WUD EE 22 SoA AC Mode gt Cl omer net Ce errr ter rrr rrr rr rrr rrr rrr rrr rrr rrr ry 22 Ss IES FOC SO Sas EN nates 23 5 4 How to Make a Connection ruuvnrnrnnnnnevnnernrvnnernnnnnernnnrnnnnnernnennennnennee 24 6 Software Toolkit Setup r arxrannennnennnnnnnnennnnennnnnnnnennnnennnnnnnnennn 25 6 1 Software Package Installation ccccccccsseccsseeesseeeseeeeeeeeseeeetsneeeas 25 6 2 Quick Giart rinna nnen 26 6 2 1 Invoke AXR2W Configuration Utility ccccoccncconcnccccncoconnnoconononnnnnnonos 26 6 2 2 Menu and Toolbar of AXR2W Configuration Utility oocooooccoooo 27 6 3 Device Search Operation 28 6 4 Virtual Serial Port Operaton 29 6 5 Virtual Serial Port Operation Example 32 7 Software Function Description anxrannnnnnnnnvnnnnnnnnnnennnnnnnenn 35 7 1 Device Management Tool 35 FET PO NNN 35 7 1 2
65. s also show command arguments definition The commands can be classified into two functions one is to execute command and the other is to set configuration The commands for setting configuration can be used in 2 ways one is to display the current settings when no argument is given and the other is to set the configuration with provided arguments There are two interfaces to provide the console service one is through UARTO with appropriate settings and the other is through Telnet client The following description introduces how to use the console via these two interfaces Console via UARTO When user wants to use the console through UARTO one can connect one end of RS 232 cable with a Null modem converter to PC s COM port and the other end to the DS UARTO port Then open a Tera Term with appropriate serial port settings baud rate 9600 data bit 8 stop bit 1 and none parity Then user presses enter and the console will show messages such as username or password if user has not logged in yet User can login by using the default username password admin admin If login successfully the prompt message uart gt will show up That means the console session via UARTO interface is connected Figure 5 4 is the console screen snapshot Console via Telnet When user wants to use the console through a Telnet client user must run the Telnet client on PC and the DS must have established the WiFi connection with PC already For e
66. section describes the detailed functions of Device Management tool in AXR2W Configuration Utility 7 1 1 Function Window System Device Setup Reboot Firmware Use External Browser setting IP Search Web Browser Restore Upgrade Search After Application Start Status ldle Progress TT TTTTTTTTTTTTTTTTTTTTTTT Devices List NO Device Name MAC Address DHCP IP Port Mode Status O 1 DSMI 00 0E C6 00 00 Enable 10 1210 5000 Sewer Idle The Device Management tool provides following functions System Setting configures the Search Reboot and Reset period Search searches for available AX220xx device s on the wireless LAN network IP Search searches the AX220xx device with a specified IP address Device Setup configures the settings of the selected AX220xx device Web Browser opens remote configuration web server of the selected AX220xx device Reboot restarts the selected AX220xx device Restore configures the selected AX220xx device back to factory default settings and restarts it Firmware Upgrade upgrades the firmware code of the selected AX220xx device The function window supports two parameters Use External Browser Enables to bring up a separate browser window for accessing the device server s web pages disables and uses System Log Window area to display the browser Search After Application Start Enables disables the device search operation after application starts 35 Copyright O 2011 AS
67. settings of the selected Virtual Serial Port When a Virtual Serial Port is added successfully it will be shown on the Virtual Serial Ports List with following information Field Description OO Port ID The identification value of the Virtual Serial Port The name of the Virtual Serial Port 7 7 he status of the Virtual Serial Port Remote IP he IP address of the device server that connects with this Virtual Serial Port Remote Port The port number of the device server that connects with this Virtual Serial Port 43 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi e AST A Reference Design User Guide s Corporatio 7 2 2 Add a Virtual Serial Port Step 1 Click Add to add a Virtual Serial Port Below example shows a COM4 Virtual Serial Port being added Network virtual Port Network Configuration 7 Connection Protocol Remote Host IP Remote Host Port Connec dl E IER E oe 192 168 2 10 om Remove BA M Port Configuration S Cl Control Packet COM Port Number findows Start Status WSP removed virtual Serial Ports List Port Marne COMM Cancel Step 2 Use COM Terminal 1 to open the COM1 and use COM Terminal 2 to open COM4 Here assumes the AX220xx device server s serial port settings are 115200 baud rate 8 data bits no parity check 1 stop bit and no flow control COM Terminal 1 Port COM a
68. ssuming PC 1 should have software package installed already per section 6 1 description Step 3 Use AXR2W Configuration Utility to connect DS 1 Step 4 Use AXR2W s Device Setup function to change DS 1 to Client mode and enter the valid settings of destination IP address and port number For above demo scenario the destination IP is the IP address of DS 2 and the destination port is the listening port number of DS 2 Step 5 After DS 1 is rebooted successfully then power off DS 1 temporarily 5 3 3 Test Procedure Step 1 Power on DS 2 Server first If DS 2 s DHCP Server service is enabled by default and the IBSS network has no DHCP Server present previously the DS 2 will act as DHCP Server accordingly Step 2 Establish a WiFi connection between PC 1 and DS 2 for configuration purpose Then PC 1 s wireless NIC card will acquire an IP address assigned by DS 2 assuming that the DHCP Server service on DS 2 is enabled and that PC 1 is set to automatic IP address setting in the Internet Protocol TCP IP Properties window by checking the Obtain an IP address automatically box Step 3 Use AXR2W s Search function to find DS 2 successfully Step 4 Power on DS 1 Client Step 5 If not already connected establish a WiFi connection between DS 1 and DS 2 by following the procedures described in section 5 4 Then DS 1 will acquire an IP address assigned by DS 2 Step 6 Use AXR2W s Search function to find DS 1 successfully Che
69. t TA 0 30 Gen GEO ei A9 op Zeg t Fe get f i Ai G t Ze O ent fat eis PA ot Tu if ey td ei 20 alt dan it Cent bd e Zei et dn 160 Det ODO Dez Zeg BAD dd 060 Cen ot eat Gin m Zo GD Dan ut Il eg it Zei t Dele Ota r it ts O Zi ip Dein et stk Zoe et 2000 0030 Cen 0400 0007 20 oe Idi if Pen MO Deli dd E Copyright O 2011 ASIX Electronics Corporation All rights reserved p RW 4 L i AX220xx RS 232 to WiFi GA SI A Reference Design User Guide Electror Appendix A Software Availability AX220xx RS 232 to WiFi provides the following utilities software modules and TCP IP stack for customers reference Please contact ASIX s support Support asix com tw for detailed information 73 Copyright 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi ALS SI A Reference Design User Guide Appendix B 12C EEPROM or Flash SA2 Default Setting In this reference design AX22001 l O pins are being configured to high speed UART mode so some hardware setting parameters in 12C EEPROM or Flash memory SA2 must be set correctly Below table lists the recommended values 0xB OxOF Ox0E OSC 32 768Khz stable counter value 0x00 0x40 Ox1D 0x18 Node ID 5 ID 0 Note 1 0x28 TOE ARP Cache Timeout 0x3F 0x32 Reserved for MCPU HW future use DE OXFF GE A OxFF GE 0x60 Max Integration Value for all data rates for channel 0x00 0x00 1 Note 2 pe
70. t Byte 0 Serial Port RX Count Byte 0 Refresh start RefreshStop This page displays the current status of AX220xx device server with auto refreshing in every 3 seconds The command buttons support 1 RefreshStart Click RefreshStart to enable auto polling the AX220xx device in every 3 seconds and auto refreshing this page with latest status 2 RefreshStop Click RefreshStop to disable auto polling and auto refreshing 59 Copyright 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi Reference Design User Guide 7 4 Device Monitor Tool This section describes the detailed functions of Device Monitor tool in AXR2W Configuration Utility 7 4 1 Function Window Start Monitor Time Interval 3 3 3600 seconds Devices List IP Modem Status Hex Serial Port TA Count Serial Port RX Count 0 Idle DSM1 10 1 2 10 The Device Monitor tool provides following function Action Behavior Press Start Starts or stops monitoring the device s on Device List Before starting the monitoring function user should select at least one device server from the Devices List in the Function Window of Device Management tool The main window supports one parameter Field Description ________________________ O Monitor Time Interval Set the monitor frequency When a device server is selected from the Devices List in the Function Window of Device Management tool it will be shown in the Devic
71. tronics Corporation All rights reserved AX220xx RS 232 to WiFi Reference Design User Guide 2 Block Diagram The AX220xx RS 232 to WiFi device block diagram is shown in Figure 2 1 The AX220xx RS 232 to WiFi Reference Design board photo is shown in Figure 2 2 64KB 1MB SRAM Flash AX220xx Dual CPU 80MIPS Host WLAN MAC Baseband Figure 2 1 AX220xx RS 232 to WiFi Block Diagram GLE FITAK 3 DoCD HAD2 UART 2 UART 0 gt gege Figure 2 2 AX220xx RS 232 to WiFi Reference Design Board with DoCD HAD2 11 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi Reference Design User Guide 3 Features Table 3 1 lists the major hardware and software features of AX220xx RS 232 to WiFi Reference Design Items Features Specification gt O o 1T 8051 80390 WCPU 80 MHz Memory Embed 64KB SRAM as data memory for MCPU 1MB shared Flash memory for MCPU and WCPU program code and configuration data storage Serial Interface Network Supported Network Services DHCP Client Server DNS Client PPPoE BOOTP TFTP HTTP Telnet Server SMTP Client UDP Broadcasting Software Supported VSP Driver Windows 7 Vista XP 2000 32 bit Windows 7 Vista XP 64 bit Remote configuration from Web browser AXR2W Configuration Utility WLAN Supported 802 11b g RF Baseband DSSS and CCK 1 2 5 5 and 11 Mbps OFDM 6 9 12 18 24 36 48 and 54 Mbps Suppor
72. ts TX rate auto fall back mechanism 802 11i Security 64 128 WEP TKIP WPA PSK and AES WPA2 PSK 802 11e QoS 1 TX queue but selectable AC for user s application data WiFi Power Saving Supports 3 WiFi power saving modes in normal operation of Infrastructure mode with auto wakeup timer for upcoming Beacon frame reception Typical Power Saving Mode Fast Power Saving Mode Maximum Power Saving Mode Operating 0 C to 70 C Temperature Table 3 1 AX220xx RS 232 to WiFi Reference Design Features 12 Copyright 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi E AST A Reference Design User Guide Elect Table 3 2 lists the software features and their factory default settings User can change these settings to device server s with the configuration functions supported Feature Description Factory Default Setting Baud rate 19600 Used as command or Pata bits 8B O ER debug console Parity None i Stop bits Flow control None RS 232 Serial Port 115200 Data bits Bg UART2 remission transmission top bits 1 Flow control Connection Mode Client Server DP UDP nable Disable Broadcast Listening port 25122 For communication Enable Disable Multicast with DS manager Listening port 25123 Enable Disable ODE nicer Listening port 25124 If disabled or failed to Enable Disable acquire IP address Static IP address 192 168 2 3 from network DHCP server DS will use th
73. ugh PC s RS 232 COM port with AX220xx Environment Setup Below is an example procedure showing how to run the Windows ISP tool to download related firmware into the Flash memory 1 Copy the Windows ISP tool onto a Windows PC 2 Set the AX220xx Development Board to enable Flash Programming mode by following section 4 1 description 3 Connect the UART 0 or UART 2 interface of the Development Board to the COMx port of Windows PC via a RS 232 NULL modem cable 4 Run the Windows ISP tool AX220xxISP exe 5 Select the COM port number from the ISP tool 6 Select the baud rate 115 2K or 921 6K 7 Click Connect to connect the ISP tool with assigned COM port 8 Use the default settings or click the Checkbox to enable burning related firmware 9 Click the file path to select the binary file of related firmware 10 Click Burn to write the related firmware into the Flash memory After completing the programming operation the Burn Result box will display and the Status sub window will show the final result information COM Port Settine Status Fesult 115 E Baud e Connect 2 ER o Flash Programming Setting NE its der Programing Range Sector 0 onir Programming Range Sector E to Sector 10 except Sector 1 and 2 Programming Range Sector FE to Sector 18 Programing Range Sector 2 only HW Configuration Data Pump From Flash Fros EEPROM E im Pee PEN D Figure 8 1 Main Window of AX220xx Window ISP Tool
74. xample under DOS prompt user can enter the command C gt telnet 192 168 2 3 Then the Telnet client will establish the connection with the DS s Telnet server and the message username will show up if successful Follow the steps above to login the console of DS If login successfully the prompt message telnet gt will display That means the console session via Telnet interface is connected 64 Copyright O 2011 ASIX Electronics Corporation All rights reserved AX220xx RS 232 to WiFi E AST A Reference Design User Guide esch Chal m 8 Flash Programming ASIX Electronics provides an application named AX220xxISP exe to program the firmware of AX220xx RS 232 to WiFi through UART 0 or UART 2 port 8 1 AX220xx Flash Memory Partitions There are primarily three firmware partitions on AX22001 on chip Flash memory namely Boot Loader MCPU sub system firmware and WCPU sub system firmware Below describes how the on chip Flash memory is partitioned for storing the images and the software and hardware configuration data Due to the shared Flash memory architecture for MCPU and WCPU program memory to make the AX22001 SoC work properly the three images must be burned into appropriate location on on chip Flash memory The start address and size for each firmware in on chip Flash memory is shown in below Figure Sector 1 and sector 2 are used to store the software configuration and hardware configuration respectively L
Download Pdf Manuals
Related Search
Related Contents
mechanic window user manual-------.cdr Croisement BASIAS - captages AEP - Infoterre MICRELEC ITALIA - Sa.Bi. System di Busso Alessandro ImageQuant™ LAS 500 - GE Healthcare Life Sciences 取扱説明書 - アルコールチェッカー Copyright © All rights reserved.
Failed to retrieve file