USR IOT USR-K7 User manual

USR-K7 User Manual www.usriot.com
Contents
1. Get Start ......................................................................................................................................................................... 6
1.1. Hardware Testing Environment............................................................................................................................ 7
1.1.1. Hardware Preparing.................................................................................................................................. 7
1.1.2. Hardware Connection............................................................................................................................... 9
1.2. Net Testing Environment ..................................................................................................................................... 9
1.3. Default............................................................................................................................................................... 11
1.4. Data Transport Testing....................................................................................................................................... 11
2. Overview....................................................................................................................................................................... 12
2.1. Brief Introduction .............................................................................................................................................. 12
2.2. Features............................................................................................................................................................. 13
2.3. Basic Parameters................................................................................................................................................ 14
3. Hardware Parameters................................................................................................................................................... 15
3.1. Pin Definition..................................................................................................................................................... 15
3.2. Dimension.......................................................................................................................................................... 17
4. Product Function .......................................................................................................................................................... 18
4.1. Net basic function.............................................................................................................................................. 19
4.1.1. IP address/subnet masks/gateway.......................................................................................................... 19
4.1.2. DNS Address ........................................................................................................................................... 22
4.1.3. Hardware Restore the Factory Function ................................................................................................. 22
4.1.4. Web Server ............................................................................................................................................. 23
4.1.5. Net Firmware Upgrade ........................................................................................................................... 24

USR-K7 User Manual www.usriot.com
4.2. Socket ................................................................................................................................................................ 24
4.2.1. TCP Client mode ..................................................................................................................................... 26
4.2.2. TCP Server Mod ...................................................................................................................................... 30
4.2.3. UDP Client mode..................................................................................................................................... 33
4.2.4. UDP Server mode ................................................................................................................................... 37
4.2.5. HTTPD client ........................................................................................................................................... 40
4.2.6. Websocket .............................................................................................................................................. 42
4.2.7. USR-VCOM.............................................................................................................................................. 45
4.3. Serial Function................................................................................................................................................... 46
4.3.1. Serial port Basic Parameters ................................................................................................................... 46
4.3.2. Flow Control ........................................................................................................................................... 47
4.3.3. Serial Port Mapping ................................................................................................................................ 48
4.3.4. Similar RFC2217...................................................................................................................................... 49
4.4. Special Function................................................................................................................................................. 52
4.4.1. Heartbeat Package Function................................................................................................................... 53
4.4.2. Modbus Gateway.................................................................................................................................... 54
4.4.3. Registration Package............................................................................................................................... 55
4.4.4. USR-cloud ............................................................................................................................................... 57
4.4.5. Net Printing............................................................................................................................................. 60
4.4.6. Customize Webpage ............................................................................................................................... 61
4.4.7. Customize MAC....................................................................................................................................... 62
4.4.8. Restart Timeout ...................................................................................................................................... 63

USR-K7 User Manual www.usriot.com
4.4.9. Clear Buffer Data..................................................................................................................................... 64
4.4.10. Short Connection.................................................................................................................................. 65
5. Parameters Setting ....................................................................................................................................................... 66
5.1. Net Protocol Setting Parameters........................................................................................................................ 66
5.1.1. Setup Software Setting Parameters ........................................................................................................ 66
5.1.2. Setting Protocol Setting Parameters ....................................................................................................... 72
5.2. Webpage Setting Parameters ............................................................................................................................ 80
5.3. AT Command ..................................................................................................................................................... 86
5.3.1. Net AT Command.................................................................................................................................... 86
5.3.2. Serial AT Command................................................................................................................................. 86
5.3.3. Error AT Command ................................................................................................................................. 88
5.3.4. AT Command .......................................................................................................................................... 89
5.3.5. AT Command Details............................................................................................................................... 91
6. Contact us................................................................................................................................................................... 119
7. Disclaimer................................................................................................................................................................... 120
8. Modified History......................................................................................................................................................... 120

USR-K7 User Manual www.usriot.com
1. Get Start
K7 is a module that can realize data transmission between the Network and TTL serial port, which is equipped with
ARM cortex-M4 processor. No need to care of the details, the module realize the protocol converse.parameters can be
set in the software and webpage, configure one time and save forever.
This character aimed at get start and the user are advised to operation one time according to the instr to
understand K7 completely.
Questions occur in the testing, you can refer to our application case and answers:
https://www.usriot.com/support/faq/ethernet-series/
Also you can submit the problem into the support: http://h.usriot.com/
Product link: https://www.usriot.com/products/super-port-serial-ttl-uart-to-ethernet-module.html
Related software:
M4 setting software: https://www.usriot.com/support/downloads/usr-m4-setup-software-v234102.html
(also, it can be used in the industrial serial to Ethernet Converter:USR-N668,USR-N510, USR-N520, USR-N540,
USR-TCP232-410S, USR-TCP232-419 and industrial ethernet modules: USR-TCP232-E2, USR-TCP232-ED2.)
Testing software: https://www.usriot.com/support/downloads/usr-tcp-test-testing-software.html

USR-K7 User Manual www.usriot.com
1.1.2. Hardware Connection
To test the communication converse from serial port to net, connect the USR-K7 with evaluation board, and
connected with the PC using serial cable, then connect the net port of K7 and PC. Power on the it. The diagram is as
fellow:
Diagram 1.1.2-1 Hardware Connection
Note: the power adapter and cable are from USR.
1.2. Net Testing Environment
To prevent from searching nothing, not ping and not opening the webpage, you should testing the below contents
before using.
1) Shut down firewall and antivirus software.
2) Shut down net card none-related and reserve only one local connection.
3) For the direct connection between PC and server, please provide a static IP in the same LAN with the IP of K7,
e.g.192.168.0.201.

USR-K7 User Manual www.usriot.com
Diagram 1.2-1 Local Connection of the PC
Item
Content
Username
admin
Password
admin
IP address of K7
192.168.0.7
Subnet masks of K7
255.255.255.0
Default gateway of K7
192.168.0.1
Default mode of the port1 k7
TCP Server
Default local port of the port1 K7
23
Serial port baud rate
115200

USR-K7 User Manual www.usriot.com
1.3. Default
Form 1.3-1 Default parameters
1.4. Data Transport Testing
After the above steps, the K7 can realize the bi-direction between the serial port and ethernet, operation steps are
as fellows:
1) Open the “USR-TCP232-Test.exe” connecting the hardware as Diagram 1.1.2-1 .
2) Net setting change into TCP Client, enter the 192.168.0.7 into IP address, server port is 23. then click to build
TCP connection. serial baud rate:115200, Serial port parameters: none/8/1 then open the serial port.
From now, we can have the data transmit testing from the serial port to network.
Direction from serial port to network:
PC serial port →K7 serial port →K7 network →PC network data
Direction from network to serial port:
Serial port parameters
None/8/1

USR-K7 User Manual www.usriot.com
PC network data →network →K7 serial port →PC serial port
As the below:
Diagram 1.4-1 Default Parameters Testing
2. Overview
2.1. Brief Introduction
Super port module K7 is a new serial Ethernet module. It is a module that can realize data transmission between
the network and TTL serial port. This module is equipped with ARM cortex- M4 processor, which has the advantages of
low power consumption, fast speed and high stability.
In terms of the volume, the width of the device is equal to the common RJ45 port, and the length is less than twice
length of the common network port, with the industry- leading ultra-small volume, and the current is only 130mA when

USR-K7 User Manual www.usriot.com
working at full speed.
This product is developed on the basis of the hardware and software of serial to ethernet M4 series. The internal
integration of TCP/IP protocol stack, user can use it to complete the embedded device networking function easily,saving
the development process of human, material and development cycle, so that products can be faster into the market,
enhance competitiveness.
Passed the strict testing, K7 has successful case in Banks, highways, large corporate networks, busy webcam
networks and complex network environments such as fiber-optic to Ethernet.
2.2. Features
Equipped with ARM cortex-M4, industrial width of temperature,TCP/IP protocol stack, more stable and reliable.
10/100Mbps net port, supports Auto-MDI/MDIX
Supports TCP server, TCP client, UDP server, UDP client and HTTPD client work mode
Build-in webpage where can set the parameters, also can customize webpage. The port of the webpage can be
defined
Enable 485, and the serial port can work as 485
Supports RTS/CTS hardware flow control and Xon/Xoff software flow control
Supports USR-VCOM
Baud rate:600bps~1Mbps; and five parity way:none, odd, even, mark, space
Supports modbus gateway
Supports Reload button, hardware restore to factory setting
RJ45 have Link/Data indicator, in the net port, there is Isolating transformer,1.5KB ESD
The unique MAC in the world, and the user can self-defined
Supports net upgrade firmware,DDNS, DHCP
Supports keepalive, check dead connection and abnormal and reconnection
Supports password and username, more safety

USR-K7 User Manual www.usriot.com
Supports two websocket to realize the bi-direction transparent transmission between serial port and webpage.
2.3. Basic Parameters
Parameter
Value
Hardware parameters
Input Voltage
DC3.0~3.6V( 3.3V is best)
Working Current
130mA@3.3V
Net port
Rj45, 10/100mMbps
Encapsulation way
Pin
Serial port
600~1M(bps)
Software parameters
Network protocol
IP, IPV4, TCP, UDP, DHCP, DNS, HTTP, ARP,
ICMP, Web socket
Access way to IP
Static IP, DHCP
DDNS
Support
User parameters
Software setting, webpage setting, AT
command
Single transparent transmission
TCP Server/TCP client/UDP Server/UDP Client
Modbus
Supports modbus gateway
Webpage to serial port
Websocket
Similar RFC2217
Support
Httpd client
support
Self-defined webpage
support

USR-K7 User Manual www.usriot.com
TCP server connection
Default 4 and maximum 16
Net buffer
Send:16Kbyte; receive:16Kbyte
Serial port buffer
Send:2K byte;receive: 2kbyte
Average transport delay
<10ms
Set software
USR-VCOM, USR-Cloud, parameters setting
software
others
Certification
CE,FCC, ROHS
Size
35.0x19.39x18.25 mm(L*W*H)
Operating Temp.
-40~+85°C
Storage temp
-40~+105°C
operating humidity
5%~95% RH
Storage humidity
5%~95% RH
3. Hardware Parameters
3.1. Pin Definition

USR-K7 User Manual www.usriot.com
Diagram 3.1-1Pin
NO.
Name
Type
Instr
1
NC
NC
Have not opened, please hang
2
NC
NC
Have not opened, please hang
3
CTS
I
Default disable,can be configured into hardware flow control(clear to send)
4
RST
I
Module reboot(200ms or above low level pulse to make the module reboot)
5
RTS
O
Default 485 receive and send control, high level pulse send. Configured into
hardware flow control.(request to send)
6
Reload
I
Module can restore to factory setting, under power off(or reboot)put down reload
then power on, keep the reload down for 5s, after 5s put up and then reload to
factory setting.
7
NC
\
Have not opened, please hang
8
RXD
I
Serial port receive(3.3V,TTL)
9
TXD
O
Serial port send(3.3V, TTL )

USR-K7 User Manual www.usriot.com
10
GND
Power
Ground(including power and signal)
11
VDD
Power
Power (DC3.3V is supporting)
12
NC
\
Have not opened, please hang
13
ETH
\
Network shield pin
14
ETH
\
Network shield pin
15
Fixed
column
\
Module fixed column
16
Fixed
column
\
Module fixed column
Form 3.1-1 Pin Definition
3.2. Dimension

USR-K7 User Manual www.usriot.com
Diagram 4-1 K7 Function
4.1. Net basic function
4.1.1. IP address/subnet masks/gateway
1.IP address is the identity representation of the module in the LAN, which is unique in the LAN, so please be sure there
is no another device same as it in the LAN.
Static IP
Handle to setting. Note fill the IP, subnet masks and gateway.
Static IP adopted to the environment that required to statistics the IP and the device and makes them correspond

USR-K7 User Manual www.usriot.com
one to one.
Advantage: accessing the device that can not distribute IP address can be searched via UDP broadcast.
Disadvantage: different net segment in the different LAN can not communicate normally.
DHCP
Get IP address , gateway address, DNS server and other information from the gateway server to easy the step for
setting IP address, DHCP adopted to the environment that have no special requirement to IP.
Advantage: accessing the device equipment with the DHCP server such as router can communicate directly.
Reduce the hassle of setting IP address and subnet masks.
Disadvantage: accessing the device with no DHCP server such as computer directly, K7 can not work.
2.Subnet masks is a 32 address, used to determine the host number and the network number by shielding some IP
address, indicates the number of subnet and determine the flag within the subnet. Using combine with the IP address.
The subnet masks needed to set, usually we use the subnet masks: 255.255.255.0. The number of IP addresses in the
subnet is 2 to the eighth power minus 2, that is, 256-2=254, and the general host addresses are all 0 or 1 (binary) has its
special role.
3.Gateway is the net port of the LAN. If you connect the router to access the internet, the gateway is the router IP
address, setting wrong and can not access into the net. No device such as router and no setting, keep the default.
4.Related AT command.
Name
Instr
AT+WANN
Setting and query the access way,IP, subnet masks and gateway
parameters for K7
Form 4.1.1-1 Related AT Command
5.Setup software
Other manuals for USR-K7
1
This manual suits for next models
1
Table of contents
Other USR IOT Control Unit manuals

USR IOT
USR IOT USR-TCP232-T2 User manual

USR IOT
USR IOT USR-TCP232-S2 User manual

USR IOT
USR IOT USR-K3 Setup guide

USR IOT
USR IOT WH-LTE-7S1-E User manual

USR IOT
USR IOT USR-C322 User manual

USR IOT
USR IOT USR-TCP232-ED2 User manual

USR IOT
USR IOT USR-K5 Quick setup guide

USR IOT
USR IOT USR-BLE100 User manual

USR IOT
USR IOT USR-TCP232-S2 Mounting instructions

USR IOT
USR IOT USR-C210 User manual