using BPASmart.Model;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO.Ports;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace BPASmart.Model
{
public class ModbusRtu : ICommunicationDevice
{
///
/// 串口端口
///
public string ComSerialPort { get; set; }
///
/// 波特率,110,300--115200(从300开始乘以2,直到结果等于115200)
///
public string BaudRate { get; set; } = "9600";
///
/// 数据位,默认为 8
///
public int DataBit { get; set; } = 8;
///
/// 停止位,默认为 1
///
public int StopBit { get; set; } = 1;
///
/// 站号,默认为 1
///
public int StationNo { get; set; } = 1;
///
/// 奇偶校验,无,奇校验,偶校验
///
public string Parity { get; set; }
}
}