From 15fb136bc3daabfd747937b473a9474c92e4c39e Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 17 May 2011 20:12:32 +0000 Subject: CS should include 0xAA of each frame git-svn-id: https://svn.spreadspace.org/mur.sat@26 7de4ea59-55d0-425e-a1af-a3118ea81d4c --- doc/protocols/ihu-cpu.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/protocols/ihu-cpu.txt') diff --git a/doc/protocols/ihu-cpu.txt b/doc/protocols/ihu-cpu.txt index fad1ffa..165c36d 100644 --- a/doc/protocols/ihu-cpu.txt +++ b/doc/protocols/ihu-cpu.txt @@ -31,7 +31,7 @@ the length of the following DATA field. The length field might be zero if the message doesn't need any additional data. The last byte of every frame contains a checksum. It is calculated by XORing every variable byte of the message. In a message N bytes long, where Byte 1 is the first and Byte -N the last Byte, CS is calculated starting with Byte 2 (MSG) and ending +N the last Byte, CS is calculated starting with Byte 1 (0xAA) and ending with Byte N-1 (last DATA Byte) The minimum frame length is 4 Bytes and the maximum is 260 Bytes. The bytes have to be sent LSB first. Multi byte fields have to be sent @@ -107,8 +107,8 @@ budget is 2424 units of power and the current time is 1305501574 seconds since epoch. The CPU acknowledges the message. -IHU->CPU: 0xAA 'P' 0x06 0x09 0x78 0x4d 0xd0 0x5f 0x86 0x63 -CPU->IHU: 0xAA 'p' 0x00 0x70 +IHU->CPU: 0xAA 'P' 0x06 0x09 0x78 0x4d 0xd0 0x5f 0x86 0xc9 +CPU->IHU: 0xAA 'p' 0x00 0xda Power Management -- cgit v1.2.3