Advertisement

USR-N668 User Manual

Technical Support:
h.usriot.com
USR-N668 User Manual
File Version: V1.0.4
Jinan USR IOT Technology Limited
1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the USR-N668 and is the answer not in the manual?

Questions and answers

Summary of Contents for USR IOT USR-N668

  • Page 1: Usr-N668 User Manual

    USR-N668 User Manual Technical Support: h.usriot.com USR-N668 User Manual File Version: V1.0.4 Jinan USR IOT Technology Limited...
  • Page 2: Table Of Contents

    USR-N668 User Manual Technical Support: h.usriot.com Contents USR-N668 User Manual ............................1 Features ..................................4 Get Start ................................5 1.1.Hardware Test ............................... 5 1.2.NTE Network Test Environment ........................7 1.3. Default parameter test ..........................7 Product overview ..............................9 2.1. Basic parameters ............................10 Hardware Design ..............................
  • Page 3 5.1.2. Setting protocol settings parameters ....................43 5.2. Web settings parameters ........................... 43 5.3. AT command .............................. 46 5.3.1. AT command ........................... 46 5.3.2. Error code ............................47 6.Contact Us ................................48 7.Disclaimer ................................48 8.Update History ............................... 48 Jinan USR IOT Technology Limited...
  • Page 4: Features

    Network time synchronization +RTC real time clock.  User-defined Task Scheduler.  Supports web server configuration.  Supports V-COM.  Reload by hardware and software.  Run across gateways, switches and routers.  Work in LAN or external network. Jinan USR IOT Technology Limited...
  • Page 5: Get Start

    For test the communication conversion between serial port and network , you should connect the USR-N668 to PC with serial cable(or USB to serial cable),connect the Ethernet port of USR-N668 and PC with network. Make sure the connection is correct , then power on.
  • Page 6 Technical Support: h.usriot.com  The test only for RS232, factory default setting for RS232;  Check the dial up settings window ,make sure USR-N668 work at correct pattern.(See the details in Hardware introduce->Dial up) Figure 1. RS232/485/422 smart switch  N668 serial port 1->network->DB9-M to RJ45->mother to mother serial cable->PC serial port Figure 2.
  • Page 7: Nte Network Test Environment

    2) Close the network card which is not related to this test, only one local connection is reserved; 3) For servers to connect directly to PC, a static IP (address in the same network segment with USR-N668) must be set to the PC (e.g.192.168.0.201).
  • Page 8 3) Send data for test, the data flow form serial port to Net is: PC serial port->668 serial port->668 Ethernet port->PC network; the data flow form Net to serial port is: PC network->668 Ethernet port->668 serial port->PC serial port. The specific demo is shown below. Jinan USR IOT Technology Limited www.usriot.com...
  • Page 9: Product Overview

    USR-N668 User Manual Technical Support: h.usriot.com Figure 5. data transmission test The USR-TCP232-Test.exe download links: https://www.usriot.com/support/downloads/usr-tcp-test-testing-software.html 2. Product overview Figure 6. USR-N668 hardware interface Jinan USR IOT Technology Limited www.usriot.com...
  • Page 10: Basic Parameters

    EN61000-4-2(static electricity) Grade 4 Reliability grade EN61000-4-4(pulse group) Grade 4 EN61000-4-5(surge) Grade 3 Shell protection IP30 Other Full-size 482*185*45 MM Work temperature 40~85℃ Storage temperature 40~85℃ Work humidity 5%~95%(Non condensation) Storage humidity 5%~95%(Non condensation) Jinan USR IOT Technology Limited www.usriot.com...
  • Page 11: Hardware Design

    On the back of the equipment, there is a dial up switch setting window. You need to use the cross flower screwdriver, remove the screws to see. The following is the setting of the code switch. Jinan USR IOT Technology Limited www.usriot.com...
  • Page 12 Figure 8. RS232/485/422 smart switch A total of 16 (8 serial port * 2) dial code. The device has 8 serial ports and 2 dial numbers per route, as shown in the figure. Figure 9. RS232 model Jinan USR IOT Technology Limited www.usriot.com...
  • Page 13 Dial switch(L to R) Pay attention:  The switch position is shown in the figure.  The dialing sequence form L to R.  Default is 232 mode,the dial switch is “0 0”. Jinan USR IOT Technology Limited www.usriot.com...
  • Page 14: Pin Definition

    The position of the dialing switch must be correct.  The hardware interface is RJ45, you need to use 8 core cable and crystal head to make communication cables. 3.2.3. LED Indicator Figure 13. LED location Jinan USR IOT Technology Limited www.usriot.com...
  • Page 15: Product Functions

    Red/Flicker: Serial port sending data Green/Flicker: Serial port receiving data 4. Product Functions This chapter introduces the functions of USR-N668 as the following diagram shown, you can get an overall knowledge of it. Figure 14 Product 668 Functions diagram 4.1. Basic Functions 4.1.1.
  • Page 16 Reference AT command Table 7 Station IP /DHCP AT command AT command Describe Jinan USR IOT Technology Limited www.usriot.com...
  • Page 17: Dns

    Set and query DNS server 4.1.3. VPN-PPTP Support the VPN link of PPTP protocol. Figure 17 PPTP set Remote address, user name, password are the basic parameters; there are encryption, authentication and other parameters can be set. Jinan USR IOT Technology Limited www.usriot.com...
  • Page 18: Vpn-Gre

    Authentication: support PAP, CHAP, MSCHAP, MSCHAPv2, etc. LCP response interval: the default heartbeat interaction interval is 300 seconds. MTU: maximum transmission unit, default 1500, can be reduced according to requirements. 4.1.4. VPN-GRE Support VPN-GRE Jinan USR IOT Technology Limited www.usriot.com...
  • Page 19: Network Diagnosis

    GRE is established, the two sides can interoperate and visit each other on IP. 4.1.5. Network diagnosis The network diagnostic function supports Ping instructions for testing the network link. e.g.: ping www.baidu.com -w 3 -w indicates the duration of Ping. Jinan USR IOT Technology Limited www.usriot.com...
  • Page 20: Restore Factory Settings

    Built-in web server, users can set parameters through the web page and also can view the relevant state of the module. The default home page is the current status interface, which is refreshed every 5s, showing the working status of 668. Jinan USR IOT Technology Limited www.usriot.com...
  • Page 21: Firmware Upgrade

    USR-N668 User Manual Technical Support: h.usriot.com Figure 21 668 working status 4.1.8. Firmware upgrade The specific upgrading methods are as follows. Figure 22 668 firmware upgrade 1 Choose the firmware path. Jinan USR IOT Technology Limited www.usriot.com...
  • Page 22: Transtransmission Function

    668 Socket work mode: TCP Client, TCP Server, UDP Client, UDP Server, Httpd Client. SSL Client. Reference AT command Table 9 TCP Client AT command AT command Describe AT+SOCK Set up Socket work mode / target IP/ target port 4.2.1. TCP Client Jinan USR IOT Technology Limited www.usriot.com...
  • Page 23 6) When 668 work as TCP Client, the local port NO. suggest to set to 0, so that 668 can access the server with random port number. 7) TCP Client communication examples ① work mode :TCP Client, IP: 192.168.0.201, teleport: 20001 .Then save parameters and restart. Jinan USR IOT Technology Limited www.usriot.com...
  • Page 24: Tcp Server

    When work as TCP Server, it support Synchronous baud rate(RFC2217). Active monitoring of local ports when 668 work as TCP Server, When connecting requests, respond and create Jinan USR IOT Technology Limited www.usriot.com...
  • Page 25 ①668 work as TCP Server, local port:20001(The default is from 20001~20008. make sure that the local ports of each path are different),then save. ②There are two ways to set up, use web pages or software. Figure 30 TCP Server setting ③Click send, you can transmission data. Jinan USR IOT Technology Limited www.usriot.com...
  • Page 26: Udp Client

    Target IP:255.255.255.255, it can achieve the effect of UDP full segment broadcast. 4015 and later firmware supports broadcast in the network segment, such as xxx.xxx.xxx.255's broadcast mode. Can't support multicast. ①Set up UDP Client ,target port:8234. Jinan USR IOT Technology Limited www.usriot.com...
  • Page 27 ③First click the serial port to send, receive the data, test software target IP and target port number to 668 IP and port number, and then click the network to send data to the serial port. Jinan USR IOT Technology Limited www.usriot.com...
  • Page 28: Udp Server

    ②Open the “USR-TCP232-Test.exe”,set up UDP mode, the local IP is the PC IP. Set the port diffident, e.g.23 and 8234, click “connect”. On the other side , set the IP and port all the 668 parameter. Jinan USR IOT Technology Limited www.usriot.com...
  • Page 29: Httpd Client

    Simple parameter settings, can transmission data from serial device to HTTP server. Each time the data is sent, only the request data is sent, and 668 automatically adds information such as URL and packet header. 4) Jinan USR IOT Technology Limited www.usriot.com...
  • Page 30 Set up Httpd request mode through web page, and request URL and packet header information of package. Httpd server recovery information packet header default removed. Save and reload. Now can send data after open serial port. Reference below. Jinan USR IOT Technology Limited www.usriot.com...
  • Page 31: Ssl Client

    USR-N668 User Manual Technical Support: h.usriot.com Figure 38 Httpd Client mode 4.2.6. SSL Client ( Does not support in the current firmware) Support SSL encryption on TCP links. Target address: www.alipay.com , target port 443. Jinan USR IOT Technology Limited www.usriot.com...
  • Page 32: V-Com

    N668 and virtual serial to solve the problem that traditional equipment PC software used in serial port communication way. 1. set 668 TCP Server. 2. ①open V-COM, and add serial port; ②try to connect with 668. 3. e.g. as follow: Jinan USR IOT Technology Limited www.usriot.com...
  • Page 33: Serial Port Functions

    Because the data on the network side are transmitted in data frames, it is necessary to send the frame data through the serial port to the network side, so that the data can be transmitted more efficiently and quickly. 4.3.2. RFC2217-like Jinan USR IOT Technology Limited www.usriot.com...
  • Page 34: Characteristic Function

    The RFC2217-like function realizes the function of dynamically changing the parameters of USR-N668 serial port from the network side during the operation of USR-N668. For example, in the running process, the serial port baud rate of the 668 server is changed from 115200bps to 9600bps.
  • Page 35: Heartbeat Packet Function

    (only take effect in TCP/UDP Client mode). The longest for Custom heartbeat package content is 40 bytes, the heartbeat time is 30 seconds, the range is 1~65535 seconds. Jinan USR IOT Technology Limited www.usriot.com...
  • Page 36: Registration Package

    Heartbeat packet can set through the web. Figure 46 heartbeat packet function 4.4.3. Registration package There are three kinds of registration packages: Custom registration package, transparent cloud, MAC registration package. Here is a custom registration package. Jinan USR IOT Technology Limited www.usriot.com...
  • Page 37: Modbus Tcp

     Data portability: put the registration packet in the front of data, which is mainly used for protocol transmission. Figure 48 data with registration package The function can be set through web pages. Figure 49 registration package 4.4.4. Modbus TCP This device provides ModbusTCP turn to ModbusRTU function and defaults by default. Jinan USR IOT Technology Limited www.usriot.com...
  • Page 38: No Data Reconnection

    USR-N668 User Manual Technical Support: h.usriot.com Figure 50 modbus TCP data flow Figure 51 modbus TCP setting Figure 52 modbus TCP test 4.4.5. No data reconnection Jinan USR IOT Technology Limited www.usriot.com...
  • Page 39: Ddns

    Figure 55 DDNS test 4.4.7. Remote management and remote monitoring Remote monitoring realizes remote device state management. Through server software, we can see the on-line state, running time and traffic information of the device. Default not open. Jinan USR IOT Technology Limited www.usriot.com...
  • Page 40: Scheduled Task

    This function and remote server are all trial run. Remote server login address https://ycsj1.usr.cn/index.php/Public/login 4.4.8. Scheduled task This function can carry out instructions to the device by way of dividing, time, day, month and week. Syntax is shell instruction. Jinan USR IOT Technology Limited www.usriot.com...
  • Page 41: Parameter Setting

    2. turn off the anti-virus software and firewall on the computer. 3. close the NIC that has nothing to do with this test. 5.1. Network protocol settings parameters 5.1.1. Software setting parameters Search all the N668 in the LAN. Jinan USR IOT Technology Limited www.usriot.com...
  • Page 42 Gateway: generally routers IP, set up correctly in order to cross network segment communication, and domain name resolution.  Device name: the name can be customized.  Webpage port: port number when accessing web page is default 80 3. Serial port parameter setting Jinan USR IOT Technology Limited www.usriot.com...
  • Page 43: Setting Protocol Settings Parameters

    Open the browser and enter the IP address of 668. By default (192.168.0.7), you can open the login interface of 668. Enter user name: admin Password admin Click login, you can enter the login screen. Jinan USR IOT Technology Limited www.usriot.com...
  • Page 44 Modify the parameters that need to be set on this page, click Save Settings, and then modify the parameters of the next page. If no other parameters need to be changed, Click Restart.  IP address acquisition mode   Subnet mask  gateway address  DNS server Jinan USR IOT Technology Limited www.usriot.com...
  • Page 45 Figure 66 IP setting 3. Port parameters  Baud rate  Data bits  Check digit  Stop bits  The way of work  Remote server address  Local port  Remote port  Special functions Jinan USR IOT Technology Limited www.usriot.com...
  • Page 46: At Command

    Input "+ + +" on UART, the module will return a confirmation code "a" after receiving "+ + +".  Enter the confirmation code "a" on UART. After receiving the confirmation code, the module returns the confirmation of "+OK" and enters the command mode. Jinan USR IOT Technology Limited www.usriot.com...
  • Page 47: Error Code

    2. Module returns the "+OK" after receiving the instruction and returns to the previous mode. 5.3.2. Error code Table 10 Error code Error code Describe Invalid command format Invalid command Invalid operator Invalid parameters operation not permitted Jinan USR IOT Technology Limited www.usriot.com...
  • Page 48: Contact Us

    Tel: 86-531-88826739/86-531-55507297 7.Disclaimer This document provide the information of USR-N668 products, it hasn’t been granted any intellectual property license by forbidding speak or other ways either explicitly or implicitly. Except the duty declared in sales terms and conditions, we don’t take any other responsibilities. We don’t warrant the products sales and use explicitly or implicitly, including particular purpose merchantability and marketability, the tort liability of any other patent right, copyright, intellectual property right.

Table of Contents