Crate huawei_modem

source ·
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

Modules

  • Types for dealing with AT commands and replies.
  • Functions for sending actual AT commands to a connected modem.
  • Contains the Tokio codec used to decode the AT protocol.
  • Typed representations of modem error codes.
  • Error handling.
  • Utilities for dealing with the (annoying) GSM 7-bit encoding (GSM 03.38), and decoding/encoding message data.
  • Utilities for dealing with GSM 03.40 Protocol Data Units (PDUs).

Structs

Type Definitions