https://github.com/factbirdhq/ublox-cellular-rs
A driver crate for the entire u-blox cellular family in Rust
https://github.com/factbirdhq/ublox-cellular-rs
cellular embedded no-std rust ublox
Last synced: 6 months ago
JSON representation
A driver crate for the entire u-blox cellular family in Rust
- Host: GitHub
- URL: https://github.com/factbirdhq/ublox-cellular-rs
- Owner: FactbirdHQ
- Created: 2020-02-03T12:07:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-29T12:19:53.000Z (8 months ago)
- Last Synced: 2024-10-29T14:35:17.679Z (8 months ago)
- Topics: cellular, embedded, no-std, rust, ublox
- Language: Rust
- Homepage:
- Size: 709 KB
- Stars: 21
- Watchers: 7
- Forks: 10
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ublox-cellular
> no_std driver crate for interfacing with the ublox cellular family over serial
![Test][test]
![No Std][no-std-badge]
[![Crates.io Version][crates-io-badge]][crates-io]
[![Crates.io Downloads][crates-io-download-badge]][crates-io-download]---
A driver crate for AT-command based serial ublox cellular modules, built on top of [atat].
[atat]: https://crates.io/crates/atat
## [Documentation](https://docs.rs/ublox-cellular-rs/latest)
Relevant docs:
- https://www.u-blox.com/en/docs/UBX-20015573
- https://www.u-blox.com/en/docs/UBX-13001820Relevant repos:
- https://github.com/u-blox/cellular
- https://github.com/ARMmbed/mbed-os/blob/master/connectivity/drivers/cellular
- https://github.com/particle-iot/device-os
- https://github.com/u-blox/ubxlib## Tests
> The crate is covered by tests. These tests can be run by `cargo test --tests --all-features`, and are run by the CI on every push.
## Examples
The crate has examples for running it on a linux platform.The samples can be built using `cargo build -p linux_example --target x86_64-unknown-linux-gnu`, and similarly run using `cargo run`
## Features
- device selection (must select one, and only one!):
- `toby-l4`
- `mpci-l2`
- `lisa-u2`
- `sara-r5`
- `sara-g3`
- `sara-g4`
- `sara-u2`
- `sara-u1`
- `toby-l2`
- `toby-r2`
- `lara-r2`
- `lara-r6`
- `leon-g1`
- `socket-tcp`: Enabled by default. Adds TCP socket capabilities, and implements [`TcpStack`] trait.
- `socket-udp`: Enabled by default. Adds UDP socket capabilities, and implements [`UdpStack`] trait.
- `defmt-impl `: Use `defmt` based logging. Typically used in no_std platforms.
- Different log levels can be used like this: `DEFMT_LOG=info cargo run myapp`
- `log-impl`: Use `log` based logging. Used in std platforms.
- Different log levels can be used like this: `RUST_LOG=error cargo run myapp`## License
Licensed under either of
- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or
http://www.apache.org/licenses/LICENSE-2.0)
- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)at your option.
### Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
dual licensed as above, without any additional terms or conditions.[test]: https://github.com/BlackbirdHQ/ublox-cellular-rs/workflows/Test/badge.svg
[no-std-badge]: https://img.shields.io/badge/no__std-yes-blue
[crates-io]: https://crates.io/crates/ublox-cellular-rs
[crates-io-badge]: https://img.shields.io/crates/v/ublox-cellular-rs.svg?maxAge=3600
[crates-io-download]: https://crates.io/crates/ublox-cellular-rs
[crates-io-download-badge]: https://img.shields.io/crates/d/ublox-cellular-rs.svg?maxAge=3600