Click or drag to resize

SerialPortFastDetectDevice Method

Detects the serial port where the device is connected to and returns as output parameters the communication port and baud rate. In the detection process senToken will be sent and receivedToken is expected to receive. Only baud rates between 4800 and 921600 will be checked.

Namespace: ZylSoft.Serial
Assembly: ZylSerialPort (in ZylSerialPort.dll) Version: 1.83.8519.34486
Syntax
public bool FastDetectDevice(
	string sentToken,
	string receivedToken,
	out SerialCommPort port,
	out SerialBaudRate baudRate
)

Parameters

sentToken  String
The token, which is sent in the detection process, to check the port.
receivedToken  String
The token, expected to receive in the detection process, to check the port.
port  SerialCommPort
The serial port where the device is connected to.
baudRate  SerialBaudRate
Baud rate of the communication.

Return Value

Boolean
Returns true, if a GPS receiver was detected, otherwise false.
See Also