naneos.partector.scan
Find Partectors on the serial ports of this machine.
ScanPartector
Bases: PartectorBlueprint
Minimal device used to identify what is behind a port. Never streams data.
Source code in src/naneos/partector/scan.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | |
scan_for_serial_partector(serial_number, kind=None)
Port of the device with this serial number, or None if it is not plugged in.
kind restricts the search to one family; it accepts a DeviceType or one of the names "P1", "P2", "P2pro".
Source code in src/naneos/partector/scan.py
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | |
scan_for_serial_partectors(ports_exclude=None)
Found devices grouped by family: {"P1": {sn: port}, "P2": {...}, "P2pro": {...}}.
Source code in src/naneos/partector/scan.py
88 89 90 91 92 93 | |
scan_serial_ports(ports_exclude=None)
Identify the Partector behind every candidate serial port, in parallel.
Source code in src/naneos/partector/scan.py
75 76 77 78 79 80 81 82 83 84 85 | |