Skip to main content

Interface ICellNetworkAdapter

Provides an abstraction for a cellular INetworkAdapter

Assembly: Meadow.Contracts.dll
View Source
public interface ICellNetworkAdapter : INetworkAdapter

Properties

Imei

Gets the adapter's IMEI

View Source
string Imei { get; }

Csq

Gets the adapter's CSQ

View Source
string Csq { get; }

AtCmdsOutput

Gets the adapter's AT common output

View Source
string AtCmdsOutput { get; }

Fields

networkScanTimeoutInSeconds

Timeout duration in seconds for online network scans

View Source
public const int networkScanTimeoutInSeconds = 600

signalQualityFetchTimeoutInSeconds

Timeout duration in seconds for fetching cell signal quality

View Source
public const int signalQualityFetchTimeoutInSeconds = 120

gnssFixTimeoutInSeconds

Timeout duration in seconds for GNSS-related AT commands and output retrieval

View Source
public const int gnssFixTimeoutInSeconds = 600

Methods

OfflineNetworkScan()

Performs an offline scan for networks detected by the adapter

View Source
CellNetwork[] OfflineNetworkScan()
Returns

Meadow.Networking.CellNetwork[]: An array of CellNetwork objects representing available networks.### GetSignalQuality(int) Get current signal quality

View Source
double GetSignalQuality(int timeout = 120)
Returns

System.Double

Parameters
TypeName
System.Int32timeout

ScanForAvailableNetworks(int)

Initiates an online network scan to detect available networks, bypassing the need to enter "Scan Mode"

View Source
CellNetwork[] ScanForAvailableNetworks(int timeout = 600)
Returns

Meadow.Networking.CellNetwork[]: An array of CellNetwork objects representing available networks.

Parameters
TypeNameDescription
System.Int32timeoutThe scan timeout duration in seconds.

FetchGnssAtCmdsOutput(IGnssResult[], int)

View Source
string FetchGnssAtCmdsOutput(IGnssResult[] resultTypes, int timeout = 600)
Returns

System.String: A string containing combined output from GNSS-related AT commands, including NMEA sentences.

Parameters
TypeNameDescription
Meadow.Peripherals.Sensors.Location.Gnss.IGnssResult[]resultTypesAn array of supported GNSS result types for data processing.
System.Int32timeoutThe GNSS scan timeout duration in seconds.