RAK 425 Series User Manual Download Page 1

RAK425 User Guide

1

RAK425 Serial WIFI Module

User Guide V1.4

Shenzhen Rakwireless Technology Co.,Ltd

www.rakwireless.com

Mail

[email protected]

Summary of Contents for 425 Series

Page 1: ...RAK425 User Guide 1 RAK425 Serial WIFI Module User Guide V1 4 Shenzhen Rakwireless Technology Co Ltd www rakwireless com Mail info rakwireless com...

Page 2: ...1 Overview 8 2 2 Key Applications 8 2 3 Device Features 8 2 4 Feature Description 9 2 4 1 Hardware Interface 9 2 4 2 Wireless Drivers 9 2 4 3 TCP IP 10 2 4 4 Power Consumption 10 3 Hardware Introducti...

Page 3: ...tional Demonstration 30 5 Assistant AT Command 32 5 1 Syntax 33 5 2 Open AssistantCommand 34 5 3 Module Management Commands 34 5 3 1 Open ASCII Display 34 5 3 2 Query Module MAC address 35 5 3 3 Enter...

Page 4: ...eless networks 38 5 5 4 Get wireless network 38 5 5 5 one key networking command 39 5 5 6 WPS configuration commands 40 5 5 7 Check IP status 40 5 5 8 Ping command 41 5 5 9 Query TCP connection status...

Page 5: ...own as Figure 1 1 Figure 1 1 View of Development Board Table 1 2 Main Peripherals Function Name Description External Interface Power DC5V Power Supply DC 5V input RS232 The main communication interfac...

Page 6: ...ns that the module start properly If the power Status light is not on try pressing the Reset button if the light still remains off please contact Sales In the module factory mode after power up it cre...

Page 7: ...RAK425 User Guide 3 Figure 1 3 AP Scanning after Factory Doubleclick to join the network the Link lights up an IP address will be assigned as Figure 1 4 shows Figure 1 4 Join inFactory AP...

Page 8: ...ops up enter authentication username admin password admin As Figure 1 5 shows Figure 1 5 WEB Authentication The built in WEBServer interface is shown AP settingsand IO communication settings can be vi...

Page 9: ...t Open serial port tool select the COM port The default baud rate is 115200 data bit is 8 and stop bit is 1 no parity check no flow control Then open network debugging tools TCP UDP tools to establish...

Page 10: ...t this point the module becomes a virtual serial port on the network data from serial port and network can be exchanged Figure 1 9 Factory Pass throughTest Keep in mind the state of the indicators Sta...

Page 11: ...uick flashing Methods for module to factory reset There is a Default button on developmentboard it is used when configuring mistakes occur or forget the current configuration parameters for the module...

Page 12: ...ance low power consumption and flexibility to meet the various needs of customers It can also provide test reports allowing customers to get started quickly shorten the development cycle The RAK425 mo...

Page 13: ...the lowest power consumption of 1 1uA Small package size Small package size 20 5mm 15 5mm curved needle height 6 4mm vertical needle height 8 7mm FCC RoHS and CE compliant 2 4 Feature Description 2 4...

Page 14: ...n Support HTTP protocol TCPC TCPS keep alive time setting and TCPC reconnection 2 4 4 Power Consumption The module supports four power consumption modes Fullspeed working mode withapprox 80mA average...

Page 15: ...Hardware Introduction 3 1 Module type Figure 3 1 RAK425BI Top View Figure 3 2 RAK425BI Bottom View Figure 3 3 RAK425BL Top View Figure 3 4 RAK425BL Bottom View Figure 3 5 RAK425BX Top View Figure 3 6...

Page 16: ...I PU Module reset pin low effective 5 STATUS O PU Normal startup output pin output low effective 6 RXD I Serial flow control pin ready to receive low effective 7 TXD O Serial data communication inter...

Page 17: ...ulling down Status indicator Module started properly On Output Low Module failed to start Off Module firmware is in upgrade quick flashing Module is ready to enter factory mode quick flashing Module U...

Page 18: ...mode allowing parameters management and query The module chooses mode according to the MODE pin level which is high default it enters into the pass through mode If low then turnsinto the assistant co...

Page 19: ...ms Factory parameters can be modified by the customer User parameters When the module is in proper use and configured before it will enable the new configuration as user parameters and these user para...

Page 20: ...ss is default recognized as gateway address such as 192 168 7 1 When in STA mode if the IP address is automatically acquired module IP address cannot be determined However with the help of RAK4xx Wire...

Page 21: ...AP Mode AP mode is set to generate an encrypted WIFI wireless network similar to our common wireless router It is mainly applied for factory configuration also for data collection point simple and pr...

Page 22: ...gurable whether the network has broadcast that can be scanned by other WIFI device for security reasons choose not to broadcast Select a channel and whether or not the network is encrypted Currently t...

Page 23: ...the module cannot connect with the set route after reset it will automatically revert to the factory parameters AP for one minute and then try to connect the set route for another one minute and so fo...

Page 24: ...erial port baud rate autobaud is not supported data bits parity bits and stop bits It supports hardware flow control and 485 one way communication function The interval of Serial freedomsub package is...

Page 25: ...data S0 meansthe data sent and received by SocketA and S1 by SocketB TCP timeout parametermeans that if the TCP connection is no data communication within the set time the module will close the TCP c...

Page 26: ...RAK425 User Guide 22 Figure 4 7 Advanced Management Page...

Page 27: ...Firmware Upgrade The module provides wireless upgrade functionality to facilitate customer evaluation Please upgrade carefully for technical support please contact RAK shown as Figure 4 8 Figure 4 8 F...

Page 28: ...RAK module can be found in LAN after scanning Click to select the module for authentication enter the default authentication When succeeded configurethe corresponding parameters save and reset See Fi...

Page 29: ...settings Software provides open source customers can also independentlydesign Select the module corresponding serial interface and click Open the module enters an assistant command mode After success...

Page 30: ...l access The other one is to create a TCP client for LAN server or Extranet Internet server access First create a TCP server in LAN 192 168 1 101 12345 shown as Figure 4 11 Figure 4 11 TCP Server in L...

Page 31: ...uter Figure 4 14 Fill in Password Now configure IO communication socket open dual sockets set socketA to TCP server local port 25000 ignore the target server address and port number shown as Figure 4...

Page 32: ...r the restart until the link light on the development board starts flashing the module is connected to the specified router then there is a client connected to SocketB 192 168 1 120 12345 this is the...

Page 33: ...User Guide 29 Figure 4 17 Assigning IP Create another TCP client on the TCP UDP tool connecting to module TCP server build SocketA 192 168 1 120 25000 Shown as Figure 4 18 Figure 4 18 Dual Socket Esta...

Page 34: ...module the module will connect user s phone to the network specified open the configuration software provided wait a few seconds the module will automatically connect to a specific network Click Defau...

Page 35: ...with the MAC address of the phone it is primarily because the module is already networked but DHCP IP is not assigned Check signal value of the router and whether the DHCPServer is turned on or the r...

Page 36: ...ad user configuration at read_restoreconfig r n Read factory configuration at write_restoreconfig configuration parameter length configuration parameter r n Modify factory configuration at copy_cfg Co...

Page 37: ...2 If the command failed the return value ERROR code Note ERROR is ASCII code code hexadecimal for example ERROR r n HEX 45 52 52 4F 52 FE 0D 0A code oxFE AT command format introduction AT command beg...

Page 38: ...o enter the command mode waiting for the final confirmation wait for 3S 3 PC master MCU receives a U 0x55 and sends within 3S the module the final confirmation with U 0x55 Module receives this confirm...

Page 39: ...sion Command at version r n Descrption Check the current version of the firmware including the host version and WLAN version Return OK 2 0 5 r n ERROR code r n 5 3 5 Reset module Command at reset r n...

Page 40: ...example at write_config 622 wifi_mode AP power_mode full ap_channel 1 ap_ssid R AK_000001 ap_secu_en 0 r n return OK r n ERROR code r n 5 4 2 Read user configuration Command at read_config r n Descrip...

Page 41: ...ption Modify the default configuration parameters also customers can modify the default configuration parameters as required For example at write_restoreconfig 602 wifi_mode AP power_mode full ap_chan...

Page 42: ...ommand at scan channel ssid r n Description Scan the surrounding wireless networks For example at scan 0 r n Scanning all channels at scan 0 RAKwireless r n Scanning a wireless networkcalled RAKwirele...

Page 43: ...scan is needed to rescan 3 This command is invalid in the mode where at ascii 1 Table 5 3 Command Returns 5 5 5 one key networking command Command at easy_config r n Description If this command is se...

Page 44: ...IP information of module including MAC address IP address subnet mask gateway DNS server If the DHCP is set but IP is not assigned yet check out the module address is 127 0 0 1 Return Table 5 4 IP com...

Page 45: ...um packet is 1000bytes default is 64bytes Optional 5 5 9 Query TCP connection status Command at tcp_status uuid r n Description Check TCPClient connection status for the corresponding uuid uuid 0 indi...

Page 46: ...rt Indicates the target port UDP server module as the initiative to send data to the target host dest_ip Indicates the target IP When other types you can fill 0 datalen Indicates the received data len...

Page 47: ...cates the received data content 5 7 Appendix Read write module configuration of keywords and parameters keywords parameters Mode select wifi_mode AP mode AP STA mode STA power_mode Full power full Aut...

Page 48: ...600 uart_datalen 8 5 8 uart_parity_en none 0 odd 1 Even 3 uart_stoplen 1 1 2 uart_rtscts_en forbidden 0 enable 1 RS485 RTS 2 RTS as a transceiver pin switch High level to send Socket parameters socket...

Page 49: ...up RAK 16B WEB Setting user_name admin 16B user_password admin 16B web_en 0 english default 1 Chinese default Additional features optional mode_pin Wps function wps Cmd function easy net_switch disabl...

Page 50: ...ict Beijing Shanghai FAE mailbox steven tang rakwireless com Tel 021 54721182 Fax 021 54721038 Address Room 306 Ran East Business Center 1 Building No 150 2161 Lane Wanyuan road Minhang District Shang...

Page 51: ...tial Draft 2014 02 14 V1 1 Add user parameters appendix factory 2014 07 01 V1 2 Update the contact way Update the document format 2014 08 22 V1 3 Update the Physical picture 2014 08 28 V1 4 Deletes ch...

Reviews: