Click or drag to resize

GsmModemDetectGsm(SerialBaudRate, SerialBaudRate, SerialCommPort, SerialBaudRate) Method

Detects the first GSM modem connected to the system and returns as output parameters the communication port and baud rate. Only baud rate values between startBaudRate and endBaudRate are checked.

Namespace: ZylSoft.Gsm
Assembly: ZylGsm (in ZylGsm.dll) Version: 1.2.0.21451
XMLNS for XAML: Not mapped to an xmlns.
Syntax
public bool DetectGsm(
	SerialBaudRate startBaudRate,
	SerialBaudRate endBaudRate,
	out SerialCommPort port,
	out SerialBaudRate baudRate
)

Parameters

startBaudRate  SerialBaudRate
The lower baud rate limit used at the detection process.
endBaudRate  SerialBaudRate
The higher baud rate limit used at the detection process.
port  SerialCommPort
The serial port where the GSM modem is connected to.
baudRate  SerialBaudRate
Baud rate of the communication.

Return Value

Boolean
Returns true, if a GSM modem was detected, otherwise false.
See Also