Page 1
(USR-N540) File version: Ver1.0.3 Jinan USR IOT Technology Co., Ltd. works on LAN and WAN and wireless for MCU to Ethernet Solutions, Ethernet, WIFI, GPRS, and Wireless modules, we can supply custom design for those usage, looking forward to cooperate with you.
Module id and id type ....................30 6.8. Device name ......................... 31 6.9. Buffer data before connected ..................32 6.10. Reset timeout ....................... 32 6.11. Local IP config ......................33 6.11.1. Static IP ......................33 Jinan USR IOT Technology Limited 2 / 39 tec@usr.cn...
Page 3
6.11.2. DHCP ......................33 6.12. DNS ..........................33 6.13. Comm param ........................ 34 6.14. Username and password ....................34 6.15. Firmupdate ........................35 Contact ............................. 38 Update History ........................... 39 Jinan USR IOT Technology Limited 3 / 39 tec@usr.cn...
It features a powerful built-in device server, so you can access your serial device from anywhere in the world over internet! The USR-N540 is easily configured via local network, or through the serial port and web pages.
4 * RS232/RS485/RS422 Figure 1 Diagram 1-1 Order information 1.4. Electrical characteristics Working tempterature range: -40~85℃. Unpowered storage temperature and humidity range: -65~150℃, 5~95%RH Input voltage range 12V average current USR-N540 DC9~24V 53mA Jinan USR IOT Technology Limited 5 / 39 tec@usr.cn...
If you have any question, please contact us the in the client support center: http://h.usriot.com/index.php?c=frontTicket&m=sign 2.1. Hardware connection The picture below is device picture . Diagram 2-1 USR-N540 with case Connect device’s RJ45 to PC with network cable ...
Open a browser, type and Login above IP address http://192.168.0.7, you will enter module's setup web pages. User name and password are both “admin”, this can be modified after login into the system. Default user name: admin Default password: admin Jinan USR IOT Technology Limited 7 / 39 tec@usr.cn...
Page 8
Config for second serial to ethernet Port3 Config for third serial to ethernet Port4 Config for fourth serial to ethernet Web to Serial Config for Web to serial Misc Config Config for device name, username,password Jinan USR IOT Technology Limited 8 / 39 tec@usr.cn...
Below is the effect after testing for a few hours, and transmitting millions of bytes. Stable and reliable, without a byte loss. Jinan USR IOT Technology Limited 9 / 39 tec@usr.cn...
When received data from the remote server, module will send it to serial port; otherwise, when data is received from serial port, send it to ethernet. The assist software can be download from link below: http://www.usriot.com/Download/199.html Jinan USR IOT Technology Limited 10 / 39 tec@usr.cn...
Max UDP send length(ethernet to serial) is 1472 bytes. If you want to send more than 1472 Bytes, please div it into shorter packet. 3.2. TCP Client mode Open web pages and config module to Work Mode: TCP Client Remote port number: 23 remote server addr: 192.168.0.131 Jinan USR IOT Technology Limited 11 / 39 tec@usr.cn...
Figure 5 Diagram 3-2 TCP Client mode Figure 6 Diagram 3-3 TCP Client communication test 3.3. UDP Server mode Like the socket UDP server in pc API. Many to one data transfer supported, the data from uart/232/485 Jinan USR IOT Technology Limited 12 / 39 tec@usr.cn...
Page 13
UDP packet’s address. Here show 2 UDP client communicate with server, server send data to the last client communicates with it. Figure 7 Diagram 3-4 Client 1 <-> server Jinan USR IOT Technology Limited 13 / 39 tec@usr.cn...
Figure 8 Diagram 3-5 Client 2 <-> server 3.4. TCP Server mode TCP Server mode have max 8 client connected at max; When act as TCP server, only local port matters, Jinan USR IOT Technology Limited 14 / 39 tec@usr.cn...
Page 15
USR-N540 User Manual www.usriot.com Figure 9 Diagram 3-6 select workmode TCP server Figure 10 Diagram 3-7 test result, we can establish more than 1 client to test Jinan USR IOT Technology Limited 15 / 39 tec@usr.cn...
Figure 11 Diagram 3-8 Request www.usr.cn/1.php? and upload data Then we take another way, set module Work mode HTTPD Client, Target address www.usr.cn, Target port 80. Jinan USR IOT Technology Limited 16 / 39 tec@usr.cn...
Page 17
Figure 12 Diagram 3-9 config HTTPD Client Open USR-TCP232-Test, and type in a string such as "12345", then send via comm port to device, and see the response from www.usr.cn Jinan USR IOT Technology Limited 17 / 39 tec@usr.cn...
Page 18
Diagram 3-10 module act as HTTPD Client In the response, all the data returned, but the http header from server will be returned, too. the user may need to parse this to get your data. Jinan USR IOT Technology Limited 18 / 39 tec@usr.cn...
Data TX pin for port 2 Data RX pin for port 2 Data TX pin for port 3 Data RX pin for port 3 Data TX pin for port 4 Data RX pin for port 4 Jinan USR IOT Technology Limited 20 / 39 tec@usr.cn...
Firstly USR-PORT_COM, which is a small board from DB9 to RS485/RS422; Secondly, you need to select the corresponding mode RS485 in the setup software or webpage, the device work in RS232 mode by default. Jinan USR IOT Technology Limited 21 / 39 tec@usr.cn...
Page 22
USR-N540 User Manual www.usriot.com After select RS485 mode in webpage, plug the USR-PORT-COM board onto device, then restart. Jinan USR IOT Technology Limited 22 / 39 tec@usr.cn...
Firstly USR-PORT_COM, which is a small board from DB9 to RS485/RS422; Secondly, you need to select the corresponding mode RS422 in the setup software or webpage, the device work in RS232 mode by default. Jinan USR IOT Technology Limited 23 / 39 tec@usr.cn...
Page 24
USR-N540 User Manual www.usriot.com After select RS422 mode in webpage, plug the USR-PORT-COM board onto device, then restart. Jinan USR IOT Technology Limited 24 / 39 tec@usr.cn...
That is to say, you can use either kind of cable to connect with computer or other network decice . Name Description Transceiver Data+ Transceiver Data- Receive Data+ Not connected Not connected Receive Data- Not connected Jinan USR IOT Technology Limited 25 / 39 tec@usr.cn...
5.1. Web page Device can be configured through web pages. After you make change, you have to restart device to make change take effect. 5.2. Setup software Down below is the Setup, http://www.usriot.com/Download/90.html Jinan USR IOT Technology Limited 26 / 39 tec@usr.cn...
After 2 second, Search again, module will appear in new paramters. 6. Specific functions 6.1. ModbusRTU to ModbusTCP The whole series product support ModbusRTU to ModbusTCP. When you use it, you have to select the protocols, just here: Jinan USR IOT Technology Limited 27 / 39 tec@usr.cn...
When RTS = 0, enable the other side to send, at this time, TTL is 0 volt, RS232 is -3V ~ -15V. When CTS = 0, represent module is enabled to send, at this time, TTL is 0 volt, and RS232 is -3V ~ -15V. Jinan USR IOT Technology Limited 28 / 39...
6.5. Sync baud via net(2217) This is a function similiar to RFC2217(but different protocol), which can modify the device's comm parameters via ethernet(tcp or udp connection). This option is checked by default. Jinan USR IOT Technology Limited 29 / 39 tec@usr.cn...
The module have built-in webserver which allow user to setup parameters via webpage. Default port 80, but we could modify this port according to some special uses. 6.7. Module id and id type All module have a 2 byte id, default 1; id type default 0 Jinan USR IOT Technology Limited 30 / 39 tec@usr.cn...
This can be used for USR-D2D service add 4-byte before each frame send to server Both 1 and 2 6.8. Device name User can modify this name, 15 chars max. Jinan USR IOT Technology Limited 31 / 39 tec@usr.cn...
Default not checked. That is before TCP connected, all the data comm port previously received, will be flushed. If checked, all the data comm port previously received would be saved and send to server after connected. 6.10. Reset timeout Jinan USR IOT Technology Limited 32 / 39 tec@usr.cn...
6.12. DNS The module can visit both ip or remote domain name, user can type in the domain name in the IP box. The domain name max length will be 30 chars. Jinan USR IOT Technology Limited 33 / 39 tec@usr.cn...
Use search and config software to update firmware, only once for one time, can not cross network segment. Search and select one module Figure 26 Diagram 6-11 search and select ‘Device’ -> firmware update Jinan USR IOT Technology Limited 35 / 39 tec@usr.cn...
Need help?
Do you have a question about the USR-N540 and is the answer not in the manual?
Questions and answers