RS-232/485/422 Communication Controller 1 Embedded

Download Report

Transcript RS-232/485/422 Communication Controller 1 Embedded

1
Embedded
RS-232/485/422
Controller
RS-232/485/422 Communication
Controller
Addressable
RS-232/485/422
Converter
RS-232/485/422
Device
Server
RS-232/485/422
Communication
Controller
6
RS-232 / 485 / 422 Communication Controller
Plug & Play
utility
5
Application
Softwore
Network
interface
2
4
Softwore
driver
RS-232
devices
1 RS-485
devices
RS-485
devices
1 RS-422
devices
RS-422
devices
CPU
HOST COMPUTER
3
1 RS-232
devices
RAM / ROM
firmware
RS-232 / 485 / 422 Communication Controller
Network
interface
2
3
RAM / ROM
firmware
1 RS-232
devices
RS-232
devices
1 RS-485
devices
RS-485
devices
1 RS-422
devices
RS-422
devices
CPU
2
The comparison table of these 3 types of communication controller is given as follows:
1 RS-232/485/422
interface
2: network
interface
3: RAM/ROM
firmware
4: software
driver
5: application
software
6: Plug&Play
Utility
Easy Using
Flexibility
Embedded
Addressable
RS-232/485/422
RS-232/485/422
RS-232/485/422
Device
Controller
Controller
Server
RS-232 or
Same
same
RS-485 or
RS-422
RS-485 or
same
same
Ethernet 10M or
Ethernet 10/100M or
Other network
User must write his special Well-design firmware & Well-design firmware &
application program
Source codes are open for Source codes are open for
user’s modification to fit his reference. It is very
special requirement.
difficult to modify for
user’s
special
requirement.
DLLs
DLLs
DLLs
User must write his special User’s
old
application User’s old application
application program
program must be modified program
can
work
to fit the protocol defined without modification
by (3) firmware.
No need
No need
MS-COMM standard
Low
High
Middle
Middle
Most
Most
3
RS-232/485/422 Communication Controller family
RS-232/485/422
Communication Controller

Same hardware

7521 family

Download different

7188E1 family
firmware to get best

8X10 + 81XX
solution

8X30 + 81XX

8X40 + 81XX
Embedded
RS-232/485/422 Controller
.Write firmware for controller
.Write application program for
Host-PC
.Can solve any problem even
for I/O control or data
compression or security
.Need to write two programs
.The most flexible solution for
user
Addressable
RS-232/485/422 Converter
.Download firmware-1 to
CPU module
.Write application program for
Host-PC
.Can solve nearly any
problem even for I/O control
or data security or
compression
.Need to write one program
.The trade-off solution for
user
RS-232/485/422
Device Server
.Download firmware-2 to
CPU module
.Execute P&P utility in
Host-PC during the
installation stage
.Can solve most of
problems
.No need to write any
software
.The most easy solution for
user
4
8000 Family
841X/881X + 8112/8114/8142/8144
8410/8810
L1
L2
L3
UP
DOWN
MODE
POWER
SET
+VS
Input :
+10V~+30VDC
RS-232/485/422
device
GND
INT*
Inltlallze
INIT*COM
DATA+
RS-485
DATA-
HOST COMPUTER
RS-232/485/422
device
8410 / 8810
L1
L2
L3
UP
DOWN
MODE
POWER
SET
+VS
Input :
+10V~+30VDC
RS-232/485/422
device
GND
INT*
Inltlallze
INIT*COM
DATA+
RS-485
DATA-
RS-232/485/422
device
5
843X/883X/844X/884X + 8112/8114/8142/8144
8X3X/8X4X
RS-232/485/422
device
HOST COMPUTER
HUB
1 2 3 4 5 6 7 8
RS-232/485/422
device
8X3X/8X4X
RS-232/485/422
device
To Ethernet Router
RS-232/485/422
device
6
7521 family & 7188E1 family
7521/7188E1
family
7521
7522A
7522
7523
7524
7527
7188E1
7188E2
7188E3
7188E4
7188E5
7188E8
Network
Interface
To Host-PC
RS-485
RS-485
RS-485
RS-485
RS-485
RS-485
Ethernet 10M
Ethernet 10M
Ethernet 10M
Ethernet 10M
Ethernet 10M
Ethernet 10M
Interface to local RS-232/485/422 devices
RS-232
RS-485
RS-422
Local D/I/O
DI
DO
1(note 1)
1(note 1)
2(note 1)
3(note 1)
4(note 1)
7(note 1)
1
1
1
3
4
7
3
4
3
1
0
0
0
0
4
0
0
0
1(note 1)
1(note 1)
1(note 1)
1(note 1)
1(note 1)
1(note 1)
0
1
1
1
1
1
0
1
0
0
0
0
0
0
1
0
0
0
3
4
1
2
0
0
0
0
4
0
0
0
7
7521 family
HOST COMPUTER
7521/7522/7523
family
RS-232/485
devices
7522A/7524/7527
family
RS-232/485/422
devices
8
RS-232
device
HOST COMPUTER
7522
RS-232/485
device
RS-485 To Host-PC
RS-232
device
RS-485 To Host-PC
7522
RS-232/485
device
9
RS-232/485
device
HOST COMPUTER
7522A
RS-422/485
device
RS-485 To Host-PC
RS-232/485
device
RS-485 To Host-PC
7522A
RS-422/485
device
10
RS-232
device
RS-232/485
device
RS-232
device
HOST COMPUTER
RS-232/485
device
7523
RS-485 To Host-PC
RS-232
device
RS-232
device
HOST COMPUTER
7524
RS-232
device
RS-485 To Host-PC
RS-232/485
device
RS-232
device
RS-485 To Host-PC
RS-232/485
device
7523
RS-232
device
RS-232
device
RS-485 To Host-PC
7524
RS-232
device
RS-232
device
RS-232
device
RS-232
device
RS-232
device
HOST COMPUTER
7527
RS-232
device
RS-232
device
RS-485 To Host-PC
RS-232
device
RS-232
device
RS-232
device
RS-232
device
RS-485 To Host-PC
7527
RS-232
device
RS-232
device
RS-232
device
RS-232
device
RS-232
device
11
7188E1 family
HOST COMPUTER
HUB
Ethernet 10M
1 2 3 4 5 6 7 8
7188E1
family
RS-232/485/422
devices
7188E1
family
RS-232/485/422
devices
Ethernet 10M
To Ethernet Router
12
Ethernet 10M
7188E1
HOST COMPUTER
HUB
1 2 3 4 5 6 7 8
RS-232
device
Ethernet 10M
To Ethernet Router
7188E1
RS-232
device
13
Ethernet 10M
7188E2
HOST COMPUTER
HUB
1 2 3 4 5 6 7 8
RS-232
device
Ethernet 10M
To Ethernet router
RS-485
device
RS-485
device
7188E2
RS-232
device
14
Ethernet 10M
7188E3
HOST COMPUTER
RS-422
device
HUB
1 2 3 4 5 6 7 8
RS-232
device
Ethernet 10M
To Ethernet Router
RS-485
device
RS-485
device
7188E3
RS-422
device
RS-232
device
15
Self-Tuner ASIC Inside On All RS-485 Port
• 2-wire RS-485
->half-duplex network
-> send/receive direction control.
• Self-Tuner ASIC controller
->auto detect & control the send/receive direction of RS485 network
• The 8000 family equips a Self-Tuner ASIC controller
on all RS-485 ports(COM 2/3 of 841x/881x, 8142 &
8144).
ToCom(port, sent_data);/* send one sent_char to RS-232/RS-485
/* no direction control
*/
while IsCom(port);/* wait one echo_char from RS-232/RS-485 */
echo_data=ReadCom(port);/* read this echo_data
*/
*/
16
Using HP34401A
1. Wire Connection of HP34401A to RS232 interface of host
3. HP34401A initialization command:
HP 34401A
RS-232 port
DSR
GND
Txd
RxD
RS-232 of host
9
8
7
6
5
4
3
2
1
to RTS or DSR
to GND
to Rxd
to Txd
2. RS-232 configuration setting of host
Baud rate=9600 BPS
Parity=Even
Data=7
Stop bit=2
SYST:REM(0x0A)
command = SYST:REM(0x0A)
response = no response
4. read data from HP34401A command:
READ?(0x0A)
command = READ?(0x0A)
response = -?.??????E+??(0x0A)
17
Used As Embedded RS-232/485/422 Controller
Embedded RS-232 / 485 / 422 Controller
5
Application
Softwore
Network
interface
2
4
Softwore
driver
RS-232
devices
1 RS-485
devices
RS-485
devices
1 RS-422
devices
RS-422
devices
CPU
HOST COMPUTER
3
1 RS-232
devices
RAM / ROM
firmware
Embedded RS-232 / 485 / 422 Controller
Network
interface
2
3
RAM / ROM
firmware
1 RS-232
devices
RS-232
devices
1 RS-485
devices
RS-485
devices
1 RS-422
devices
RS-422
devices
CPU
18
8-port RS-232 Embedded Controller by RS-485 Network
Using 8X10+81XX
HOST COMPUTER
NET-ID = 0X01
NET-ID = 0X02
19
Using 7524
RS-232/485
device
RS-232
device
HOST COMPUTER
7524
RS-232
device
RS-232
device
RS-485 To Host-PC
RS-232/485
device
RS-232
device
RS-485 To Host-PC
7524
RS-232
device
RS-232
device
20
8-port RS-232 Embedded Controller by Ethernet Network
Using 8X30/8X40+81XX
HOST COMPUTER
HUB
1 2 3 4 5 6 7 8
NET-ID = 0X01
To Ethernet router
NET-ID = 0X02
21
Using 7188E5
Ethernet 10M
7188E5
HOST COMPUTER
HUB
1 2 3 4 5 6 7 8
Ethernet 10M
To Ethernet router
7188E5
22
Use As Addressable RS-232/485/422 Converter
Addressable RS-232 / 485 / 422 Controller
5
Application
Softwore
Network
interface
2
4
Softwore
driver
RS-232
devices
1 RS-485
devices
RS-485
devices
1 RS-422
devices
RS-422
devices
CPU
HOST COMPUTER
3
1 RS-232
devices
RAM / ROM
firmware
Addressable RS-232 / 485 / 422 Controller
Network
interface
2
3
RAM / ROM
firmware
1 RS-232
devices
RS-232
devices
1 RS-485
devices
RS-485
devices
1 RS-422
devices
RS-422
devices
CPU
23
8-port Addressable RS-232/485/422 Converter by RS-485 Network
Using 8X10+81XX
HOST COMPUTER
NET-ID = 0X01
NET-ID = 0X02
24
Using 7524
RS-232/485
device
RS-232
device
HOST COMPUTER
7524
RS-232
device
RS-232
device
RS-485 To Host-PC
RS-232/485
device
RS-232
device
RS-485 To Host-PC
7524
RS-232
device
RS-232
device
25
8-port Addressable RS-232/485/422 Converter by Ethernet Network
Using 8X30/8X40 + 81XX
HOST COMPUTER
HUB
1 2 3 4 5 6 7 8
NET-ID = 0X01
To Ethernet router
NET-ID = 0X02
26
Using 7188E5
Ethernet 10M
7188E5
HOST COMPUTER
HUB
1 2 3 4 5 6 7 8
Ethernet 10M
To Ethernet router
7188E5
27
Use As RS-232/485/422 Device Server
6
RS-232 / 485 / 422 device server
Plug & Play
utility
5
Application
Softwore
Network
interface
2
4
Softwore
driver
RS-232
devices
1 RS-485
devices
RS-485
devices
1 RS-422
devices
RS-422
devices
1 RS-232
devices
RS-232
devices
1 RS-485
devices
RS-485
devices
1 RS-422
devices
RS-422
devices
CPU
HOST COMPUTER
3
1 RS-232
devices
RAM / ROM
firmware
RS-232 / 485 / 422 device server
Network
interface
2
3
RAM / ROM
firmware
CPU
28
8-port RS-232/485/422 Device Server by RS-485 Network
HOST COMPUTER
NET-ID = 0X01
NET-ID = 0X02
29
Using 7524
RS-232/485
device
RS-232
device
HOST COMPUTER
7524
RS-232
device
RS-232
device
RS-485 To Host-PC
RS-232/485
device
RS-232
device
RS-485 To Host-PC
7524
RS-232
device
RS-232
device
30
8-port RS-232/485 Device Server by Ethernet Network
Using 8X30/8X40 + 81XX
HOST COMPUTER
HUB
1 2 3 4 5 6 7 8
NET-ID = 0X01
To Ethernet router
NET-ID = 0X02
31
Using 7188E5
Ethernet 10M
7188E5
HOST COMPUTER
HUB
1 2 3 4 5 6 7 8
Ethernet 10M
To Ethernet router
7188E5
32
Typical Applications
N-port RS-232 to Ethernet Router
To Ethernet Router
HOST COMPUTER
HUB
1 2 3 4 5 6 7 8
4 * 8 = 32
Modem 1
RS-232
4 * 8 = 32
Modem 32
Modem 1
7188E5
RS-232
device
4 device
RS-232
RS-232
Modem 32
7188E8
7 device
RS-232
device
RS-232
Modem 1
Modem 1
33
N-port RS-232/422 Device Server
HOST COMPUTER
HUB
1 2 3 4 5 6 7 8
4 * 8 = 32
4 * 8 = 32
RS-232
RS-232
HP34401A
HP34401A
HP34401A
HP34401A
4 * 8 = 32
4 * 8 = 32
RS-422
RS-422
FX2
FX2
To Ethernet Router
FX2
FX2
Ethernet 10M
RS-485 To
Host-PC
4 devices
4 devices
RS-232
RS-232
HP34401A
HP34401A
HP34401A
HP34401A