Usr USR-TCP232-T Скачать руководство пользователя страница 10

RS232

Serial

TTL UART TO Ethernet TCPIP convert Module

www.usr.cn

Jinan USR Technology Co., Ltd.

Page 10 of 26

[email protected]

4.

4.

4.

4. Configure

Configure

Configure

Configure

parameters: work mode

source IP, source port

net mask

gateway

UART baud rate

destination IP

destination

port.

Configure command is 24byte length.

Pull down CFG pin change the module into configuration mode when use UART to config.

4.1

4.1

4.1

4.1 configure

configure

configure

configure command

command

command

command format

format

format

format

Configure mode UART interface: 9600bps,n,8,1

part

bytes

description

example

hex

prefix

2

0x55 0xAA

0x55 0xAA

0x55 0xAA

destination IP

4

destination IP

192.168.0.201

0xC9 0x00 0xA8 0xC0

destination port

2

Destination port

8234

0x2A 0x20

Host IP

4

The IP module hold

192.168.0.7

0x07 0x00 0xA8 0xC0

Host port

2

TCP/UDP source port

20108

0x8C 0x4E

Gateway

4

Gateway IP

192.168.0.201

0xC9 0x00 0xA8 0xC0

Work mode

1

0x01: TCP Client

0x00: UDP

0x02: UDP Server

TCP mode

0x01

baud rate

3

UART baud rate

115200

0x00 0xC2 0x01

Reserved

1

Reserved

00

0x00

checksum

1

Sum(destination

IP,

destination port, host IP,

host port, gateway, work

mode, baud rate, reserved)

0xB9

0xB9

Full example

00 A8 C0 2A 20 07 00 A8 C0 8C 4E C9 00 A8 C0 01 00 C2 01 00 B9

* once in configure mode, the UART parameter change to 9600bps,n,8,1, and a ‘U’ ascii character is send out to

ensure the control MCU that in the configure mode. If the 24byte command has effect

a ‘K’ ascii character is send

back to control MCU. If configure command format error, an ‘E’ character will be send back to control MCU. If the

error is the checksum not match , the 1byte right checksum will be send back to control MCU also.

Содержание USR-TCP232-T

Страница 1: ...orward to cooperation with you Key words RS232 RS232 RS232 RS232 to to to to Ethernet Ethernet Ethernet Ethernet serial serial serial serial to to to to Ethernet Ethernet Ethernet Ethernet Ethernet Et...

Страница 2: ...Client Mode 5 2 3 UDP client mode 5 2 4 UDP server Mode 6 2 5 TCP server Mode 7 3 Hardware Description 8 3 1 LED status 8 3 2 Pin description 8 3 3 Connection Diagram 8 3 4 Package 9 4 Configure 10 4...

Страница 3: ...h the serial port We Provide Network products and the best service to our customers Chips Modules Software Products 1 2 1 2 1 2 1 2 F F F Features eatures eatures eatures Auto detected 10 100M High sp...

Страница 4: ...85 Serial to Ethernet Adapter USR TCP232 2 RS232 Serial to Ethernet Adapter USR TCP232 24 RS232 RS485 choose by jumper Serial to Ethernet Adapter USR TCP232 D DIP module in TTL version without RJ45 on...

Страница 5: ...x T x T x T x T x T x T x R x R x R x R x R x R x R x R x 2 2 2 2 2 2 2 2 TCP TCP TCP TCP Client Client Client Client Mode Mode Mode Mode M C U 5 1 5 1 5 1 5 1 A V R A V R A V R A V R P IC P IC P IC...

Страница 6: ...e data transfer supported the data from uart 232 485 part will be transformed to the last UDP packet s address P C A M C U 5 1 5 1 5 1 5 1 A V R A V R A V R A V R P IC P IC P IC P IC A R M A R M A R M...

Страница 7: ...de Mode Mode Mode P C A M C U 5 1 5 1 5 1 5 1 A V R A V R A V R A V R P IC P IC P IC P IC A R M A R M A R M A R M R S 232 Ethernet 1 PC connect to the port 2 data transfer from MCU to PC 1 module list...

Страница 8: ...tion pin name description VDD Power 1 4 5 5 5V VCC Power 2 3 3V GND GND Power and Communications Ground RST Reset pin 200ms GND reset the module TXD UART transmission pin 5v tolerance RXD UART receive...

Страница 9: ...TO Ethernet TCPIP convert Module www usr cn Jinan USR Technology Co Ltd Page 9 of 26 sales usr cn 3 4 3 4 3 4 3 4 Package Package Package Package Unit mm Allegro protel pads CAM PCF files available fo...

Страница 10: ...8234 0x2A 0x20 Host IP 4 The IP module hold 192 168 0 7 0x07 0x00 0xA8 0xC0 Host port 2 TCP UDP source port 20108 0x8C 0x4E Gateway 4 Gateway IP 192 168 0 201 0xC9 0x00 0xA8 0xC0 Work mode 1 0x01 TCP...

Страница 11: ...e settings and click Setup 3 After Setting left CFG free or connect to VCC module begin work 4 The save and Default button would useful for you Note Note Note Note the the the the module module module...

Страница 12: ...12 of 26 sales usr cn 4 3 4 3 4 3 4 3 configure configure configure configure through through through through RJ45 RJ45 RJ45 RJ45 Since 2011 08 02 the new version modules support Setup via RJ45 Click...

Страница 13: ...3 3V or 5V power rs232 cable Network Cable COM debug software TCPIP debug software in CD also can be download 2 Connection connect module rs232 to pc rs232 RJ45 to pc RJ45 or the same router same sub...

Страница 14: ...232 Serial TTL UART TO Ethernet TCPIP convert Module www usr cn Jinan USR Technology Co Ltd Page 14 of 26 sales usr cn 4 open the software in CD TCP server listen port 8234 TCP server as follow pictur...

Страница 15: ...echnology Co Ltd Page 15 of 26 sales usr cn Click Listening Open COM port The module will connect to the server and show the module IP and port 5 Now you can transfer data from PC RS232 to Ethernet Yo...

Страница 16: ...RS232 Serial TTL UART TO Ethernet TCPIP convert Module www usr cn Jinan USR Technology Co Ltd Page 16 of 26 sales usr cn...

Страница 17: ...ert Module www usr cn Jinan USR Technology Co Ltd Page 17 of 26 sales usr cn 5 2 5 2 5 2 5 2 virtual virtual virtual virtual COM COM COM COM Single port TCP IP serial bridge RFC 2217 1 setup the modul...

Страница 18: ...PC then click Activate Activate Activate Activate 5 After Activate click a Virtual COM port COM2 will be created COM2 will receive data from TCPIP socket and send data to COM2 will convert to TCPIP s...

Страница 19: ...USR Technology Co Ltd Page 19 of 26 sales usr cn At this point you can use your equipment as an ordinary serial port and operate of local virtual serial port will converted to operation of the remote...

Страница 20: ...RS232 Serial TTL UART TO Ethernet TCPIP convert Module www usr cn Jinan USR Technology Co Ltd Page 20 of 26 sales usr cn Test 100ms recycle send send and receive 10 0000 bytes every thing is ok...

Страница 21: ...R M R S 2 3 2 COM to Ethernet Socket software on PC or hand system Ethernet MCU use as RS 2 3 2 Ethernet 6 2 6 2 6 2 6 2 Virtual Virtual Virtual Virtual COM COM COM COM Install VSPM software The COM...

Страница 22: ...A R M A R M A R M A R M R S 232 Old Communication M C U 5 1 5 1 5 1 5 1 A V R A V R A V R A V R P IC P IC P IC P IC A R M A R M A R M A R M Ethernet M C U 5 1 5 1 5 1 5 1 A V R A V R A V R A V R P IC...

Страница 23: ...UDP proxy TCP UDP proxy server server server server TCP UDP COM TCP UDP COM TCP UDP COM TCP UDP COM You can use a proxy server to treat the data form one module to other or just use you MCU to contro...

Страница 24: ...odule www usr cn Jinan USR Technology Co Ltd Page 24 of 26 sales usr cn 6 6 6 6 6 6 6 6 COM COM COM COM TCP UDP TCP UDP TCP UDP TCP UDP server server server server M C U M C U M C U M C U M C U M C U...

Страница 25: ...25 of 26 sales usr cn 7 7 7 7 Background Background Background Background Knowledge Knowledge Knowledge Knowledge 7 1 socket program example TCP client UDP Mode For VB VC OCX Linux You can use Winsock...

Страница 26: ...t Contact Contact us us us us Name Jinan USR Technology Co Ltd Website http www usr cn http en usr cn Address Shengfu garden D5 3 302 Jinan Shandong China Email sales usr cn tec usr cn MSN usrcn hotma...

Отзывы: