background image

 

Cermetek Microelectronics, Inc                       Page 17 of 42  

 Document NO. 607-00xx Revision A (12/13) 

2.4.  UART Frame Scheme 

2.4.1.  UART Free-Frame 

CH232BGN supports the UART free-frame function. This function allows the module set frame breaks 

based on the intervals between any two data bytes received through the serial port. If this interval time 

exceeds the defined value (default 50ms), the CH232BGN interprets the interval as the end of a frame 

and immediately transfers this frame to the WiFi port. If there is no pause in the data, the CH232BGN 

buffers up to 4K Bytes of data before transferring the data as a frame to the WiFi port. 

This  Auto-Frame  function  is  controlled  by  the  commands  AT+UARTF  (Auto-Frame  on/Off), 

AT+UARTFT (Auto-Frame interval), and AT+UARTFL (Trigger length in Bytes).  

Notes:  The  default  frame  interval  is  50  milliseconds.    The  user  can  select  a  fast  interval  of  10 

milliseconds; however, this increases the risk of fragmented data. 

 

2.5.  Address Binding 

The CH232BGN module supports binding the Basic Service Set identification (BSSID) address of the 

target network. According to the provisions of 802.11 protocol, different wireless networks can have a 

same network name (i.e. SSID / ESSID), but must correspond to a unique BSSID address (i.e. MAC 

address). Intruders could create a wireless network with the same SSID / ESSID and permit Stations 

in  the  network  to  unknowingly  connect  to  a  fraudulent  Access  Point.  Binding  the  BSSID  address 

prevents the Station from connecting to an intruder improving wireless network security. 

 

2.6.  Ethernet Interface Communication  

CH232BGN module incluldes a 10/100M Ethernet interface. The Ethernet interface permits the user 

to  easily  realize  three  types  of  communications  (WiFi,  Serial,  and  Ethernet).  This  allows  the 

CH232BGN to be configured as a Bridge or Router. 

Notes: The CH232BGN consumes more power with Ethernet mode active. For that reason the default 

configuration disables Ethernet. The command 

“AT+FEPHY=on” activates Ethernet operation.  

2.6.1.  CH232BGN Ethernet Operation as Access Point 

 

 

Figure 14: CH232BGN As Access Point 

The  CH232BGN  module  can  serve  as  an  access  point  to  the  Ethernet  network.  All  devices  in  the 

network must use the same network segment within their IP address.  

Summary of Contents for CH232BGN

Page 1: ...Cermetek Microelectronics Inc Page 1 of 42 Document NO 607 00xx Revision A 12 13 CH232BGN Embedded WiFi Module User Manual...

Page 2: ...T INTERFACE COMMUNICATIONS 17 2 7 WIRELESS DISTRIBUTION SYSTEM WDS 19 2 8 SEARCH FUNCTION FOR STATION 19 2 9 WORK MODE 20 2 10 PARAMETERS CONFIGURATION 20 3 ONLINE CONFIGURATION 21 3 1 WEB MANAGEMENT...

Page 3: ...ntenna Option External I PEX Connector Thru hole Internal On board chip antenna Hardware Parameters Data Interface UART 1200bps 230400bps GPIOs Ethernet 100Mpbs Operating Voltage 3 3V 5 Operating Curr...

Page 4: ...Cermetek Microelectronics Inc Page 4 of 42 Document NO 607 00xx Revision A 12 13 1 2 Hardware Introduction 1 2 1 CH232BGN Pin Definitions Figure 1 CH232BGN Pin Assignments...

Page 5: ...l Purpose I O GPIO6 Input Output 8 Ethernet Transmit PHY_TX Output 1 8 Volt Ethernet Data I F 9 Ethernet Transmit PHY_TX Output 1 8 Volt Ethernet Data I F 10 Ethernet Receive PHY_RX Input 1 8 Volt Eth...

Page 6: ...with the following rules The antenna may not be located in the 6X8MM red region see Figure 3 below The antenna must located away from any metal or any components taller than 10MM The antenna cannot be...

Page 7: ...tandards The antenna parameters required as follows Table 3 CH232BGN External Antenna Parameters 1 2 5 Evaluation Kit An evaluation kit is available to assist users develop their applications The eval...

Page 8: ...that signals that the module has completed its initial boot sequence and is ready for use This signal includes an internal 4 7K Ohm pull up resister The module provides a low output or a square wave o...

Page 9: ...00M Ethernet Interface The CH232BGN provides one 10 100M Ethernet PHY layer interface for data transfer or user configuration The User circuit board must include an Ethernet transformer and RJ 45 conn...

Page 10: ...power supply The typical peak current is 350mA During normal WiFi operation the module draws about 200mA Current draw with WiFi OFF is 100mA Cermetek recommends decoupling be added at the power pin of...

Page 11: ...e flow control RTS CTS on the UART port to prevent buffer overflow 1 4 2 Configuration Mode In configuration mode the user can set CH232BGN configuration The user can switch from transparent transmiss...

Page 12: ...ns GPIO 1 and GPIO 2 In GPIO 1 the user defines TXD RXD CTS and RTS as GPIO lines the nReady nLink and nReload pins serve has functional pins In GPIO 2 all seven I O pins TXD RXD RTS CTS nLink nReady...

Page 13: ...Mode Two The module generates a square wave on nReady after a successful boot sequence The frequency of the square wave is 0 5 Hz with a 50 duty cycle The User software can check for the presence of t...

Page 14: ...e wireless LAN via the CH232BGN module Figure 10 below shows the functional architecture of the CH232BGN module Figure 10 CH232BGN Functional Architecture Notes An Access Point serves as a router prov...

Page 15: ...e 12 below Nodes 1 2 and 3 and the laptop serve as Stations in the Adhoc network with user devices connected via the serial interface The CH232BGN modules can be operated and managed over the network...

Page 16: ...the Station port must maintain a connection with the other Access Point to prevent data loss If the Station port cannot maintain the connection disable the Station Scan with the commands below AT STT...

Page 17: ...Set identification BSSID address of the target network According to the provisions of 802 11 protocol different wireless networks can have a same network name i e SSID ESSID but must correspond to a...

Page 18: ...ve the CH232BGN module operates as a Station Firmware version Z required with the module configured in bridge mode When the module connects to an Access Point all devices connected to the Ethernet int...

Page 19: ...configuration for the Station Interface the user can push the Search button to find surrounding Access Points 2 9 Work Mode CH232BGN modules communicate only in Transparent Transmission Mode Transpar...

Page 20: ...een user devices without modification Figure 18 CH232BGN Transparent Transmission Operation 2 10 Parameters Configuration CH232BGN module supports two methods of configuring parameters Over the web an...

Page 21: ...word Admin 3 1 Web Management Interface Following is the procedure to configure the CH232BGN via its web interface Step 1 Connect a laptop to the CH232BGN SSID CH232BGN_AP via the wireless LAN Step 2...

Page 22: ...clude the WiFi networking mode 802 11 b g or n network ID Security Mode and LAN setup Figure 20 Access Point Interface Configuration Page 3 4 Station Interface Configuration Page This page Figure 21 b...

Page 23: ...rt serial communication See figure 22 below Figure 22 UART Configuration Page Notes Network protocols typically support three modes TCP Server TCP Client and UDP UDP has no server or client requiremen...

Page 24: ...2BGN module These settings include the account identification module re start reload factory defaults and on line firmware upgrade Figure 23 Administrative Configuration Page Notes When parameters are...

Page 25: ...with a to confirm receipt of the command Step 2 Send the character a to the CH232BGN The CH232BGN responds with ok and enters AT configuration mode Notes The character string is not echoed back to th...

Page 26: ...n lower case 4 2 3 CH232BGN Responses Below is a description of the general format for responses to AT commands RSP op para 1 para 2 para 3 para 4 CR LF CR LF Prefix indicating a response RSP Response...

Page 27: ...on WEBU Set Query WEB page login parameters WAP Set Query WIFI parameters as Access Point WAKEY Set Query WIFI security parameters as Access Point MSLP Set modules into power save mode WSCAN Seek Acce...

Page 28: ...echo is disabled AT E command reactivates it 4 2 5 2 AT ENTM This command places the CH232BGN into transparent transmission mode AT ENTM CR ok CR LF CR LF 4 2 5 3 AT NETP This command permits the use...

Page 29: ...ardware flow control NFC no flow control or FC Flow Control Active Note New settings for the AT UART command do not become active until the CH232BGN module reboots 4 2 5 5 AT UARTF This command allows...

Page 30: ...ssion mode Read Data Transmission Mode AT TMODE CR ok tmode CR LF CR LF Set Data Transmission Mode AT TMODE tmode CR ok CR LF CR LF Parameters tmode through Transparent transmission selected Agreement...

Page 31: ...d TKIP with WPAPSK selected AES with WPAPSK selected Key Password ASCII code between 8 and 64 bits Note New settings AT WSKEY do not become active until the CH232BGN module reboots This command is onl...

Page 32: ...Read Web Page Login Parameters AT WEBU CR ok usr password CR LF CR LF Set Web Page Login Parameters AT WSSID usr password CR ok CR LF CR LF Parameters usr User Name for web page access password Web p...

Page 33: ...d AES WiFi Protected Access selected TKIPAES WiFi Protected Access selected key password ASCII code between 8 and 64 bits Note New settings for AT WAKEY do not become active until the CH232BGN module...

Page 34: ...PLK This command checks the CH232BGN to see if a TCP link is established Confirm presence of a TCP Link AT TCPLK CR ok sta CR LF CR LF Parameters sta ON TCP Link established OFF No TCP Link Establishe...

Page 35: ...t IP address mask WAN port subnet mask gateway WAN port gateway address Note New settings for AT WANN do not become active until the CH232BGN module reboots This command functions only in Station mode...

Page 36: ...Read TCP Timeout AT TCPTO CR ok time CR LF CR LF Set TCP Timeout AT TCPTO time CR ok CR LF CR LF Parameters Time TCP timeout setting 600 600 seconds 0 no timeout Default value is 300 seconds 4 2 5 24...

Page 37: ...d permits the user to Set or Read the TCPB port number Read TCPB Port Number AT TCPPTB CR ok port CR LF CR LF Set TCPB Port Number AT TCPPTB port CR ok CR LF CR LF Parameters port decimal number than...

Page 38: ...ule reboots 4 2 5 29 AT TCPLKB This command allows the user to Read TCPB link status Read TCPB Link Status AT TCPCKB CR ok sta CR LF CR LF Parameters sta on TCPB Link Active off TCPB Link not availabl...

Page 39: ...Factory Defaults AT RELD CR ok rebooting CR LF CR LF 4 2 5 33 AT Z This command restarts the CH232BGN Restart Module AT Z CR 4 2 5 34 AT MID Request Module ID Request Module ID AT MID CR ok module_id...

Page 40: ...Cermetek Microelectronics Inc Page 40 of 42 Document NO 607 00xx Revision A 12 13 APPENDIX A EVALUATION BOARD REFERENCE DESIGN...

Page 41: ...Cermetek Microelectronics Inc Page 41 of 42 Document NO 607 00xx Revision A 12 13 APPENDIX B EXTERNAL POWER SHUTDOWN MODE REFERENCE DESIGN...

Page 42: ...cs Inc Page 42 of 42 Document NO 607 00xx Revision A 12 13 CONTACT INFORMATION Cermetek Microelectronics Inc 374 Turquoise Street Milpitas CA 95035 www cermetek com Tel 408 942 2200 Fax 408 942 1346 E...

Reviews: