Expand description
The huawei-modem
library provides a set of utilities for interfacing with USB 3G/HSDPA/UMTS
modems (particularly Huawei models, like the E220 and E3531) that use the Hayes/AT command set.
At present, the library’s main consumer is
sms-irc. In particular, it may be helpful to
look at modem.rs inside that project
to get a feel for how to use this library, as well as looking inside the examples/
subdirectory to see some simple SMS sending/receiving examples.
Re-exports§
pub use crate::errors::HuaweiResult;
Modules§
- at
- Types for dealing with AT commands and replies.
- cmd
- Functions for sending actual AT commands to a connected modem.
- codec
- Contains the Tokio codec used to decode the AT protocol.
- error_
codes - Typed representations of modem error codes.
- errors
- Error handling.
- gsm_
encoding - Utilities for dealing with the (annoying) GSM 7-bit encoding (GSM 03.38), and decoding/encoding message data.
- pdu
- Utilities for dealing with GSM 03.40 Protocol Data Units (PDUs).
Structs§
- Huawei
Modem - A connection to an AT/Huawei-style modem.
- Modem
Response Future - Future representing a response from the modem.
Type Aliases§
- Huawei
Future - Bog-standard boxed future alias.