User Tools

Site Tools


Sidebar

RAK Links

iot-product:rak411

RAK411


Introduction

RAK411 module is aWi-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. Through SPI interface, the module’s maximum transmission rate is up to 2Mbps.

RAK411 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.

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


Features

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 four-wire SPI interface
  • Support SPI Clock up to Maximum 16Mhz
  • Minimalist hardware peripheral circuit design
  • Support Station, Ad-hoc and AP modes
  • Support DHCP SERVER / DHCPCLIENT
  • 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

  • Support clock 16MHz Maximum
  • Interface actual throughput up to 2Mbps
  • Four-wire SPI interface, support SPI data interrupt pin

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

TCP/IP

  • 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
  • Standby mode, with power consumption<2uA

System Diagram


Operational Process

RAK411 SPI 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. RAK411 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.


SPI Function Syntax

 SPI Function usage format:
     	retval=  SPI Command();
	if(retval!=RUN_OK)
  	{	
    	   return retval;
  	}
  	else
  	{            
	   RAK_RESPONSE_TIMEOUT(RAK_GETVERSION_TIMEOUT);
	   rak_read_packet(&uCmdRspFrame);
           printf("******");
	   rak_clearPktIrq();
  	}
  For Example:
  This function is the module connects to the router for used.
  	rak_sys_init(&uCmdRspFrame);  //----Info Module
	for(i = 0; i < 18; i++)
	{
           printf("%c",uCmdRspFrame.initResponse.strdata[i]);	
	} 
	
	retval=  rak_get_version();    //----Get Module Version
	if(retval!=RUN_OK)
  	{	
    	   return retval;
  	}
  	else
  	{           
	   RAK_RESPONSE_TIMEOUT(RAK_GETVERSION_TIMEOUT);
	   rak_read_packet(&uCmdRspFrame);
	   printf("version=%s\r\n",uCmdRspFrame.versionFrame.host_fw);
           rak_clearPktIrq();
  	}

	retval=rak_set_psk(&rak_strapi.uPskFrame);    //----Set password
	if(retval!=RUN_OK)
  	{	
    	   return retval;
  	}
  	else
  	{         
	   RAK_RESPONSE_TIMEOUT(RAK_SETPSK_TIMEOUT);
	   rak_read_packet(&uCmdRspFrame);
	   rak_clearPktIrq();
  	} 
   	
	retval= rak_connect(&rak_strapi.uConnFrame);   //----Connecting router
	if(retval!=RUN_OK)
  	{	
    	   return retval;
  	}
  	else
  	{
	   RAK_RESPONSE_TIMEOUT(RAK_CONNECT_TIMEOUT);
	   rak_read_packet(&uCmdRspFrame);
	   rak_clearPktIrq();
  	}  

	retval = rak_ipconfig_dhcp(RAK_DHCP_CLENT_ENABLE) ;  //----Get IP address
	if (retval!=RUN_OK)
	{
	   return retval;
	}
	else 
	{
	   RAK_RESPONSE_TIMEOUT(RAK_CONNECT_TIMEOUT);
	   rak_read_packet(&uCmdRspFrame);
	   if (uCmdRspFrame.ipparamFrameRcv.status==0)
	   {
		printf("****");	
	   }
	   else 
	   {
	      printf("DHCP Error!\r\n") ;	   
	   }
	   rak_clearPktIrq();
	}
  

Please refer to our sample code for detailed programmingRAK411 API for keil_1.0.6.1


SPI Function List

Function Description
Module Management Commands
rak_sys_init Initialize module, read boot information
rak_get_version Check software version
rak_setpwrmode Set module power mode
rak_read_status Read module status information
rak_reset Reset module
rak_set_upgrade Firmware upgrade for modules
Network Operation Commands
rak_scan Scan wireless networks
rak_getscan Reads a specified number of scan results
rak_set_psk Set network password
rak_set_channel Set network channel
rak_connect Connect wireless network
rak_set_ipstatic Configure Static IP Address
rak_ipconfig_dhcp Setting DHCP Mode
rak_easy_config Connecting network by Easyconfig
rak_wps Connecting Network by WPS
rak_get_con_status Get network connection status
rak_ipconfig_query Check module IP information
rak_get_rssi Get network signal strength of module
rak_dns DNS
rak_ping Ping hosts in the network
rak_apconfig AP Network Advanced Settings
rak_set_listen Set network listening intervals
rak_disconnect Disconnect the current wireless network
Socket Operation Commands
rak_udp_client Establish UDP client
rak_udp_server Establish UDP Server
rak_tcp_client Establish TCP client
rak_tcp_server Establish TCP Server
rak_socket_close Close an opened socket handle
rak_get_tcps Gets the number and the information for the tcp sever to connect to client
rak_send_data Send data to an opened socket handle
rak_read_data Read command returns / network data / network information
Save parameters commands
rak_storeconfig_data Store network configuration parameters
rak_storeconfig Store the current network parameters
rak_web_store Store web server built-in parameters
rak_auto_connect Enable automatically connecting
rak_start_web Start web server and configure module
rak_get_storeconfig Get saved network parameters
rak_get_webconfig Get web server built-in parameters

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


Pin Definition

PinNo. 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.
27 SPI_INT O SPI mode interrupt pin.
“0”—— idle level.
“1”—— has data sent to host.
31 SPI_MISO O SPI slave: data of SPI Master Input, Slave Output.
32 SPI_MOSI I SPI slave: data of SPI Master Output, Slave Input.
33 SPI_CLK O SPI slave: SPI clock input.
34 SPI_CS I SPI slave: SPI chip select input.
Others NC NC Remain disconnected when no use.

Hardware Connection


SPI Timing Diagram

CPOL = 0 -------------------- SCK is idle in low level voltage
CPHA = 0 -------------------- Data is latched on clock rising edge, 
                                 while transmitted on clock falling edge
MSB_FIRST ------------------- MSB is first sent8 BIT
MODE -------------------------Data length is 8
bitsCS -----------------------Slave selective signal is effective low

Reference Design

EVB Use Guidance

Function Name Description
External Interface Mini USB / DC5V Power Supply, 5V DC input
Button Reset Module reset button
Pin out P1 Pin Reset and Pin Link
P2 SPI Interface, refer to print detail for interface order
Power consumption Pin J1 Power Consumption Interface
LED Indicator LED1 Power Indicator
LED4 Link Indicator

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

Specification

Use manual

SDK

Hardware encapsulation

Update Firmware

Tool

Order information

Product Describe Single Tray Packing Minimum Package Evaluation Board
RAK411AS-XXXX SPI interface module,with on-board antenna 32pcs/tray 320pcs RAK411-EVB
RAK411BS-XXXX SPI 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/rak411.txt · Last modified: 2017/02/24 10:22 by exxdata