|
|
using SqlSugar;
|
|
|
|
|
|
namespace ProductionSystem_Model.DbModel.Protocol
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// CAN/LIN通讯协议配置表
|
|
|
/// </summary>
|
|
|
[SugarTable("t_protocol_config")]
|
|
|
public class T_Protocol_Config : BaseModel
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 协议类型
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnName = "protocol_type")]
|
|
|
public string ProtocolType { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 协议编码
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnName = "protocol_code")]
|
|
|
public string ProtocolCode { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 协议名称
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnName = "protocol_name")]
|
|
|
public string ProtocolName { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 波特率
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnName = "bps")]
|
|
|
public int Bps { get; set; } = 115200;
|
|
|
|
|
|
/// <summary>
|
|
|
/// 串口号
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnName = "port")]
|
|
|
public string Port { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 校验位
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnName = "chk_bit")]
|
|
|
public string ChkBit { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 数据位
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnName = "data_bit")]
|
|
|
public int DataBit { get; set; } = 8;
|
|
|
|
|
|
/// <summary>
|
|
|
/// 停止位
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnName = "stop_bit")]
|
|
|
public int StopBit { get; set; } = 1;
|
|
|
|
|
|
/// <summary>
|
|
|
/// 报文格式
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnName = "msg_format")]
|
|
|
public string MsgFormat { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 帧类型(标准帧、扩展帧)
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnName = "frame_type")]
|
|
|
public string FrameType { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 站号(目前PWM使用)
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnName = "station_no")]
|
|
|
public int? StationNo { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 排序索引
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnName = "sortindex")]
|
|
|
public int SortIndex { get; set; } = 0;
|
|
|
}
|
|
|
}
|