终端一体化运控平台
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.
 
 
 

57 line
1020 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace BPASmartClient.GSIceCream
  7. {
  8. public class MessageDefine
  9. {
  10. /// <summary>
  11. /// 帧头1
  12. /// </summary>
  13. public static byte HEADER1 = 0xAA;
  14. /// <summary>
  15. /// 帧头2
  16. /// </summary>
  17. public static byte HEADER2_DW = 0xA5;
  18. public static byte HEADER2_UP = 0x5A;
  19. public enum IC_CMD : byte
  20. {
  21. HEART = 0x09,
  22. MODE=0x01,
  23. }
  24. public enum ICMSG_TYPE : byte
  25. {
  26. UP = 0x5A,
  27. DOWN = 0xA5,
  28. }
  29. public static Dictionary<IC_CMD, int> MSG_LENGTH = new Dictionary<IC_CMD, int>() {
  30. { IC_CMD.HEART,18},
  31. { IC_CMD.MODE,2},
  32. };
  33. }
  34. public enum MSG_RESOLVE_STEP
  35. {
  36. NONE,
  37. HEADER1,
  38. HEADER2,
  39. CMD,
  40. CONTENT,
  41. VALIDATE1,
  42. VALIDATE2
  43. }
  44. }