分类 : 如何操作呢?/how to
想同时发送数据到多台设备时,用UDP代替TCP,将通信地址设置为广播(Broadcast)IP地址使用即可。如此构成可代替RS485网络。广播IP地址的各类别及各子网掩码都不相同。
*参考1: UDP 通信模式
下面是利用EZL-200F的构成例。
- 所有ezTCP 有线网络/无线网络产品系列可构成相同配置。
[EZL-200F的设定]
ezTCP Mode |
UDP(U2S) |
Local IP Address |
192.168.0.1 |
Subnet Mask |
255.255.255.0 |
Gateway IP Address |
192.168.0.254 |
Peer IP Address |
192.168.0.255 (broadcast IP) |
Local Port |
1470 |
Interval(10ms) |
0 |
Block(Byte) |
0 |
Peer Port |
1470 |
[PC #1]
Local IP Address |
192.168.0.2 |
Subnet Mask |
255.255.255.0 |
Gateway IP Address |
192.168.0.254 |
Local Port |
1470 |
[PC #2]
Local IP Address |
192.168.0.3 |
Subnet Mask |
255.255.255.0 |
Gateway IP Address |
192.168.0.254 |
Local Port |
1470 |
[PC #3]
Local IP Address |
192.168.0.4 |
Subnet Mask |
255.255.255.0 |
Gateway IP Address |
192.168.0.254 |
Local Port |
1470 |
See also
FAQ No.335 不改变现有产品可以连接到因特网吗?
FAQ No.339 想了解一下UDP(U2S)接口方式?
FAQ No.338 如何变更通信模式呢?
Related Products
[ Ethernet-Module ] CSE-M53, CSE-M32, EZL-50L, EZL-50M, EZL-410
[ Ethernet-Module with RJ45 ] CSE-M73, EZL-70,
[ Ethernet-Board ] EZL-60L, EZL-60M, CSE-B63
[ Ethernet-External ] CSE-H55, CSE-H53, CSE-H25, CSE-H20, CSE-H21, EZL-200L, EZL-220, EZL-200F, EZL-400S
[ Wireless-External ] EZL-300S, CSW-H80
[ Wireless-Module ] CSW-M83
[ I/O ] CIE-H10, CIE-M10