U.S. Converters USC520 Скачать руководство пользователя страница 31

                             USC520 / USC540 User Manual                          www.usconverters.com

 

 

 

U.S. Converters LLC                                     31 / 52                            Copyrights © U.S. 
Converters                             

speed, user have to control the flow, if not the problem of data overflow on serial port side will occur. So data 

flow is required to calculated when sending data from network to serial port. 

 

  Example: 

 

  Network sends data in m bytes every n seconds. Method of checking if there is overflow: ( Supposed 

network condition is good and network data transmission time is negligible) 

 

 

If there is no overflow, m bytes data must be transmitted within n seconds, then the transmitting time 

of M bytes data:   

 

 

  If n >2T, then data will not overflow, USC520/USC540 can work normally. Just need keep n>T under baud 

rate 9600. 

 

3.4.9.  Synchronous baud rate (RFC2217) 

For encryption during data transmission, devices change data bytes, baud rate, parity and so on. 

USC520/USC540 supports revise serial parameter accordingly. 

Synchronous baud rate is named RFC2217. USR Similar RFC2217 make adjustments on the basis of 

RFC2217 protocol to improve accuracy of    transmission. 

Protocol length is 8 bytes. And values taken for example is in HEX: 

Name 

Packet 

Header 

Baud Rate 

Bytes parameter 

Parity 

Bytes 

Explanation 

reduce 

misjudgment

 

High is in front, 

smallest is 

600(00 02 58) 

data bytes, baud 

rate, parity 

Remove 4 bits 

of header and 

ignore the high 

bit 

(115200, 

N,8,1) 

55 AA 55 

01 C2 00 

03 

46 

(9600, 

N,8,1) 

55 AA 55 

00 25 80 

03 

28 

Serial parameter bit:

 

Bit # 

Explanation 

Value 

Description 

1:0 

Data bit selection 

00 

5 bits 

Содержание USC520

Страница 1: ...S Converters LLC 1 52 Copyrights U S Converters User Manual for USC520 Serial Ethernet Converter RS232 RS485 RS422 Industrial Panel Mount 2 Ports File Version V1 0 4 USC540 Serial Ethernet Converter...

Страница 2: ...t 13 3 2 Socket B Communication 14 3 4 Modbus Gateway 16 3 4 1 Transmit modbus protocol in transparent mode 16 3 4 2 Modbus RTU to Modbus TCP 17 3 4 3 Modbus Active Query Function 18 3 4 4 Modbus Poll...

Страница 3: ...etting Protocol 33 4 1 Network Setting Protocol 33 4 1 1 Set Parameter Process 33 4 1 2 Setting Command Content 34 4 1 3 Commands Return Content 38 4 2 Serial Setting Protocol 39 4 2 1 AT Command 39 4...

Страница 4: ...verters 1 1 Default Parameters User name admin Password admin IP address 192 168 0 7 Mask 255 255 255 0 Gateway 192 168 0 1 Work Mode of Port 1 TCP Server Local Port of Port 1 23 Work Mode of port 2 T...

Страница 5: ...host Polling 8 Two serial port each port can work as RS232 or RS485 or RS422 and work individually 9 Distinguish which serial port connect to device via port number 10 Support virtual serial port and...

Страница 6: ...n web page and serial side 23 Power supply in two mode DC adapter or 5 08 2 terminal pin 24 Communication indicator light of two serial port RX TX 25 UPD broadcast function can receive send data to al...

Страница 7: ...on Power Indicate power On when power is supplied Work Indicate working status It blinks when N520 N540 works well If it is on or off for a period N520 N540 works improperly you should power cycle to...

Страница 8: ...Converters LLC 8 52 Copyrights U S Converters For RS232 port DIP switches are down such as the below picture For RS485 port DIP switches are up such as the below picture For RS422 port DIP switches o...

Страница 9: ...ights U S Converters 2 6 DB9 Pin Definition For RS232 port pin definition is as below For RS485 port pin 3 works as B Pin 7 works as A For RS422 port Pin Definition 2 RX pin of receives data 3 TX 5 GN...

Страница 10: ...Converters LLC 10 52 Copyrights U S Converters 3 Product Function The following is function diagram of USC520 USC540 USC520 USC540 Function Diagram Each serial port corresponds to two sockets socket...

Страница 11: ...s serial parameter as baud rate accordingly This function should be combined with USR VCOM 5 Under the same LAN USC520 USC540 must be in the same network segment then can communicate If not USC520 US...

Страница 12: ...n the following 5 Support Modbus TCP function 6 Under TCP Server mode USC520 USC540 listens to local port actively and will not monitor connected IP and port When the 9th client is connected the oldes...

Страница 13: ...ol so user just do programming for serial and not need to worry about HTTP When USC520 USC540 sends data to HTTP server via serial port it only needs to send the header of requested data All the retur...

Страница 14: ...UDP client Set USC520 USC540 as double socket communication mode the data of serial port will be transparently transmitted to socket A and socket B at one time When data comes from socket A and socke...

Страница 15: ...USC520 USC540 User Manual www usconverters com U S Converters LLC 15 52 Copyrights U S Converters...

Страница 16: ...nt mode USC520 USC540 supports the transmission of modbus protocol in transparent mode 3 3 2 Modbus RTU to Modbus TCP USC520 USC540 support Modbus RTU to Modbus TCP settings as below 1 Open USR TCP232...

Страница 17: ...LLC 17 52 Copyrights U S Converters 4 Check and verify Modbus RTU to Modbus TCP through modbus Poll and Modbus Slave 5 Setting modbus software is as below 6 Click OK once configuration finished update...

Страница 18: ...rs 3 3 3 Modbus Active Query Function Modbus active query function can be realized through the serial heartbeat packet function of USC520 USC540 1 Open serial heartbeat packet function via web page qu...

Страница 19: ...USC520 USC540 User Manual www usconverters com U S Converters LLC 19 52 Copyrights U S Converters 3 Return result for query command is as drawing...

Страница 20: ...us polling function under TCP server mode Set USC520 USC540 as Modbus Poll support multiple host polling to check parameter 1 Multiple host polling is realized through virtual com Set parameter of USC...

Страница 21: ...choose the serial port which connected with USC520 USC540 Run modbus Poll software and make port forwarding with this serial port The value of modbus poll will also be changed when you revise the valu...

Страница 22: ...se the serial port which connected with USC520 USC540 Run modbus polling softare to select network mode and connect with USC520 USC540 The value of modbus poll will also be changed when you revise the...

Страница 23: ...require IP address from host within network which takes about 5 15 seconds Then you can search N520 s IP address It is convenient for setting different IP address in different environment Note Don t s...

Страница 24: ...24 52 Copyrights U S Converters 3 4 3 Self Defined Heartbeat Function USC520 USC540 supports heartbeat function Heartbeat is divided into network heartbeat and serial port heartbeat Set Network heart...

Страница 25: ...istration Package Function USC520 USC540 supports self defined registration package function and also supports to send self defined registration package after connection establishment meanwhile it sup...

Страница 26: ...USC520 USC540 User Manual www usconverters com U S Converters LLC 26 52 Copyrights U S Converters Test result...

Страница 27: ...meter and click Open 3 Click send ASCII data COM can receive data Click Send in TEST Software webpage can receive data Web to serial needs user s webpage programming ability Design webpage request own...

Страница 28: ...function sMessage msg 3 Send data function function send 3 4 6 Network Printing Function Network printing function is similar to printer server it can be realized by the previous serial printer throug...

Страница 29: ...onverters com U S Converters LLC 29 52 Copyrights U S Converters Set Printer Driver Click next and input the USC520 USC540 IP address then keep clicking next til finished Serial port connects to the p...

Страница 30: ...if the interval time of receiving data is over than 10ms or data length is more than 512 If the value of packaging time or packaging length is 0 the packaging rule is effective for non zero one Set p...

Страница 31: ...can work normally Just need keep n T under baud rate 9600 3 4 9 Synchronous baud rate RFC2217 For encryption during data transmission devices change data bytes baud rate parity and so on USC520 USC540...

Страница 32: ...from network and revise serial parameter accordingly 3 4 10 KeepAlive When USC520 USC540 s network is abnormal it can judge the status in time and disconnect And connect to server once network recover...

Страница 33: ...TS Hardware flow control function It is disabled by default Don t enable it if device doesn t support Hardware flow control This function is only run under RS232 port XoN XoFF USC520 USC540 support so...

Страница 34: ...eter to be configured Send setting command USC520 USC540 returns correct setting Host PC send save setting command USC520 USC540 returns correct Restart command USE N520 returns correct setting 4 1 2...

Страница 35: ...ommand examples Search command example Search command is set to FF 01 01 02 Sum check 02 01 01 Reset command example FF 13 02 d8 b0 4c 00 04 c9 61 64 6d 69 6e 00 61 64 6d 69 6e 00 c8 Sum check C8 13 0...

Страница 36: ...01 00 A8 C0 Gateway ulSubnetMask 4 00 FF FF FF Subnet Mask ucModName 16 55 53 52 2D 54 43 50 32 33 32 2D 45 00 00 00 00 USC520 USC540 name username 6 61 64 6D 69 6E 00 username password 6 61 64 6D 69...

Страница 37: ...E 30 2E 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 IP address send in ASCII Example 192 168 0 1 ulTelnetIPAddr 4 00 00 00 00 Not adopted ucFlags 1 02 Enable MODBUSTCP 0x010 bit2 Enabl...

Страница 38: ...ion low in front 12 34 encrypted version 19 34 Application_title 55 53 52 2D 54 43 50 32 33 32 2D 35 30 30 00 00 Device name 35 checksum F0 checksum Example Return results of search command 36 bytes F...

Страница 39: ...01 CMD K User name password fault returns FF 01 CMD P Others faults return FF 01 CMD E 4 2 Serial Setting Protocol 4 2 1 AT Command AT Command List Table 1 AT Command List Command Instruction blank Bl...

Страница 40: ...erial port 1 parameter SOCK Set query port 0 network SOCKETA parameter SOCK1 Set query port 1 network SOCKETA parameter SOCKB Set query port 0 network SOCKETB parameter SOCKB1 Set query port 1 network...

Страница 41: ...Query AT E CR CR LF OK on off CR LF Set AT E on off CR CR LF OK CR LF Parameter on Open echo function and input AT command Echo on off Close echo function Echo off 2 AT ENTM Function Enter transparen...

Страница 42: ...version C C Custom version AA BB CC DD ID DD stands for customer s version ID stands for customer s ID number 5 AT MAC Function Query MAC Format Query AT MAC CR CR LF OK mac CR LF Parameter mac MAC Ad...

Страница 43: ...words of USC520 USC540 inside LAN Format Query AT SEARCH CR CR LF OK port keywords CR LF Set AT SEARCH CR CR LF OK port keywords CR LF Parameter port serching port of USC520 USC540 default 48899 keyw...

Страница 44: ...pin are the same uartnum 0 11 AT UART1 Function Set query UART0 interface parameter 12 AT SOCKMN M socket number A H N corresponding serial port number 1 8 Omit MN numbers for single serial port and s...

Страница 45: ...OK mode address mask gateway CR LF Set AT WANN mode address mask gateway CR CR LF OK CR LF Parameter mode network IP mode static static IP DHCP dynamic IP address mask gateway parameter is omitted ad...

Страница 46: ...nothing to do with this testing Download the USR TCP232 M4 E45 Setup software Search device and all USC520 USC540 devices within LAN It includes IP name MAC and version Software Configuration Search 1...

Страница 47: ...com U S Converters LLC 47 52 Copyrights U S Converters Software Configuration Password 2 Basic parameter configuration Click Full Show and all basic parameter is revealed Set the parameter as needs an...

Страница 48: ...USC520 USC540 User Manual www usconverters com U S Converters LLC 48 52 Copyrights U S Converters Software Configuration Full Show...

Страница 49: ...4 1 8 6 Device ID Device ID type sending ID type User name Authentication Code for revising parameter to avoid other users within same LAN revising it Password same as user name Device Name USC520 US...

Страница 50: ...Hardware XON XOFF None for no flow control Hardware for hardware flow control XON XOFF for software hardware flow Work Mode TCP Server TCP Client HTTPD Client UDP Client UDP Server Destination IP Por...

Страница 51: ...pack length relate to serial unpacking mechanism Similar RFC2217 Please refer to Chapter 3 5 10 Similar RFC2217 4 Firmware Upgrade If USC520 USC540 need to upgrade with new firmware please contact US...

Страница 52: ...USC520 USC540 User Manual www usconverters com U S Converters LLC 52 52 Copyrights U S Converters Firmware Upgrade...

Отзывы: