diff --git a/README.md b/README.md index b10b51d..ae72f08 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ typedef union _Frame /** Channel ID */ uint8_t m_channel; - /** Channel ID */ + /** Channel DLC */ uint8_t m_dlc; /** Frame Checksum */ @@ -100,15 +100,13 @@ typedef union _Frame - The Application can publish or subscribe to any of these channels using the channel's name. - Client suscribes to a channel using [Channel 0](#control-channel-channel-0). -#### DLC Field +#### Data Length Code (DLC) Field - Contains the size of the payload contained by the frame. #### Checksum Field -- Simple Checksum. -- Applied to previous fields. -- checksum = sum(Channel + Data Bytes) % UINT8_MAX +- checksum = sum(Channel + DLC + Data Bytes) % UINT8_MAX ### Payload Field diff --git a/examples/README.md b/examples/README.md index 07a014d..563248c 100644 --- a/examples/README.md +++ b/examples/README.md @@ -5,8 +5,8 @@ The following example is written for testing the SerialMuxProt with two microcon ## Installation - Install the library, depending on your IDE. -- Compile `main.cpp` from SideA and flash it onto the first board. -- Compile `main.cpp` from SideB and flash it onto the second board. +- Compile `main.cpp` from ServerA and flash it onto the first board. +- Compile `main.cpp` from ServerB and flash it onto the second board. - Connect the UART peripherals of both boards with each other: - Rx from Board 1 with Tx from Board 2 - Tx from Board 1 with Rx from Board 2