Commit Briefs

4271d2fc93 witcher

toolchain, remote lib, mailing list (master)


1a8805c9cf witcher

Fix checking for dropped packets


d0f51fe0a1 witcher

Fix indentation


2525379872 witcher

Clippy: Add lints and fix them


e1a93e3147 Thomas Böhler

Add momentary throughput to output

Fixes: https://todo.sr.ht/~witcher/bachelor-thesis/7


5078b3d015 Thomas Böhler

Check for packet loss

Implements: https://todo.sr.ht/~witcher/bachelor-thesis/1


e7d90f9740 Thomas Böhler

Optimize throughput by setting data to packet size


57d0d88199 Thomas Böhler

Add resources to README.md


b13cb13fa6 Thomas Böhler

Fix esp-idf version to v4.4.3


2beaf2036c Thomas Böhler

Add README.md


Branches

Tags

Tree

.cargo/
.gitignorecommits | blame
Cargo.lockcommits | blame
Cargo.tomlcommits | blame
README.mdcommits | blame
build.rscommits | blame
partitions.csvcommits | blame
rust-toolchain.tomlcommits | blame
sdkconfig.defaultscommits | blame
sdkconfig.releasecommits | blame
src/

README.md

# esp32-ble-throughput

Test throughput of Bluetooth Low Energy (BLE) using an ATT_MTU of 517 bytes, Data
Packet Length Extension (DLE) of 251 bytes, and 2M PHY.

## Compiling

Install the dependencies:

- Rust
- cargo-espflash
- cargo-espmonitor

### Flashing

Flash the program with the following command, replacing `/dev/ttyACM0` with the
tty where your microcontroller is connected:

```sh
cargo espflash --partition-table partitions.csv --flash-size 4MB --speed 921600 --monitor /dev/ttyACM0
```

This not only flashes but also activates monitoring. If monitoring is not
desired, simply remove the `--monitor` flag.  
Building and flashing in release mode can be achieved with `--release`.

Other options should be adjusted as needed.

### Monitoring

To monitor the device and its output, use the following command, again replacing
`/dev/ttyACM0` with your microcontroller:

```sh
cargo espmonitor --chip esp32c3 --reset --speed 921600 /dev/ttyACM0
```

If automatically resetting the chip on connect is not desired, remove the
`--reset` flag.  
Monitoring the binary in release mode can be achieved with `--release`.

Other options should be adjusted as needed.

## Resources

Send patches and questions to
[~witcher/public-inbox@lists.sr.ht](https://lists.sr.ht/~witcher/public-inbox).

Instructions for preparing a patch are available at
[git-send-email.io](https://git-send-email.io/).