iblrig.serial_singleton.get_serial_number_from_port

iblrig.serial_singleton.get_serial_number_from_port(port)[source]

Retrieve the serial number of a USB serial device identified by its com port.

Parameters:

port (str) – The communication port of the USB serial device for which you want to retrieve the serial number.

Returns:

The serial number of the USB serial device corresponding to the provided communication port. Returns None if no device matches the port.

Return type:

str or None

Parameters:

port (str | None)