<commit_before># SBMP framing layer

The SMBP can use a variety of framing / physical layers.

This document describes a framing layer to be used with USART.

## Packet structure

Each message is contained in a binary packet of the following structure:

```none
+------------+-----------------+-------------+-----------------+------------------+
| Start byte | Payload length  |   Payload   |  Checksum type  |     Checksum     |
|    0x01    |    2 bytes      |             |     1 byte      |  (0 or 4 bytes)  |
+------------+-----------------+-------------+-----------------+------------------+
```

The length and checksum fields are little-endian (LSB first).
<commit_msg>wording<commit_after># SBMP framing layer

This document describes a SBMP framing layer to be used with USART-based interfaces.

## Packet structure

Each message is contained in a binary packet (frame) of the following structure:

```none
+------------+-----------------+-------------+-----------------+------------------+
| Start byte | Payload length  |   Payload   |  Checksum type  |     Checksum     |
|    0x01    |    2 bytes      |             |     1 byte      |  (0 or 4 bytes)  |
+------------+-----------------+-------------+-----------------+------------------+
```

The length and checksum fields are little-endian (LSB first).

{'fraction_non_alphanumeric': 0.3037878787878788, 'fraction_numerical': 0.010606060606060607, 'mean_word_length': 1.2351945854483926, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2173877', 'n_tokens_mistral': 326, 'n_tokens_neox': 302, 'n_words': 125}