vintage_net_mobile v0.2.3 VintageNetMobile.SignalMonitor View Source

Monitor the cell signal levels

This monitor queries the modem for cell signal level information and posts it to VintageNet properties.

The following properties are reported:

PropertyValuesDescription
signal_asu0-31,99This is the raw Arbitrary Strength Unit (ASU) reported. It's interpretation depends on the modem and possibly the connection technology.
signal_4bars0-4The signal level in "bars" for presentation to a user.
signal_dbm-144 - -44The signal level in dBm. Interpretation depends on the connection technology.

Link to this section Summary

Types

The options for the monitor are

Functions

Returns a specification to start this module under a supervisor.

Link to this section Types

Link to this type

opt()

View Source
opt() ::
  {:signal_check_interval, non_neg_integer()}
  | {:ifname, String.t()}
  | {:tty, String.t()}

The options for the monitor are:

  • :signal_check_interval - the number of milliseconds to wait before asking the modem for the signal quality (default 5 seconds)
  • :ifname - the interface name the mobile connection is using
  • :tty - the tty name that is used to send AT commands

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

start_link(opts)

View Source
start_link([opt()]) :: GenServer.on_start()