feat: 06-17 신규 작업본 반영 (개발사양서/기능검토/승인원/Source 등 추가)
.claude/ 제외(.gitignore 추가). 기존 초기커밋(5a96a69) 위에 신규·수정·이동분 커밋.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -65,6 +65,7 @@ namespace ERVSimulator.Protocol
|
||||
p[10] = (byte)rm.CurrentSA;
|
||||
p[11] = (byte)rm.CurrentRA;
|
||||
ushort crc = Crc16.Modbus(p, 0, 27);
|
||||
// lo-first : 펌웨어 CRC16()이 표준MODBUS 바이트스왑값 반환 + [27]=icrc>>8 배치 → 와이어는 리틀엔디안
|
||||
p[27] = (byte)(crc & 0xFF);
|
||||
p[28] = (byte)(crc >> 8);
|
||||
_ch.Send(p, 29);
|
||||
@@ -100,7 +101,7 @@ namespace ERVSimulator.Protocol
|
||||
|
||||
void HandleResponse(byte[] p)
|
||||
{
|
||||
ushort rxcrc = (ushort)(p[37] | (p[38] << 8));
|
||||
ushort rxcrc = (ushort)(p[37] | (p[38] << 8)); // lo-first (표준 리틀엔디안)
|
||||
if (Crc16.Modbus(p, 0, 37) != rxcrc)
|
||||
{
|
||||
PacketReceived?.Invoke($"Diff RX CRC오류 {HexFormat.Bytes(p, 39)}");
|
||||
|
||||
Reference in New Issue
Block a user