123456789101112131415161718192021222324252627282930313233 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using DotNettyFrom.generatecmd;
- using DotNettyFrom.util;
-
- namespace DotNettyFrom.generatecmd
- {
- public class DtuCmdGenetor : CmdGenetor
- {
- public override string GetLoginCmd( string ccid)
- {
- string cmd = DeviceId + "820014" + ccid;
- cmd = "7e7e7e" + CmdUtil.CalcCrcCode(cmd);
- return cmd;
- }
-
- public override string GetHeartbeat()
- {
- //7e7e7e00000000000184000085
- string cmd = DeviceId + "840000";
- cmd = "7e7e7e" + CmdUtil.CalcCrcCode(cmd);
- return cmd.ToUpper();
- }
-
- public override string GetReplyCmd(string receiveCmd)
- {
- throw new NotImplementedException();
- }
- }
- }
|