COM

From SweepMe! Wiki
Jump to navigation Jump to search

COM ports are serial ports using the RS-232 or RS-485 protocol, either built into the computer or created by a USB-to-serial adapter or by the USB interface of an instrument (virtual COM port). SweepMe! communicates with COM ports via the Python package pyserial.

The default port properties are a line feed ("\n") as termination character and a baudrate of 9600. Drivers can change them via self.port_properties, and users can override the baudrate and parity in the Port Manager (menu "Tools" → "Port Manager"). See Port manager for all properties.

Troubleshooting

See Supported ports#COM.

Linux (pysweepme)

SweepMe! runs on Windows. If you use COM ports with pysweepme on Linux, check first whether the USB-to-serial adapter is found:

lsusb

It may be required to add the user to the dialout group to get access to the port:

sudo usermod -a -G dialout $USER