Crates.io | rpi_sim868 |
lib.rs | rpi_sim868 |
version | 0.1.7 |
source | src |
created_at | 2023-10-14 19:45:04.880533 |
updated_at | 2024-01-31 09:40:11.458342 |
description | RPi SIM868 is a crate designed to facilitate interaction with the Waveshare SIM868 HAT for Raspberry Pi. |
homepage | https://github.com/j-kowal/rpi-sim868 |
repository | |
max_upload_size | |
id | 1003276 |
size | 77,454 |
RPi SIM868 is a Rust crate designed to simplify interaction with the Waveshare SIM868 HAT for Raspberry Pi. It utilizes the Tokio runtime for managing asynchronous tasks and includes its own task scheduler based on a priority queue.
Each method call initiates a new task, which is enqueued with a priority to ensure swift execution as soon as the serial port becomes available.
Methods (except for HAT::turn_on
) return TaskJoinHandle<T>
, where T
represents the type resulting from parsing and analyzing the serial output, if applicable. Tasks related to phone calls are treated as first-class citizens with high priority, reducing delays in answering or concluding calls.
RPi SIM868 was conceived following a high-altitude balloon launch where the HAT served as a backup tracking device. The initial software, written in Python, lacked the performance and safety synonymous with Rust.
ttyUSBx
portttySx
port.