namespace LB_VisionProcesses.Communicators
{
public interface ICommunicator : IDisposable
{
///
/// 连接通讯
///
///
bool Connect();
///
/// 断开连接
///
///
bool Disconnect();
///
/// 接收消息
///
///
string ReceiveMsg();
///
/// 发送消息
///
///
///
bool SendMessage(string message);
///
/// 发送心跳信号
///
void SendHeartbeat();
}
public enum CommunicatorType { Sender, Receiver }
public enum CommunicatorBrand
{
///
/// 串口通讯
///
UARTPort,
///
/// TCP客户端
///
TCPClient,
///
/// TCP服务器
///
TCPServer,
///
/// 本地通讯
///
LocalMonitor,
///
/// 西门子S7
///
SiemensS7,
///
/// MES通讯
///
MESCommunicate,
///
/// 暂不支持
///
UNSUPPORTED
}
}