Fast Access Wi-Fi(Usr-Link) - Jinan USR IOT Technology USR-WIFI232-A2 User Manual

Table of Contents

Advertisement

Click on the "connect" page and then implements a connection, so a serial port with page can
send or receive data from each other.This module websocket server support 8 client connection
at
This function for web applications, and for web users with higher response speed, if you want to
customize the corresponding web page, can connect your company.
Note:This function occupy the 8000 port of module.

4.8.7 Fast access Wi-Fi(usr-link)

When one module works in AP mode, it opens a UDP port used to receive fast access Wi-Fi
commands, the port number is 49000. The phone PDA can directly connect to Wi-Fi network of
the module, send commands to search router list and set SSID and password. After the
completion of set up, module will automatically restart, connected to the router, work in the STA
mode at this time.
Protocol format
Searching command
No
Name
1
head
2
length
3
cmd
4
check
Response for searching
No
Name
1
head
2
length
3
cmd
4
AP num
5
SSID1
6
separator
7
Signal
strength1
8
separator
...
...
M
SSID n
M+1
separator
M+2
Signal
strength
M+3
separator
M+4
check
Example:
Data from phone PDA to module (HEX): FF 00 01 01 02
Data from module to phone PDA (HEX): FF 00 14 81 02 54 45 53 54 31 00 40 0D 0A 54 45 53 54
32 00 37 0D 0A 1F
Explanation:
Jinan USR IOT Technology Limited
USR-WIFI232-A2 User Manual
Websocket Page
Figure 25
the
Num of Bytes
Description
1
fixed value:0xFF
2
Sum of data bytes from length bytes to check
byte(not contain length bytes and check byte).
1
Command type, 0x01
1
Sum of bytes from head (not contained) byte to
check byte (not contained).
Num of Bytes
Description
1
fixed value:0xFF
2
Sum of data bytes from length bytes to check
byte(not contain length bytes and check byte).
1
Command type, 0x81
1
The number of AP what module scans
Unsized
The SSID of router 1
1
Separator of SSID1, fixed value:0x00
1
Signal strength of router 1,0~100:0%~100%
2
Separator
0x0D,0x0A
...
.........
Unsized
The SSID of router n
1
Separator of SSID n, fixed value:0x00
1
Signal strength of router n,0~100:0%~100%
2
fixed value:0x0D,0x0A
1
Sum of bytes from head (not contained) byte to
check byte (not contained).
Page 33 of 76
http://www.usriot.com
same
of
signal
strength1,
time.
fixed
value:
tec@usr.cn

Advertisement

Table of Contents
loading

Table of Contents