quarchpy 2.1.24.dev5__py2.py3-none-any.whl → 2.1.26__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- quarchpy/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/__pycache__/_version.cpython-311.pyc +0 -0
- quarchpy/__pycache__/connection.cpython-311.pyc +0 -0
- quarchpy/__pycache__/run.cpython-311.pyc +0 -0
- quarchpy/_version.py +1 -1
- quarchpy/config_files/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/config_files/__pycache__/quarch_config_parser.cpython-311.pyc +0 -0
- quarchpy/connection_specific/QPS/qis/qis.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/{CInterface-1.7.9.jar → CInterface-1.8.2.jar} +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/{CInterface-1.8.0.jar → CInterface-1.9.jar} +0 -0
- quarchpy/connection_specific/QPS/{qps_lib/QuarchCommon-0.2.12.jar → qis/qis_lib/QuarchCommon-0.2.13.jar} +0 -0
- quarchpy/connection_specific/QPS/qps.jar +0 -0
- quarchpy/connection_specific/QPS/{qis/qis_lib/QuarchCommon-0.2.12.jar → qps_lib/QuarchCommon-0.2.13.jar} +0 -0
- quarchpy/connection_specific/QPS/qps_lib/{qis-1.41.jar → qis-1.43.jar} +0 -0
- quarchpy/connection_specific/QPS/resources/InstallBanner.bmp +0 -0
- quarchpy/connection_specific/QPS/resources/QPS.ico +0 -0
- quarchpy/connection_specific/QPS/resources/QPS.png +0 -0
- quarchpy/connection_specific/QPS/resources/QuarchIcon_128x128.png +0 -0
- quarchpy/connection_specific/QPS/resources/QuarchIcon_16x16.png +0 -0
- quarchpy/connection_specific/QPS/resources/QuarchIcon_256x256.png +0 -0
- quarchpy/connection_specific/QPS/resources/QuarchIcon_32x32.png +0 -0
- quarchpy/connection_specific/QPS/resources/QuarchIcon_64x64.png +0 -0
- quarchpy/connection_specific/QPS/scriptCommands.txt +17 -2
- quarchpy/connection_specific/__pycache__/StreamChannels.cpython-311.pyc +0 -0
- quarchpy/connection_specific/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_QIS.cpython-311.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_QPS.cpython-311.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_ReST.cpython-311.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_Serial.cpython-311.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_TCP.cpython-311.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_USB.cpython-311.pyc +0 -0
- quarchpy/connection_specific/__pycache__/mDNS.cpython-311.pyc +0 -0
- quarchpy/connection_specific/connection_QPS.py +52 -0
- quarchpy/connection_specific/mDNS.py +126 -0
- quarchpy/connection_specific/serial/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/connection_specific/serial/__pycache__/serialutil.cpython-311.pyc +0 -0
- quarchpy/connection_specific/serial/__pycache__/serialwin32.cpython-311.pyc +0 -0
- quarchpy/connection_specific/serial/__pycache__/win32.cpython-311.pyc +0 -0
- quarchpy/connection_specific/serial/tools/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/connection_specific/serial/tools/__pycache__/list_ports.cpython-311.pyc +0 -0
- quarchpy/connection_specific/serial/tools/__pycache__/list_ports_common.cpython-311.pyc +0 -0
- quarchpy/connection_specific/serial/tools/__pycache__/list_ports_windows.cpython-311.pyc +0 -0
- quarchpy/debug/SystemTest.py +2 -6
- quarchpy/debug/SystemTest.py.bak +200 -0
- quarchpy/debug/__pycache__/SystemTest.cpython-311.pyc +0 -0
- quarchpy/debug/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/debug/__pycache__/module_debug.cpython-311.pyc +0 -0
- quarchpy/debug/__pycache__/simple_terminal.cpython-311.pyc +0 -0
- quarchpy/debug/__pycache__/upgrade_quarchpy.cpython-311.pyc +0 -0
- quarchpy/debug/__pycache__/versionCompare.cpython-311.pyc +0 -0
- quarchpy/device/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/device/__pycache__/device.cpython-311.pyc +0 -0
- quarchpy/device/__pycache__/quarchArray.cpython-311.pyc +0 -0
- quarchpy/device/__pycache__/quarchPPM.cpython-311.pyc +0 -0
- quarchpy/device/__pycache__/quarchQPS.cpython-311.pyc +0 -0
- quarchpy/device/__pycache__/scanDevices.cpython-311.pyc +0 -0
- quarchpy/device/device.py +72 -22
- quarchpy/device/scanDevices.py +26 -11
- quarchpy/disk_test/__pycache__/AbsDiskFinder.cpython-311.pyc +0 -0
- quarchpy/disk_test/__pycache__/DiskTargetSelection.cpython-311.pyc +0 -0
- quarchpy/disk_test/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/disk_test/__pycache__/iometerDiskFinder.cpython-311.pyc +0 -0
- quarchpy/docs/CHANGES.rst +13 -0
- quarchpy/docs/_build/doctrees/CHANGES.doctree +0 -0
- quarchpy/docs/_build/doctrees/environment.pickle +0 -0
- quarchpy/docs/_build/doctrees/source/changelog.doctree +0 -0
- quarchpy/docs/_build/doctrees/source/quarchpy.connection_specific.doctree +0 -0
- quarchpy/docs/_build/doctrees/source/quarchpy.device.doctree +0 -0
- quarchpy/docs/_build/doctrees/source/quarchpy.qps.doctree +0 -0
- quarchpy/docs/_build/html/CHANGES.html +138 -119
- quarchpy/docs/_build/html/_sources/CHANGES.rst.txt +13 -0
- quarchpy/docs/_build/html/genindex.html +4 -0
- quarchpy/docs/_build/html/index.html +63 -60
- quarchpy/docs/_build/html/objects.inv +0 -0
- quarchpy/docs/_build/html/readme.html +6 -7
- quarchpy/docs/_build/html/searchindex.js +1 -1
- quarchpy/docs/_build/html/source/changelog.html +201 -179
- quarchpy/docs/_build/html/source/licenses.html +6 -7
- quarchpy/docs/_build/html/source/quarchpy.connection_specific.html +10 -0
- quarchpy/docs/_build/html/source/quarchpy.device.html +1 -1
- quarchpy/docs/_build/html/source/quarchpy.html +2 -0
- quarchpy/docs/_build/html/source/quarchpy.iometer.html +6 -7
- quarchpy/docs/_build/html/source/quarchpy.qps.html +2 -2
- quarchpy/docs/_build/html/source/quarchpy.utilities.html +6 -7
- quarchpy/docs/_build/html/source/readme.html +6 -7
- quarchpy/fio/__pycache__/FIO_interface.cpython-311.pyc +0 -0
- quarchpy/fio/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/iometer/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/iometer/__pycache__/gen_iometer_template.cpython-311.pyc +0 -0
- quarchpy/iometer/__pycache__/iometerFuncs.cpython-311.pyc +0 -0
- quarchpy/qis/__pycache__/StreamHeaderInfo.cpython-311.pyc +0 -0
- quarchpy/qis/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/qis/__pycache__/qisFuncs.cpython-311.pyc +0 -0
- quarchpy/qps/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/qps/__pycache__/qpsFuncs.cpython-311.pyc +0 -0
- quarchpy/qps/qpsFuncs.py +20 -10
- quarchpy/qps/qpsFuncs.py.bak +281 -0
- quarchpy/user_interface/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/user_interface/__pycache__/user_interface.cpython-311.pyc +0 -0
- quarchpy/user_interface/user_interface.py +3 -1
- quarchpy/utilities/__pycache__/TestCenter.cpython-311.pyc +0 -0
- quarchpy/utilities/__pycache__/TimeValue.cpython-311.pyc +0 -0
- quarchpy/utilities/__pycache__/Version.cpython-311.pyc +0 -0
- quarchpy/utilities/__pycache__/__init__.cpython-311.pyc +0 -0
- {quarchpy-2.1.24.dev5.dist-info → quarchpy-2.1.26.dist-info}/METADATA +15 -2
- {quarchpy-2.1.24.dev5.dist-info → quarchpy-2.1.26.dist-info}/RECORD +108 -58
- {quarchpy-2.1.24.dev5.dist-info → quarchpy-2.1.26.dist-info}/WHEEL +1 -1
- quarchpy/connection_specific/QPS/qis/qis_lib/CInterface-1.7.04.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/CInterface-1.7.8.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/CInterface-1.8.1.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/QuarchCommon-0.2.6.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/QuarchCommon-0.2.9.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/commons-csv-1.8.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/commons-lang3-3.2.1.jar +0 -0
- quarchpy/connection_specific/QPS/qis/resources/filters/filters.csv +0 -1004
- quarchpy/connection_specific/QPS/qps_lib/QuarchCommon-0.2.6.jar +0 -0
- quarchpy/connection_specific/QPS/qps_lib/QuarchCommon-0.2.9.jar +0 -0
- quarchpy/connection_specific/QPS/qps_lib/commons-lang3-3.12.0.jar +0 -0
- quarchpy/connection_specific/QPS/qps_lib/jfxtras-labs-8.0-r6.jar +0 -0
- quarchpy/connection_specific/QPS/qps_lib/opencsv-5.9.jar +0 -0
- quarchpy/connection_specific/QPS/qps_lib/qis-1.39.jar +0 -0
- quarchpy/connection_specific/QPS/qps_lib/qis-1.40.jar +0 -0
- quarchpy/connection_specific/connection_mDNS.py +0 -40
- {quarchpy-2.1.24.dev5.dist-info → quarchpy-2.1.26.dist-info}/top_level.txt +0 -0
quarchpy/device/device.py
CHANGED
@@ -110,21 +110,16 @@ class quarchDevice:
|
|
110
110
|
## QIS
|
111
111
|
# ConType may be QIS only or QIS:ip:port [:3] checks if the first 3 letters are QIS.
|
112
112
|
elif self.ConType[:3].upper() == "QIS":
|
113
|
-
# If host and port are specified.
|
114
|
-
|
115
|
-
#
|
116
|
-
|
117
|
-
# QIS port should be an int.
|
118
|
-
port = int(port)
|
119
|
-
# If host and port are not specified.
|
120
|
-
except:
|
113
|
+
try: # If host and port are specified.
|
114
|
+
QIS, host, port = self.ConType.split(':') # Extract QIS, host and port.
|
115
|
+
port = int(port) # QIS port should be an int.
|
116
|
+
except: # If host and port are not specified.
|
121
117
|
host = '127.0.0.1'
|
122
118
|
port = 9722
|
123
119
|
|
124
120
|
numb_colons = self.ConString.count(":")
|
125
121
|
if numb_colons == 1:
|
126
122
|
self.ConString = self.ConString.replace(':', '::')
|
127
|
-
|
128
123
|
# Creates the connection object.
|
129
124
|
self.connectionObj = QISConnection(self.ConString, host, port)
|
130
125
|
|
@@ -132,9 +127,8 @@ class quarchDevice:
|
|
132
127
|
list_str = "".join(list).lower()
|
133
128
|
|
134
129
|
timeout = time.time() + int(timeout) # now + n seconds
|
135
|
-
|
136
130
|
# check for device in list, has a timeout
|
137
|
-
while time.time() < timeout:
|
131
|
+
while time.time() < timeout: # look for the connection string in qis $list details
|
138
132
|
|
139
133
|
# Check if it's a module's QTL number
|
140
134
|
if "qtl" not in self.ConString.lower():
|
@@ -143,7 +137,6 @@ class quarchDevice:
|
|
143
137
|
ip_address = re.search(r"[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}", self.ConString)
|
144
138
|
if not ip_address:
|
145
139
|
raise ValueError("ConString " + self.ConString + " does not contain a valid QTL number or IP address")
|
146
|
-
|
147
140
|
# Attempt to get QTL number from qis "$list details"
|
148
141
|
temp_str = _check_ip_in_qis_list(ip_address.group(), self.connectionObj.qis.get_list_details())
|
149
142
|
if temp_str:
|
@@ -159,9 +152,8 @@ class quarchDevice:
|
|
159
152
|
if "located" in str(self.connectionObj.qis.scanIP(self.ConString)).lower():
|
160
153
|
# Note - Qis takes a moment or 2 to add this newly located device to the $list 21/03/23
|
161
154
|
timeout += 20 # Extend the timeout as the drive was located
|
162
|
-
|
163
155
|
while time.time() < timeout:
|
164
|
-
# try find the
|
156
|
+
# try find the QTL from ipaddress
|
165
157
|
temp_str = _check_ip_in_qis_list(ip_address.group(), self.connectionObj.qis.get_list_details())
|
166
158
|
if temp_str:
|
167
159
|
# If the item is found, break out of this loop
|
@@ -181,8 +173,7 @@ class quarchDevice:
|
|
181
173
|
time.sleep(1)
|
182
174
|
list = self.connectionObj.qis.getDeviceList()
|
183
175
|
list_str = "".join(list).lower()
|
184
|
-
else:
|
185
|
-
# If we didn't hit a 'break' condition in the above loop, then it timed out
|
176
|
+
else: # If we didn't hit a 'break' condition in the above loop, then it timed out
|
186
177
|
raise timeout_exception("Could not find module " + self.ConString + " from Qis within specified time")
|
187
178
|
|
188
179
|
self.connectionObj.qis.sendAndReceiveCmd(cmd="$default " + self.ConString)
|
@@ -190,9 +181,9 @@ class quarchDevice:
|
|
190
181
|
## QPS
|
191
182
|
elif self.ConType[:3].upper() == "QPS":
|
192
183
|
try:
|
193
|
-
# Extract
|
194
|
-
|
195
|
-
#
|
184
|
+
# Extract QPS, host and port.
|
185
|
+
QPS, host, port = self.ConType.split(':')
|
186
|
+
# QPS port should be an int.
|
196
187
|
port = int(port)
|
197
188
|
# If host and port are not specified.
|
198
189
|
except:
|
@@ -204,6 +195,65 @@ class quarchDevice:
|
|
204
195
|
self.ConString = self.ConString.replace(':', '::')
|
205
196
|
|
206
197
|
self.connectionObj = QPSConnection(host, port)
|
198
|
+
list = self.connectionObj.qps.sendCmdVerbose("$module list details").replace("\r\n","\n").split("\n")
|
199
|
+
list_str = "".join(list).lower()
|
200
|
+
|
201
|
+
timeout = time.time() + int(timeout) # now + n seconds
|
202
|
+
# check for device in list, has a timeout
|
203
|
+
while time.time() < timeout: # look for the connection string in QPS $list details
|
204
|
+
|
205
|
+
# Check if it's a module's QTL number
|
206
|
+
if "qtl" not in self.ConString.lower():
|
207
|
+
|
208
|
+
# If not, check if it contains a valid IP address format
|
209
|
+
ip_address = re.search(r"[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}", self.ConString)
|
210
|
+
if not ip_address:
|
211
|
+
raise ValueError("ConString " + self.ConString + " does not contain a valid QTL number or IP address")
|
212
|
+
|
213
|
+
# Attempt to get QTL number from QPS "$list details"
|
214
|
+
temp_str = _check_ip_in_qis_list(ip_address.group(), list)
|
215
|
+
if temp_str:
|
216
|
+
# If found
|
217
|
+
self.ConString = temp_str
|
218
|
+
break
|
219
|
+
|
220
|
+
logging.debug("Did not find ip address in list details, attempt targetted QPS scan")
|
221
|
+
|
222
|
+
# If it's not present in the list already, then try scanning for it via QPS
|
223
|
+
# Scan is purposefully after initial check! 09/03/2023
|
224
|
+
# Valid response example "Located device: 192.168.1.3"
|
225
|
+
|
226
|
+
if "located" in str(self.connectionObj.qps.scanIP(self.ConString)).lower():
|
227
|
+
# Note - QPS takes a moment or 2 to add this newly located device to the $list 21/03/23
|
228
|
+
timeout += 20 # Extend the timeout as the drive was located
|
229
|
+
while time.time() < timeout:
|
230
|
+
# try find the QTL from ipaddress
|
231
|
+
temp_str = _check_ip_in_qis_list(ip_address.group(), self.connectionObj.qps.get_list_details())
|
232
|
+
if temp_str:
|
233
|
+
# If the item is found, break out of this loop
|
234
|
+
self.ConString = temp_str
|
235
|
+
break
|
236
|
+
time.sleep(1) # Slow down the poll
|
237
|
+
else:
|
238
|
+
# if it's not found, continue and allow program to timeout
|
239
|
+
continue
|
240
|
+
# Break out of both loops
|
241
|
+
break
|
242
|
+
|
243
|
+
elif str(self.ConString).lower() in str(list_str).lower():
|
244
|
+
# If we have QTL device, and it's in list, nothing more needs done.
|
245
|
+
break
|
246
|
+
else:
|
247
|
+
time.sleep(1)
|
248
|
+
list = self.connectionObj.qps.getDeviceList()
|
249
|
+
list_str = "".join(list).lower()
|
250
|
+
else: # If we didn't hit a 'break' condition in the above loop, then it timed out
|
251
|
+
raise timeout_exception("Could not find module " + self.ConString + " from QPS within specified time")
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
|
207
257
|
|
208
258
|
## Neither PY or QIS, connection cannot be created.
|
209
259
|
else:
|
@@ -238,7 +288,7 @@ class quarchDevice:
|
|
238
288
|
# send command to log
|
239
289
|
logging.debug(os.path.basename(__file__) + ": "+self.ConType[:3]+" sending command: " + CommandString)
|
240
290
|
|
241
|
-
if self.ConType[:3] == "QIS":
|
291
|
+
if self.ConType[:3].upper() == "QIS":
|
242
292
|
|
243
293
|
numb_colons = self.ConString.count(":")
|
244
294
|
if numb_colons == 1:
|
@@ -249,13 +299,13 @@ class quarchDevice:
|
|
249
299
|
logging.debug(os.path.basename(__file__) + ": "+self.ConType[:3]+" received: " + response)
|
250
300
|
return response
|
251
301
|
|
252
|
-
elif self.ConType == "PY":
|
302
|
+
elif self.ConType.upper() == "PY":
|
253
303
|
response = self.connectionObj.connection.sendCommand(CommandString, expectedResponse=expectedResponse)
|
254
304
|
# send response to log
|
255
305
|
logging.debug(os.path.basename(__file__) + ": "+self.ConType[:3]+" received: " + response)
|
256
306
|
return response
|
257
307
|
|
258
|
-
elif self.ConType[:3] == "QPS":
|
308
|
+
elif self.ConType[:3].upper() == "QPS":
|
259
309
|
# If "$" CMD is for QPS, else its for the specific module. Since QPS can talk to many modules we must added the conString.
|
260
310
|
if CommandString[0] != '$':
|
261
311
|
CommandString = self.ConString + " " + CommandString
|
quarchpy/device/scanDevices.py
CHANGED
@@ -20,8 +20,7 @@ from quarchpy.connection_specific.connection_Serial import serialList, serial
|
|
20
20
|
from quarchpy.device.quarchArray import isThisAnArrayController
|
21
21
|
from quarchpy.connection_specific.connection_USB import TQuarchUSB_IF
|
22
22
|
from quarchpy.connection_specific import connection_ReST, connection_TCP
|
23
|
-
from quarchpy.connection_specific.
|
24
|
-
from quarchpy.utilities import TestCenter
|
23
|
+
from quarchpy.connection_specific.mDNS import MyListener
|
25
24
|
|
26
25
|
|
27
26
|
'''
|
@@ -475,11 +474,14 @@ def filter_module_type(module_type_filter, found_devices):
|
|
475
474
|
filtered_devices.update({key: value})
|
476
475
|
return filtered_devices
|
477
476
|
|
478
|
-
def scan_mDNS(mdnsListener):
|
477
|
+
def scan_mDNS(mdnsListener, zeroconf=None):
|
479
478
|
from zeroconf import ServiceBrowser, Zeroconf
|
480
|
-
zeroconf
|
479
|
+
if zeroconf is None:
|
480
|
+
zeroconf = Zeroconf()
|
481
481
|
listener = mdnsListener
|
482
482
|
browser = ServiceBrowser(zeroconf, "_http._tcp.local.", listener)
|
483
|
+
return browser
|
484
|
+
|
483
485
|
|
484
486
|
|
485
487
|
'''
|
@@ -487,10 +489,23 @@ Scans for Quarch modules across the given interface(s). Returns a dictionary of
|
|
487
489
|
'''
|
488
490
|
def scanDevices(target_conn="all", lanTimeout=1, scanInArray=True, favouriteOnly=True,filterStr=None,
|
489
491
|
module_type_filter=None, ipAddressLookup=None):
|
492
|
+
|
490
493
|
foundDevices = dict()
|
491
494
|
scannedArrays = list()
|
492
|
-
|
493
|
-
|
495
|
+
|
496
|
+
# Setup mdns with zeroconf
|
497
|
+
# Ensure listener/zeroconf instance stay persistent (ensures only one thread is used for each scan cycle)
|
498
|
+
mdns_listener = MyListener().get_instance()
|
499
|
+
zeroconf = mdns_listener.get_zeroconf()
|
500
|
+
# Setup new mdns discovery service for every scan cycle
|
501
|
+
browser = scan_mDNS(mdns_listener, zeroconf)
|
502
|
+
# Set target_conn
|
503
|
+
mdns_listener.target_conn = target_conn.lower()
|
504
|
+
# Setup mdns discovery that stays persistent in the background - (could be removed)
|
505
|
+
# if not mdns_listener.mdns_service_running:
|
506
|
+
# from zeroconf import ServiceBrowser, Zeroconf
|
507
|
+
# scan_mDNS(mdns_listener, None)
|
508
|
+
# mdns_listener.mdns_service_running = True
|
494
509
|
|
495
510
|
if target_conn.lower() == "all":
|
496
511
|
foundDevices = list_USB()
|
@@ -498,10 +513,7 @@ def scanDevices(target_conn="all", lanTimeout=1, scanInArray=True, favouriteOnly
|
|
498
513
|
try:
|
499
514
|
#This will fail if the test machine is not connected to a network
|
500
515
|
foundDevices = mergeDict(foundDevices, list_network("all", ipAddressLookup=ipAddressLookup, lanTimeout=lanTimeout))
|
501
|
-
|
502
|
-
foundDevices = mergeDict(foundDevices, mdnsListener.found_devices)
|
503
|
-
except Exception as mdnsExcept:
|
504
|
-
logging.debug("An error occurred while trying to use the mdns listner to scan\n" +str(mdnsExcept))
|
516
|
+
foundDevices = mergeDict(foundDevices, mdns_listener.get_found_devices())
|
505
517
|
except Exception as e:
|
506
518
|
logging.error(e)
|
507
519
|
logging.warning("Network scan failed, check network connection")
|
@@ -514,6 +526,8 @@ def scanDevices(target_conn="all", lanTimeout=1, scanInArray=True, favouriteOnly
|
|
514
526
|
|
515
527
|
if target_conn.lower() == "tcp" or target_conn.lower() == "rest" or target_conn.lower() == "telnet":
|
516
528
|
foundDevices = list_network(target_conn, ipAddressLookup=ipAddressLookup, lanTimeout=lanTimeout)
|
529
|
+
foundDevices = mergeDict(foundDevices, mdns_listener.get_found_devices())
|
530
|
+
|
517
531
|
|
518
532
|
if (scanInArray):
|
519
533
|
for k, v in foundDevices.items(): # k=Connection target, v=serial number
|
@@ -567,7 +581,8 @@ def scanDevices(target_conn="all", lanTimeout=1, scanInArray=True, favouriteOnly
|
|
567
581
|
# used to filter module via type ( Power / Drive / ...)
|
568
582
|
if module_type_filter:
|
569
583
|
foundDevices = filter_module_type(module_type_filter, foundDevices)
|
570
|
-
|
584
|
+
# Cancels the mdns discovery service (required to close active thread)
|
585
|
+
browser.cancel()
|
571
586
|
return foundDevices
|
572
587
|
|
573
588
|
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
quarchpy/docs/CHANGES.rst
CHANGED
@@ -13,6 +13,19 @@ Quarchpy
|
|
13
13
|
Change Log
|
14
14
|
----------
|
15
15
|
|
16
|
+
2.1.26
|
17
|
+
------
|
18
|
+
- minor bugfix
|
19
|
+
|
20
|
+
2.1.25
|
21
|
+
------
|
22
|
+
- New QPS 1.40 and Qis 1.43
|
23
|
+
- mdns scanning added to quarchpy
|
24
|
+
|
25
|
+
2.1.24
|
26
|
+
------
|
27
|
+
- Yanked
|
28
|
+
|
16
29
|
2.1.23
|
17
30
|
------
|
18
31
|
- QIS and QPS devices and interfaces can use sendCommand to send comannds to the modules and to the applications uniformly
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|