You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

42 lines
1.0 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace HBLConsole.Model
  7. {
  8. public class SerialDeviceBase : UniversalBase
  9. {
  10. /// <summary>
  11. /// 串口端口
  12. /// </summary>
  13. public string ComSerialPort { get; set; }
  14. /// <summary>
  15. /// 波特率,110,300--115200(从300开始乘以2,直到结果等于115200)
  16. /// </summary>
  17. public string BaudRate { get; set; } = "9600";
  18. /// <summary>
  19. /// 数据位,默认为 8
  20. /// </summary>
  21. public int DataBit { get; set; } = 8;
  22. /// <summary>
  23. /// 停止位,默认为 1
  24. /// </summary>
  25. public int StopBit { get; set; } = 1;
  26. /// <summary>
  27. /// 站号,默认为 1
  28. /// </summary>
  29. public int StationNo { get; set; } = 1;
  30. /// <summary>
  31. /// 奇偶校验,无,奇校验,偶校验
  32. /// </summary>
  33. public string Parity { get; set; }
  34. }
  35. }