You are on page 1of 7

CÁC CHỨC NĂNG CƠ BẢN CỦA DÒNG THIẾT BỊ NPORT

Overview

NPort device servers enable network operation of traditional RS-232/422/485 devices,


in which a device server is a tiny computer equipped with a CPU, real-time OS, and
TCP/IP protocols that can bi-directionally translate data between the serial and Ethernet
formats. Your computer can access, manage, and configure remote facilities and
equipment over the Internet from anywhere in the world.

Khái quát

Các thiết bị Nport server cho phép hoạt động ở chế độ network với các thiết bị RS-
232/422/485 truyền thống, trong đó một thiết bị server là một máy tính nhỏ được trang bị
một CPU, hệ điều hành thời gian thực, các giao thức truyền thông TCP/IP, có thể chuyển
đổi dữ liệu theo hai chiều giữa hai đinh dạng Serial và Ethernet. Máy tính có thể truy cập,
quản lý và cấu hình điều khiển các thiết bị thông qua Ethernet từ bất kỳ nơi đâu trên thế
giới.

Traditional SCADA and data collection systems rely on serial ports (RS-232/422/485)
to collect data from various kinds of instruments. Since NPort serial device servers enable
network operation of instruments equipped with an RS-232/422/485 communication port,
your SCADA and data collection system will be able to access all instruments connected
to a standard TCP/IP network, regardless of whether the devices are used locally or at a
remote site.
Các mạng SCADA và hệ thống thu thập dữ liệu truyền thống dựa vào cổng Serial
(RS-232/422/485) để tập hợp dữ liệu từ rất nhiều các loại thiết bị. Từ khi xuất hiện Nport
serial server cho phép hoạt động ở chế độ Network với một cổng truyền thông RS-232-
422-485 hệ thống SCADA và thu thập dữ liệu sẽ có khả năng truy cập tới tất cả các thiết
bị kết nối trong một mạng TCP/UDP. Bất kể thiết bị đang được sử dụng tại trung tâm
hoặc khu vực điều khiển.
The NPort is an external IP-based network device that allows you to expand the
number of serial ports for a host computer on demand. As long as your host computer
supports the TCP/IP protocol, you won’t be limited by the host computer’s bus limitation
(such as ISA or PCI), or lack of drivers for various operating systems.
In addition to providing socket access, the NPort also comes with a Real COM/TTY
driver that transmits all serial signals intact. This means that your existing COM/TTY-
based software can be preserved, without needing to invest in additional software.
Nport là một thiết bị mạng dựa trên một IP ngoài, cho phép mở rộng số cổng Serial
theo yêu cầu của máy chủ. Chừng nào máy chủ hỗ trợ giao thức TCP/IP, bạn sẽ không bị
giới hạn bởi số lượng hạn chế của các đường Bus máy chủ (như ISA hoặc PCI), hoặc
thiếu driver cho các hệ điều hành khác nhau.
Ngoài việc cung cấp các socket truy cập, Nport ngoài ra còn kèm một Driver Real
COM/TTY để truyền tất cả các tín hiệu serial nguyên vẹn . Điều này có nghĩa là những
COM/TTY đang tồn tại dựa trên những phần mềm có thể được bảo toàn, không cần phải
đầu tư,bổ sung thêm phần mềm
Three different Socket Modes are available: TCP Server, TCP Client, and UDP
Server/Client. The main difference between the TCP and UDP protocols is that TCP
guarantees delivery of data by requiring the recipient to send an acknowledgement to the
sender. UDP does not require this type of verification, making it possible to offer
speedier delivery. UDP also allows multicasting of data to groups of IP addresses.

Ba chế độ socket khác nhau: TCP server, TCP client, và UDP Server/Client. Điểm
khác biệt chính giữa các giao thức TCP và UDP là TCP đảm bảo chuyển dữ liệu bởi yêu
cầu bên nhận gửi lại xác nhận cho bên gửi. UDP không yêu cầu kiểu xác nhận này, tạo
nên tốc độ gửi tin nhanh hơn. UDP ngoài ra còn cho phép gửi bản tin dữ liệu quảng bá
đến một nhóm các địa chỉ IP.

Real COM Mode


The NPort comes equipped with COM drivers that work with Windows systems, and
also TTY drivers for Linux systems. The driver establishes a transparent connection
between host and serial device by mapping the IP:Port of the NPort’s serial port to a local
COM/TTY port on the host computer. This operation mode also supports up to 4
simultaneous connections, so that multiple hosts can collect data from the same serial
device at the same time.
Nport đi kèm với Driver COM có thể làm việc với hệ điều Window, ngoài ra có
Driver TTY cho hệ điều hành Linux. Các Driver thiết lập một kết nối thông suốt giữa
máy chủ và các thiết bị Serial bởi việc mapping địa chỉ cổng Serial của Nport tới cổng
COM/TTY trên máy tính chủ (host). Chế độ hoạt động này hỗ trợ tới 4 kết nối đồng thời,
vì thế nhiều máy chủ có thể lấy dữ liệu từ một thiết bị một thiết bị serial ở cùng một thời
điểm.
The important point is that Real COM Mode allows users to continue using RS-
232/422/485 serial communications software that was written for pure serial
communications applications. The driver intercepts data sent to the host’s COM port,
packs it into a TCP/IP packet, and then redirects it through the host’s Ethernet card. At
the other end of the connection, the NPort accepts the Ethernet frame, unpacks the
TCP/IP packet, and then transparently sends it to the appropriate serial device attached to
one of the NPort’s serial ports.
Điểm quan trọng là chế độ Real COM cho phép người sử dụng vẫn có thể sử dụng
phần mềm giao tiếp serial (RS-232/422/485) được viết thuần túy cho các ứng dụng giao
tiếp serial. Driver có nhiệm vụ chặn các dữ liệu đã gửi tới cổng COM của host, đóng gói
chúng thành một gói tin TCP/IP, sau đó chuyển chúng qua Card Ethernet của máy chủ. Ở
đầu kia của kết nối, Nport nhận bản tin gửi qua Ethernet, mở gói tin TCP/IP sau đó gửi
tới thiết bị serial phù hợp đang được kết nối tới cổng serial của Nport

ATTENTION
Real COM Mode allows several hosts to have access control over the same NPort.
The driver that comes with your NPort controls host access to attached serial devices by
checking the host’s IP address.
Modify the Accessible IP Setting table when the legal IP address should be required in
your application

Chú ý
Chế độ Real COM cho phép một vài máy chủ có thể truy cập, điều khiển thông qua 1
Nport. Những Driver đi kèm với Nport điều khiển máy chủ truy cập tới thiết bị serial
đang được kết nối bằng việc kiểm tra địa chỉ IP của máy chủ.
Chỉnh sửa bảng cài đặt địa chỉ IP có thể truy nhập nếu ứng dụng yêu cầu những địa chỉ IP
hợp lệ.

TCP Server Mode


In TCP Server mode, the NPort provides a unique IP:Port address on a TCP/IP
network. The NPort waits passively to be contacted by the host computer, allowing the
host computer to establish a connection with and get data from the serial device. This
operation mode also supports up to 4 simultaneous connections, so that multiple hosts can
collect data from the same serial device—at the same time.
As illustrated in the figure, data transmission proceeds as follows:
1. The host requests a connection from the NPort configured for TCP Server Mode.
2. Once the connection is established, data can be transmitted in both directions—
from the host to the NPort, and from the NPort to the host.
Chế độ TCP Server
Trong chế độ TCP Server, Nport cung cấp một địa chỉ cổng duy nhất (IP:Port) trên
mạng TCP/IP. Nport sẽ đợi liên hệ của máy tính chủ một cách thụ động , cho phép máy
tính chủ thiết lập một kết nối và lấy dữ liệu từ thiết bị serial. Chế độ hoạt động này cũng
hỗ trợ tới 4 kết nối đồng thời, nhằm mục đích nhiều máy chủ có thể lấy dữ liệu từ một
thiết bị serial ở cùng một thời điểm.

Quá trình truyền dữ liệu theo các dòng được minh họa như hình vẽ:

1. Máy chủ yêu cầu một kết nối từ một Nport được cấu hình trong chế độ TCP Server
2. Một kết nối được thiết lập, dữ liệu có thể được truyền theo cả hai hướng – từ máy
chủ tới Nport và từ Nport tới máy chủ.

TCP Client Mode


In TCP Client mode, the NPort can actively establish a TCP connection to a pre-
defined host computer when serial data arrives.
After the data has been transferred, the NPort can automatically disconnect from the host
computer by using the TCP alive check time or Inactivity time settings. Refer to
chapter 5 for more details.
As illustrated in the figure, data transmission proceeds as follows:
1. The NPort configured for TCP Client Mode requests a connection from the host.
2. Once the connection is established, data can be transmitted in both directions—from
the host to the NPort, and from the NPort to the host.
Chế độ TCP Client
Trong chế độ TCP Client, Nport có thể chủ động thiết lập một kết nố TCP tới một
máy chủ đã được xác định khi dữ liệu serial đến.
Sau đó dữ liệu có thể được truyền tải, Nport có thể tự động ngắt kết nối từ máy chủ nhờ
vào cài đặt TCP alive check time hoặc Inactivity time.
Hình vẽ mình họa quá trình truyền dữ liệu theo các hướng:
1. Nport đã được cấu hình chế độ TCP Client yêu cầu một kết nối từ máy chủ
2. Một kết nối được thiết lập, dữ liệu có thể được truyền theo cả hai hướng - từ máy
chủ tới Nport và ngược lại

UDP Mode
Compared to TCP communication, UDP is faster and more efficient. In UDP mode,
you can multicast data from the serial device to multiple host computers, and the serial
device can also receive data from multiple host computers, making this mode ideal for
message display applications.

Chế độ UDP

So với việc truyền thông theo chế độ TCP, thì UDP nhanh hơn và hiệu quả hơn.
Trong chế độ UDP, có thể gửi dữ liệu quảng bá từ thiết bị serial tới nhiều máy chủ và các
thiết bị serial cũng có thể nhận dữ liệu từ nhiều máy chủ, làm chế độ này lý tưởng cho các
ứng dụng hiển thị tin nhắn.
Pair Connection Mode
Pair Connection Mode employs two NPort 5400 units in tandem, and can be used to
remove the 15-meter distance limitation imposed by the RS-232 interface. One NPort
5400 is connected from its RS-232 port to the COM port of a PC or other type of
computer, such as a hand-held PDA, and the serial device is connected to the RS-232 port
of the other NPort 5400. The two NPort 5400 units are then connected to each other with
a cross-over Ethernet cable, both are connected to the same LAN, or in a more advanced
setup, they communicate with each other over a WAN (i.e., through one or more routers).
Pair Connection Mode transparently transfers both data and modem control signals
(although it cannot transmit the DCD signal) between the two NPort device servers.

Chế độ kết nối theo cặp


Chế độ kết nối theo cặp sử dụng hai Nport kết nối với nhau có thể được sử dụng để
loại bỏ giới hạn 15m khoảng cách truyền trong giao tiếp qua RS-232. Một Nport được kết
nối với cổng COM của máy tính hoặc các loại thiết bị cầm tay PDA qua cổng COM của
nó. Thiết bị serial kết nối với một Nport khác qua cổng COM. Hai Nport kết nối với nhau
qua cáp Ethernet (cáp chéo). Cả hai phải được kết nối tới cùng một mạng LAN hoặc với
những thiết lập nâng cao (ví dụ như qua một hoặc nhiều Router) chúng có thể giao tiếp
với nhau thông qua mạng WAN . Chế độ kết nối theo cặp thực hiện truyền cả dữ liệu và
tín hiệu điều khiển modem (tuy nhiên nó không thể truyền tín hiệu DCD- Data Carrier
Detect) giữa hai thiết bị Nport Servers.

Reverse Telnet Mode


Console management is commonly used by connecting to Console/AUX or COM
ports of routers, switches, and UPS units. Rtelnet works the same as RAW mode in that
only one TCP port is listened to after booting up. The system then waits for a host on the
network to initiate a connection. The difference is that the RAW mode does not provide
the conversion function provided by Telnet. If the connected devices need to use the
CR/LF conversion function when controlling, then users must choose Rtelnet mode.

Chế độ Reverse Telnet

Quản lý cấu hình được sử dụng rất phổ biến bằng các kết nối tới cổng Console/ AUX
hoặc các cổng của Router, Switch và các đơn vị UPS. Rtelnet làm việc như chế độ RAW.
Trong đó chỉ một cổng TCP được lắng nghe sau khi khởi động lại. Hệ thống sau đó sẽ
đợi một máy chủ trong mạng xây dựng một kết nối. Điểm khác biệt là chế độ RAW
không cung cấp chức năng chuyển đổi như Telnet. Nếu các thiết bị đã kết nối cần sử
dụng chức năng chuyển đổi CR/LF(Carriage Return/Line Feed-ký tự kết thúc frame dữ
liệu truyền thông) khi điều khiển, người dùng cần phải chọn chế độ Rtelnet

You might also like