User Tools

Site Tools


RAK Links





RAK413 module is a Wi-Fi module that fully compliant with IEEE 802.11b/g/n wireless standards, with internally integrated TCP / IP protocol stack, supporting numerous protocols such as ARP, IP, ICMP, TCP, UDP, DHCP CLIENT, DHCP SERVER, DNS and other etc. It supports AP mode, Station mode and Ad-hoc and mode. Users can easily and quickly use it to networking and data transmission. The baud rate of module serial port is up to 921600bps, which can fully meet the low-rate applications.

RAK413 supports storing parameters, and by the customer commands it determines whether to enable automatic networking to realize easy networking and reduce time for system to networking. The module has built-in WEB server, supporting wireless network parameters configuration, supporting wireless firmware upgrade. It also supports WPS and EasyConfig one-key networking, significantly reducing software development effort.

RAK413has four power management modes, among which the minimum standby power consumption is <2uA, fully meet customer’s requirement for low power design.


Application Area

  • Portable products
  • Home appliances and electrical appliances
  • Industrial sensors
  • Sales terminals
  • Buildings automation
  • Logistics and freight management
  • Home security and automation
  • Medical applications, such as patient monitoring, medical diagnostics
  • Metering (stop timing, measuring instruments, meters, etc.)

Device Features

  • Support IEEE 802.11b/g/n wireless standards
  • Support UART communication with data flow control, with the maximum baud rate of 921600bps
  • Minimalist hardware peripheral circuit design
  • Support Station, Ad-hoc and AP modes
  • Support OPEN, WEP, WPA-PSK, WPA2-PSK and WPS encryption
  • Support TCP, UDP protocols, with maximum 8 UDP/TCP connections
  • Support webpage-based parameter configuration
  • Support WPS and EasyConfig one-key to network connection
  • Support parameter storage, customer orders loading after boot
  • Support parameters store in Deep Sleep State, with connection time as fastest as 300ms
  • Support wireless upgrade firmware
  • On-board ceramic antenna or U.FL antenna connector
  • Operating voltage: 3.3V
  • 4 kinds power working modes, with minimum power consumption as1~2uA
  • FCC, RoHS and CE compliant

Functional Description

HW Interface

  • Baud rate: 9600~921600bps
  • Interface actual throughput up to 600kbps
  • Support hardware flow control, ensuring reliability of data transmission

Wireless Driver

  • Compliant with IEEE 802.11b/g/n standards
  • Support AP、STA 、AD-HOC Mode
  • Support WEP, WPA/WPA2-PSK encryption
  • Fast networking, allowing module to be added to network within 1 sec after power up
  • Support WPS and EasyConfig one-key to network connection
  • Support wireless configuration and firmware upgrade


  • DHCP Client and Server features
  • DNS Client and Server functions
  • TCP Client, TCP Server, UDP Client, UDP Server and Multicast functions
  • 8-way socket applications

Power Consumption

The module supports four power consumption modes:

  • Full speed working mode, with approx 80mA average power consumption,peak current less than 200mA
  • Power-saving mode, with approx 10ma average power consumption, peak current <200mA, DTIM = 100ms
  • Deep sleep mode, with approx 5mA average power consumption, peak current <200mA, DTIM = 100ms(maximum support to 115200bps)
  • Standby mode, with power consumption<2uA

System Diagram

Operational Process

RAK413 UART command operation feature completes a few basic steps of WIFI communication, including network scanning, joining network and obtaining an IP address, and eventually establishing Socket communication. RAK413 provides a variety of convenient operation to implement networking, so that customers can easily complete the network configuration, and concentrate on the management of socket and their own data protocols.

To realize automatic networking management, customers can take advantage of WEB, WPS and EasyConfig configuration features. The module will automatically store paramenters after a successful configuration, and these automatic networking commands can be used any time, letting the module automatically complete networking operation, and returning the results.

AT Command Syntax

 Host to module:
     at+<command>=<para 1>,<para 2>,................<para n>\r\n
 All at commands, including parameters, are ASICII code, such as:
1.After each command is executed, the module will send a return value, as  
the following format
2.If the command is successful, the return value
     OK\r\n or OK<para 1><para 2>.......................<para n>\r\n   
Note: In addition to OK, the other parameters are in hexadecimal, for example,
     OK\r\n      HEX=4F 4B 0D 0A----------------------------No parameters
     OK@\r\n     HEX=4F 4B 64 0D 0A--------------------------parameter =0x64
3.If the command fails, the return value
   ERROR is the ASCII code,<code>is hexadecimal, for example,
     ERROR ?\r\n    HEX=45 52 52 4F 52 FE 0D 0A----------------<code>=oxFE

AT command syntax description: AT command begins with “at +” (all lowercase) and end with “\ r \ n”, the maximum command length is 80 bytes, all other commands beginning with any other format are wrong.

Note:The AT command syntax above does not apply to receiving and sending data commands at + recv_data and at + send_data, for detailed instructions, please refer to at + recv_data, at + send_data

Error Code:

Code Description
-1 Parameter input error (parameter is not recognized / missing parameter / command too long / other illegal parameter)
-10 Module is busy (wait until module processing is completed)
-11 System error (restart module)
-12 Fatal Error (contact factory)
Other See specific command

AT Command List

AT Command Description
Module Management Commands
at+ascii=<mode>\r\n Open ASCII display
at+mac\r\n Check module MAC address
at+version\r\n Check software version
at+pwrmode=<mode>\r\n Set module power mode
at+wake_up\r\n Wake the power module 2 and 3 mode
at+set_hostname=<name>\r\n Set module’s host name
at+get_hostname\r\n Acquire module’s host name
at+reset\r\n Reset module
Network Operation Commands
at+scan=<channel>,<ssid>\r\n Scan wireless networks
at+get_scan=<scan_num>\r\n Reads a specified number of scan results
at+psk=<passphrase>\r\n Set network password
at+channel=< channel >\r\n Set network channel
at+ap=<ssid>\r\n Create a name for AP network
at+adhoc=<ssid>\r\n Create a name for ADHOC network
at+connect=<ssid>\r\n Connecting specified network
at+ipstatic=<ip>,<mask>,<gateway>,<dnsserver1 >,<dns server2>\r\n Configure Static IP Address
at+ipdhcp=<mode>\r\n IP DHCP or opening DHCPSever in AP mode
at+easy_config\r\n Connecting network by Easyconfig
at+wps\r\n Connecting Network by WPS
at+con_status\r\n Get network connection status
at+ipconfig\r\n Query module IP information
at+rssi\r\n Get network signal strength of module
at+dns=< domain >\r\n DNS
at+ping=<host>, <count>, <size>\r\n Ping hosts in the network
at+apconfig=<hidden>,<contry code>\r\n AP Network Advanced Settings
at+listen=<listen interval>\r\n Setting Network Listening Intervals
at+disc\r\n Disconnect the current wireless network
at+set_filter=<mode>,<mac>,<index>\r\n The source MAC address filtering options
at+promisc=<mode>\r\n Caught scanning
Socket Operation Commands
at+ltcp=<local_port>\r\n Establish TCP Server
at+tcp=<dest_ip>,<dest_port>,<module_port>\r\n Establish TCP Client
at+ludp=<local port>\r\n Establish UDP Server
at+udp=<dest_ip>,<dest_port>,<local_port>\r\n Establish UDP Client
at+multicast=<dest_ip>,<dest_port>,<local_port>\r\n Create UDP multicast communication
at+cls=< flag>\r\n Close an opened socket handle
at+send_data=<flag>,<dest_port>,<dest_ip>,<data_length> ,<data_stream>\r\n Send data via an opened socket handle
Receiving data.
Receiving network, socket connection information.
at+http_get=<ip/domain>:<port>/<url>\r\n HTTP GET command
at+http_post=<ip/domain>:<port>/<url>,<data>\r\n HTTP POST command
Save parameters commands
at+storeconfig\r\n Storing Network Configuration Parameters (with parameter)
at+get_storeconfig\r\n Getting Saved Network Parameters
at+web_config=web_param\r\n Modifying Web Configuration
at+get_webconfig\r\n Getting Web-saved Parameters
at+uartconfig=<baud rate>,<data bits>,<stop bits>,<parity>,<flow ctrol>\r\n Configuring UART Parameters
at+auto_connect\r\n Starting WEB Configuration
at+start_web\r\n Starting Automatic Connection

== Pleace see the programming manual for the detailed meaning of the AT command. ==

Pin Definition

Pin Serial No. Name Type Description
1,2,5,12,13,25,36 GND Ground All ground pins are connected to ground pad or the copper.
35 VCC3.3V Power 3.3V power supply.
18 LINK O “0” - STA connected in AP mode, Connected to router in STA mode.
“1” - disconnected Remain disconnected when no use.
19 RESET I Module reset pin, low effective.
31 TXD O Serial data communication interface send.
32 RXD I Serial flow control pin, ready to receive, low effective.
33 RTS O Serial flow control pin, The default outputlow. Active low, ready to receive data /request the other party to send data.
34 CTS I Serial flow control pin, Input pull. Activelow, ready to send data/request each otherto send data. High level cannot send data,low level can send data.
Others NC NC Remain disconnected when no use.

Reference Design

EVB Use Guidance

Function Name Description
External Interface Mini USB/DC5V Power Supply, 5V DC input
RS232 The main communication interface, standard serial port
RS485 Secondary communication interface (485 industrial)
Button Reset Module reset button
Pin out P1 Pin Reset and Pin Link
P2 UART and 232 interface
Power consumption Pin J1 Power Consumption Interface
LED Indicator LED1 Power Indicator
LED4 Link Indicator

* RAK413 EVB User Guide V1.2

Test Open AP

  Welcome to RAK413		//Power on information
at+ascii=1			//Set ascii show 
at+psk=123456789		//Set AP Password
at+ap=RAK473_AP			//Establish AP
at+ipstatic=,,,,0 //Set static IP address
at+ipdhcp=1				//Open dhcp server
at+ltcp=25000				//Set tcp server
  at+recv_data=connect			//Receive STA connection event
  at+recv_data=128,0,47466,	//Receive client TCP connection event
  at+recv_data=0,47466,,12,hello rak413	//Receive data
  at+recv_data=129,0,47466,	//Receive client TCP disconnect event
  at+recv_data=disconnect		//Receive STA disconnect event

Test Connecting Router

  Welcome to RAK413				//Power on information
at+ascii=1					//Set ascii show 
at+psk=123456789				//Set routing password
at+connect=rakwireless				//Connection Route
at+ipdhcp=0					//Dynamic acquisition of IP
at+ltcp=25000					//Create a server TCP
  at+recv_data=128,0,59231,	//Receive client TCP connection event
  at+recv_data=0,59231,,12,hello rak413	//Receive data
  at+recv_data=129,0,59231,	//Receive client TCP disconnect event

Electrical Specification

General specification

Parameters Symbols Value Unit
External supply voltage VCC3V3 -0.3~4.0 V
Maximum RF Input (Reference: 50Ω) RFin +10 dBm
When voltage is 3.3V, IO Max voltage 3V3VinIOMax VCC+0.3 V
When voltage is 3.3V, IO Min voltage 3V3VinIOMin -0.3 V
Storage ambient temperature Tstore -65~+135
Ambient temperature Tambient -40~+85
External voltage Vcc 3.14~3.46 V
ESD resistance ESDHBM 2000 V

RF Transmit Specifications

Symbol Parameter Conditions Typical Value Unit
Ftx Frequency range --- 2.4 GHz
Pout Output power --- --- ---
802.11b 1Mbps 17 dBm
802.11g 6Mbps 17 dBm
802.11n,HT20 MCS0 17 dBm
802.11g,EVM 54Mbps 14 dBm
802.11n,HT20EVM MCS7 10 dBm

RF Receiver Specifications

Parameter conditions Test conditions Typical Value Unit
Receiver sensitivity 11b,1Mbps -- -97 dBm
11b,2Mbps -- -92 dBm
11b,2Mbps -- -90 dBm
11b,5.5Mbps -- -88 dBm
11b,9Mbps -- -91 dBm
11b,18Mbps -- -87 dBm
11b,36Mbps -- -81 dBm
11b,54Mbps -- -75 dBm
11n,MCS1,13Mbps -- -89 dBm
11n,MCS1,26Mbps -- -82 dBm
11n,MCS1,52Mbps -- -75 dBm
11n,MCS1,65Mbps -- -72 dBm
Maximum input signal CH7 11g,54Mbps 10 dBm
Adjacent channel suppression 6Mbps -- 37 dBc
54Mbps -- 21 dBc
MCS0 -- 38 dBc
MCS7 -- 20 dBc

Data download


Use manual


Hardware encapsulation

Update Firmware


Order information

Product Describe Single Tray Packing Minimum Package Evaluation Board
RAK413AS-XXXX UART interface module,with on-board antenna 32pcs/tray 320pcs RAK413-EVB
RAK413BS-XXXX UART interface module,with external antenna 32pcs/tray 320pcs

Where to Buy

If you want to buy our products, please go to our store: RAK Store

RAK 2016/11/16 17:15

iot-product/rak413.txt · Last modified: 2017/02/24 10:37 by exxdata