background image

1

A6501

AirM2M_ESP8266_WiFi Module User Manual V3.2

Summary of Contents for A6501

Page 1: ...1 A6501 AirM2M_ESP8266_WiFi Module User Manual V3 2...

Page 2: ...0 3 EVB Introduction 21 3 1 Module Firmware Download 22 4 PC Configuration tool 23 4 1 Basic application methods 23 4 2 Search AirM2M Module in the same LAN 28 4 3 Smartlink Function 29 4 4 Web config...

Page 3: ...nd data AT CIPSEND 46 5 3 5 Set the TCP socket window size AT CIPWND 47 5 3 6 Set the frame size for transparent transmission AT CIPCCFG 49 5 3 7 Close TCP UDP connection AT CIPCLOSE 49 5 3 8 Obtain l...

Page 4: ...Control Protocol IP Internet Protocol MCU Microprogrammed Control Unit IOT Internet Of Things I2C Inter Integrated Circuit PWM Pulse Width Modulation ADC Analog to Digital Converter GPIO General Purpo...

Page 5: ...ls of antennas are supported including on board PCB antenna IPEX interface and stamp hole interface A650X series modules can be widely used on smart power grids intelligent transportation intelligent...

Page 6: ...o Ltd http www airm2m com Page 6 1 1 2 Module Packages AirM2M ESP8266 A650X series modules support multiple PCB packages which greatly enriches users choices They can be easily applied to a variety of...

Page 7: ...ce UART IIC PWM GPIO ADC working voltage 3 0V 3 6V VDD voltage GPIO drive capability Max 15ma working current normal mode average value 70mA peak value 215mA Deep Sleep 15uA Modem Sleeps average value...

Page 8: ...http www airm2m com Page 8 1 2 Hardware introduction A650X series modules powered by ESP8266 SOC processor with abundant hardware interfaces support UART IIC PWM GPIO ADC which can be widely used on d...

Page 9: ...e version 5 HeartBeat 1 Wake up A6501 with AT AMSLEEP from deep sleep mode when shorted with RESET 2 GPIO16 can be redefined in SDK firmware version 3 High level output is defaulted after boot up 6 RE...

Page 10: ...with each other if flow control is not needed step4 Power on the module pay close attention that pin2 and pin16 are forbidden to be pulled down and pin15 is forbidden to be pulled up at the moment of...

Page 11: ...ndicator blinks when connected extinguishes when disconnected Blue LED a Lit for 2S and then turned off after boot up b As the TCP UDP data transmission state indicator blinks when transmitting exting...

Page 12: ...AirM2M_ESP8266 WiFi module user manual V3 2 Shanghai AirM2M Communication Technology Co Ltd http www airm2m com Page 12 1 2 2 A6501S Picture 3 A6501S pin configuration...

Page 13: ...tinctions between A6501S and A6501 are 1 One LDO is added AMS1117 developer can use the 5V power of serial port line USB2TTL directly for power supply 2 6 pins are added whose space between each other...

Page 14: ...ses 12 pins whose spacing is 1 27mm leading out all the signals that are needed for serial port data transmission application Compared to A6501 A6501S the main characteristics of A6502 are as follow 1...

Page 15: ...on mode basing on a duty ratio of 90 Mode Min Normal Max unit transmit 802 11b CCK 1Mbps Pout 19 5dBm 215 mA transmit 802 11b CCK 11Mbps Pout 18 5dBm 197 mA transmit 802 11g OFDM54 Mbps Pout 16dBm 145...

Page 16: ...Input reflection 10 dB Under 72 2Mbps PA s output power 14 15 16 dBm In 802 11b mode PA s output power 17 5 18 5 19 5 dBm Sensitivity CCK 1Mbps 98 dBm CCK 11Mbps 91 dBm 6Mbps 1 2BPSK 93 dBm 54Mbps 3 4...

Page 17: ...AirM2M_ESP8266 WiFi module user manual V3 2 Shanghai AirM2M Communication Technology Co Ltd http www airm2m com Page 17 1 5 Dimension A6501 A6501S A6502...

Page 18: ...rs can use A650X stamp hole antenna interface if they want to design antenna part on big board In this case matching circuit should be reserved on big board for this design For example Picture 6 WiFi...

Page 19: ...AirM2M_ESP8266 WiFi module user manual V3 2 Shanghai AirM2M Communication Technology Co Ltd http www airm2m com Page 19 Picture 7 Recommended back flow curve...

Page 20: ...internet AP mode As hotspot A6501 modules achieve that cell phone computer can communicate with modules directly which makes local area network wireless connections come true STA AP mode Coexistence o...

Page 21: ...the same time development board has reserved hardware circuit on which our GSM GPRS standard module A2350 works as main controlling unit MCU to communicate with A6501 via serial port So it can support...

Page 22: ...ed by UART to USB cable to A6501 s UART0 and the cable s Tx should be connected to PIN1 the cable s Rx should be connected to PIN2 If the developer is using AirM2M s EVB board the method for connectio...

Page 23: ...ode 6 When the prompt message FINISHED appears the downloading process is completed 4 PC Configuration tool 4 1 Basic application methods A650X supports using PC tools AirM2M_ESP8266_CONFIG_TOOL to co...

Page 24: ...SL WiFi config tool It does the same work as the command AT CWJAP Step 3 Open configuration tool AirM2M_WiFi_CONFIG_Tool Please add trust if intercepted by PC security software Step 4 Click Web Contro...

Page 25: ...do the search once more and select the module to use this tool after the restart of the module because the PC CONFIG Tool connects 192 168 4 1 by default without search 3 All being said please don t r...

Page 26: ...igure one link at this step is enough Step 7 Click set transparent transmission mode option page to set transparent transmission mode Data_mode 1 transparent transmission mode Data_mode 0 non transpar...

Page 27: ...two links established Step10 Open AT tab choose the uart port input data in the input box at the left bottom corner and SEND Look from the server s side two links all receive data aaaaa Step 11 Quit t...

Page 28: ...onnection according to last saved data by AT CIPSCON 1 2 open AirM2M_ESP8266_CONFIG_TOOL WEB CONTROL Set transparent transmission tab set data_mode 1 and then POST At Set_client set_server tab to conf...

Page 29: ...a easy thing for a module to join an AP Smart Link sometimes called Smart Config invented by TI Texas Instruments is a key to the solution The process is as follows 1 The phone joins an router AP 2 O...

Page 30: ...s the router successfully This parameter describes the timeout of the smartlink packet capturing process the unit is seconds The default value is 0 which means no smartlink process at all For the SDK...

Page 31: ...AirM2M_ESP8266 WiFi module user manual V3 2 Shanghai AirM2M Communication Technology Co Ltd http www airm2m com Page 31 and press Click change to English at top right corner...

Page 32: ...K Test command AT IPR IPR rate value list OK Items needing attention Self adaptive baud rate is supported by default 1 The range of rate is BIT_RATE_9600 BIT_RATE_19200 BIT_RATE_38400 BIT_RATE_57600 B...

Page 33: ...mmand determines whether or not the TA echoes characters received from TE during command state Syntax command type grammar Response command ATE value OK Set successfully CME ERROR The function is alre...

Page 34: ...LEEP 2 300 OK The module will go to sleep mode immediately and will wake up 300 seconds later 5 1 5 OTA Firmware Update AT CIUPDATE Syntax command type grammar Response command AT CIUPDATE CIUPDATE Up...

Page 35: ...ll down nReload for a long time 5s to restore factory settings But if AT OPENLOG 1 is input nReload will be used as log print PIN All the functions Mentioned above become invalid AT OPENLOG 0 to resto...

Page 36: ...ntax command type grammar Response Set command AT CFGRI enable time_ms OK Read command AT CFGRI CFGRI enable time_ms OK Test command AT CFGRI CFGRI list of enable s range of time_ms OK Parameter defin...

Page 37: ...WMODE mode value list OK Parameter definition parameters definition value value instruction mode WiFi application mode 1 Station mode 2 AP mode 3 AP Station mode 5 2 2 List current available access po...

Page 38: ...ut CWJAP 2 Password error CWJAP 3 Can t found the target AP CWJAP 4 Fail to join the AP Read command AT CWJAP CWJAP ssid OK Display the SSID the module has joined Parameter definition parameter defini...

Page 39: ...ess point name character string parameter pwd password character string the longest is 64 byte ASCII coding chl channel number 5 2 6 Inquire MAC address AT AMMAC Syntax command type grammar Response D...

Page 40: ...parameter definition parameter definition value Value instruction ssid AP name the name of the AP joined by the module rssi AP signal strength Examples cmd Rep example Decription and instruction AT CA...

Page 41: ...in Mode 1 and 3 but not in mode 2 AP mode Turn on cell phone s WIFI function and join a router name it A for easy understanding Turn on SMARTLINK Android App that released by our company Input name a...

Page 42: ...AirM2M_ESP8266 WiFi module user manual V3 2 Shanghai AirM2M Communication Technology Co Ltd http www airm2m com Page 42 Click STOP turn off APP...

Page 43: ...id values are input Notes After the Set command of CIPSTART is input such URCs like this will be routed to UART by module precondition URCs Description CPIMUX 0 CONNECT OK successfully connected CIPMU...

Page 44: ...te C cid TCP UDP Local IP address Local port Remote IP address Remote port client state Test command AT CIPSTATUS OK parameter definition parameter definition value value instruction state single conn...

Page 45: ...INITIAL AT CIPSTART TCP 192 168 1 51 6800 Set up one connection as client OK CONNECT OK AT CIPSTATUS OK STATE CONNECT OK C 0 TCP 192 168 1 52 38330 192 168 1 51 6800 CONNECTED C 1 INITIAL C 2 INITIAL...

Page 46: ...up seccessfully CME ERROR The socket is already connected when there existed any TCP UDP connection Note mode value can not be modified until after all connections are closed by AT CIPCLOSE Read comm...

Page 47: ...CIPSEND CIPSEND length OK single connection AT CIPMUX 0 CIPSEND 0 3 length OK multi connection AT CIPMUX 1 Execution command AT CIPSEND OK After AT CIPMODE 1 and a TCP UDP single connection has been...

Page 48: ...st command AT CIPWND CIPWND range of linkid range of tcp_window_size OK Parameter definition parameter definition value value instruction linkid connection id 0 3 tcp_window_size TCP window size 0 102...

Page 49: ...CIPCCFG CIPCCFG range of wait_time range of frame_size OK Parameter definition parameter definition value value instruction wait_time waiting time 1 65535 unit ms default value 100 when the waiting ti...

Page 50: ...ECT OK status in otherwise ocassions it will return ERROR Status after closure is IP CLOSE in single connection mode parameter definition parameters definition value value instruction id Link No 0 3 i...

Page 51: ...8 1 160 192 168 4 1 OK 192 168 1 160 STA IP 192 168 4 1 AP IP AT CIFSR 1 192 168 1 161 255 255 255 0 192 168 1 1 Set the STA IP OK 5 3 9 Configure module as a server AT CIPSERVER Syntax command type g...

Page 52: ...uction non transparent transmission IPD len data In single connection mode CIPMUX 0 received data will take IPD as header RECEIVE id len data In multi connection mode CIPMUX 1 data represents received...

Page 53: ...efinition value value instruction mode TCPIP application mode 0 normal mode default mode 1 transparent transmission mode 5 3 12 Set the reconnection settings on a TCP link AT CIPRCON Set command deter...

Page 54: ...ion 1 Reconnect after both disconnections When recon_status is set to 1 the times of initiations of reconnection will not controlled by recon_times and the module will keep on reconnecting until the T...

Page 55: ...current settings saved by CIPSCON 1 C displays the setting by CIPSTART S displays the setting by CIPSERVER DATA_MODE displays the setting by CIPMODE CIPRCON displays the setting by CIPRCON parameter d...

Page 56: ...STO Default value is 180 mode Transparent transmission mode 0 Normal mode AT mode 1 Transparent transmission mode Examples cmd resp example Decription and instruction AT CWMODE CWMODE 1 OK AT CIPMODE...

Page 57: ...D 0 1 OK parameter definition parameter definition value value instruction n Data sending mode 0 Common mode also called slow sending mode when server receives TCP data module responds SEND OK 1 Quick...

Page 58: ...d Attention no other character at front or back 5 3 17 Application examples Module can work as STATION on WIFI level also can work as AP and AP STATION Module can work as SERVER or CLIENT on transmiss...

Page 59: ...s up send 5 characters hello to serial port module will automatically send data SEND OK means sending is successful IPD 14 hello thisispc Module receives server s data and send to serial port directly...

Page 60: ...INITIAL C 2 INITIAL C 3 INITIAL Reboot module Module will re enter transparent transmission after reboot and set up one connection automatically Connection parameter is the same as saved last time 1 3...

Page 61: ...8 4 1 8800 192 168 4 11 2 65074 CONNECTED C 1 TCP 192 168 4 1 8800 192 168 4 112 50114 CONNECTED C 2 INITIAL C 3 INITIAL RECEIVE 0 10 0123456789 Receive data from CLIENT on link 0 the content is 01234...

Page 62: ...l automatically save the original mode after module reboot It will be AP also if it is AP mode before reboot and keeps the same AP parameters SSID password and so on as before reboot STATION join the...

Page 63: ...TCP 192 168 4 100 777 7 To set up one connection with USER s server connection number is 2 OK 2 CONNECT OK RECEIVE 2 11 hhhhhhfdddd receive one pack of data from USER AT CIPSEND 1 11 Receive data fro...

Page 64: ...send out by itself 0 SEND OK AT CIPSTATUS Inquire TCPIP status OK STATE IP STATUS S 0 3366 LISTENING C 0 UDP 192 168 4 1 3366 192 168 4 10 0 51733 CONNECTED C 1 TCP 192 168 1 119 35669 120 209 1 97 15...

Reviews: