naneos.ble.partector.readout
The UI curve and the pulse form of a Partector over BLE (firmware 418 or newer).
Both come as a stream of 20 byte packets on the aux characteristic, one packet every 2 s, after "UI?" or "pulse?" (see PartectorBleDiagnosticsPackets). The reader collects them until the last one and assembles the result.
BleDiagnosticsReader
Reads the diagnostics of one device. Must be used on the connection's event loop.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
serial_number
|
int
|
of the device. |
required |
channel
|
BleCommandChannel
|
the commands of the link; a readout holds its lock while it collects. |
required |
firmware_version
|
Callable[[], int | None]
|
the firmware of the device, None while it is not known. |
required |
device_type
|
Callable[[], DeviceType | None]
|
the type of the device, None while it is not known. |
required |
Source code in src/naneos/ble/partector/readout.py
25 26 27 28 29 30 31 32 33 34 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 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 | |
holding_points
property
True while a sweep disturbs the measurement: its data points are not published.
on_packet(data)
A UI curve or pulse form packet on the aux characteristic (event loop thread).
Source code in src/naneos/ble/partector/readout.py
109 110 111 112 113 114 115 116 117 118 119 | |
read_pulse_form(timeout=None)
async
See PartectorDevice.read_pulse_form().
Source code in src/naneos/ble/partector/readout.py
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | |
read_ui_curve(timeout=None)
async
See PartectorDevice.read_ui_curve().
Source code in src/naneos/ble/partector/readout.py
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | |