quarchpy 2.2.14__py2.py3-none-any.whl → 2.2.15__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-310.pyc +0 -0
- quarchpy/__pycache__/_version.cpython-310.pyc +0 -0
- quarchpy/__pycache__/connection.cpython-310.pyc +0 -0
- quarchpy/__pycache__/install_qps.cpython-310.pyc +0 -0
- quarchpy/_version.py +1 -1
- quarchpy/config_files/__pycache__/__init__.cpython-310.pyc +0 -0
- quarchpy/config_files/__pycache__/quarch_config_parser.cpython-310.pyc +0 -0
- quarchpy/connection_specific/__pycache__/StreamChannels.cpython-310.pyc +0 -0
- quarchpy/connection_specific/__pycache__/__init__.cpython-310.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_QIS.cpython-310.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_QPS.cpython-310.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_ReST.cpython-310.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_Serial.cpython-310.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_TCP.cpython-310.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_USB.cpython-310.pyc +0 -0
- quarchpy/connection_specific/__pycache__/mDNS.cpython-310.pyc +0 -0
- quarchpy/connection_specific/connection_QIS.py +5 -2
- quarchpy/connection_specific/connection_Telnet.py +8 -2
- quarchpy/connection_specific/jdk_jres/__pycache__/__init__.cpython-310.pyc +0 -0
- quarchpy/connection_specific/jdk_jres/__pycache__/fix_permissions.cpython-310.pyc +0 -0
- quarchpy/connection_specific/serial/__pycache__/__init__.cpython-310.pyc +0 -0
- quarchpy/connection_specific/serial/__pycache__/serialposix.cpython-310.pyc +0 -0
- quarchpy/connection_specific/serial/__pycache__/serialutil.cpython-310.pyc +0 -0
- quarchpy/connection_specific/serial/tools/__pycache__/__init__.cpython-310.pyc +0 -0
- quarchpy/connection_specific/serial/tools/__pycache__/list_ports.cpython-310.pyc +0 -0
- quarchpy/connection_specific/serial/tools/__pycache__/list_ports_common.cpython-310.pyc +0 -0
- quarchpy/connection_specific/serial/tools/__pycache__/list_ports_linux.cpython-310.pyc +0 -0
- quarchpy/connection_specific/serial/tools/__pycache__/list_ports_posix.cpython-310.pyc +0 -0
- quarchpy/debug/__pycache__/SystemTest.cpython-310.pyc +0 -0
- quarchpy/debug/__pycache__/__init__.cpython-310.pyc +0 -0
- quarchpy/debug/__pycache__/versionCompare.cpython-310.pyc +0 -0
- quarchpy/device/__pycache__/__init__.cpython-310.pyc +0 -0
- quarchpy/device/__pycache__/device.cpython-310.pyc +0 -0
- quarchpy/device/__pycache__/device_fixture_idn_info.cpython-310.pyc +0 -0
- quarchpy/device/__pycache__/device_idn_info.cpython-310.pyc +0 -0
- quarchpy/device/__pycache__/device_network_info.cpython-310.pyc +0 -0
- quarchpy/device/__pycache__/discovered_device.cpython-310.pyc +0 -0
- quarchpy/device/__pycache__/packet_processing.cpython-310.pyc +0 -0
- quarchpy/device/__pycache__/quarchArray.cpython-310.pyc +0 -0
- quarchpy/device/__pycache__/quarchPPM.cpython-310.pyc +0 -0
- quarchpy/device/__pycache__/quarchQPS.cpython-310.pyc +0 -0
- quarchpy/device/__pycache__/scanDevices.cpython-310.pyc +0 -0
- quarchpy/device/quarchArray.py +9 -5
- quarchpy/disk_test/__pycache__/AbsDiskFinder.cpython-310.pyc +0 -0
- quarchpy/disk_test/__pycache__/DiskTargetSelection.cpython-310.pyc +0 -0
- quarchpy/disk_test/__pycache__/__init__.cpython-310.pyc +0 -0
- quarchpy/disk_test/__pycache__/iometerDiskFinder.cpython-310.pyc +0 -0
- quarchpy/docs/CHANGES.rst +4 -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.device.doctree +0 -0
- quarchpy/docs/_build/html/CHANGES.html +162 -154
- quarchpy/docs/_build/html/_sources/CHANGES.rst.txt +7 -1
- quarchpy/docs/_build/html/genindex.html +14 -6
- quarchpy/docs/_build/html/index.html +79 -78
- quarchpy/docs/_build/html/objects.inv +0 -0
- quarchpy/docs/_build/html/searchindex.js +1 -1
- quarchpy/docs/_build/html/source/changelog.html +241 -232
- quarchpy/docs/_build/html/source/quarchpy.device.html +74 -12
- quarchpy/docs/_build/html/source/quarchpy.html +6 -2
- quarchpy/fio/__pycache__/FIO_interface.cpython-310.pyc +0 -0
- quarchpy/fio/__pycache__/__init__.cpython-310.pyc +0 -0
- quarchpy/iometer/__pycache__/__init__.cpython-310.pyc +0 -0
- quarchpy/iometer/__pycache__/gen_iometer_template.cpython-310.pyc +0 -0
- quarchpy/iometer/__pycache__/iometerFuncs.cpython-310.pyc +0 -0
- quarchpy/qis/__pycache__/StreamHeaderInfo.cpython-310.pyc +0 -0
- quarchpy/qis/__pycache__/__init__.cpython-310.pyc +0 -0
- quarchpy/qis/__pycache__/qisFuncs.cpython-310.pyc +0 -0
- quarchpy/qps/__pycache__/__init__.cpython-310.pyc +0 -0
- quarchpy/qps/__pycache__/qpsFuncs.cpython-310.pyc +0 -0
- quarchpy/user_interface/__pycache__/__init__.cpython-310.pyc +0 -0
- quarchpy/user_interface/__pycache__/user_interface.cpython-310.pyc +0 -0
- quarchpy/utilities/__pycache__/TestCenter.cpython-310.pyc +0 -0
- quarchpy/utilities/__pycache__/TimeValue.cpython-310.pyc +0 -0
- quarchpy/utilities/__pycache__/__init__.cpython-310.pyc +0 -0
- {quarchpy-2.2.14.dist-info → quarchpy-2.2.15.dist-info}/METADATA +5 -1
- {quarchpy-2.2.14.dist-info → quarchpy-2.2.15.dist-info}/RECORD +80 -80
- {quarchpy-2.2.14.dist-info → quarchpy-2.2.15.dist-info}/WHEEL +0 -0
- {quarchpy-2.2.14.dist-info → quarchpy-2.2.15.dist-info}/top_level.txt +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
quarchpy/_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "2.2.
|
|
1
|
+
__version__ = "2.2.15"
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -965,6 +965,8 @@ class QisInterface:
|
|
|
965
965
|
if stripes.endswith("eof\r\n>"):
|
|
966
966
|
is_end_of_block = True
|
|
967
967
|
stripes = stripes.rstrip("eof\r\n>")
|
|
968
|
+
if stripes.endswith("\r\n>"):
|
|
969
|
+
stripes= stripes[:-1] # remove the trailing ">"
|
|
968
970
|
# The current reader seems to lose the final line feeds, so check for this
|
|
969
971
|
if len(stripes) > 0:
|
|
970
972
|
if not stripes.endswith("\r\n"):
|
|
@@ -1125,12 +1127,13 @@ class QisInterface:
|
|
|
1125
1127
|
Returns:
|
|
1126
1128
|
Command response string or None if no response expected
|
|
1127
1129
|
"""
|
|
1130
|
+
if qis_socket is None:
|
|
1131
|
+
qis_socket = self.sock
|
|
1132
|
+
|
|
1128
1133
|
if no_response_expected:
|
|
1129
1134
|
self.send_text(qis_socket, command, device)
|
|
1130
1135
|
return ""
|
|
1131
1136
|
else:
|
|
1132
|
-
if qis_socket is None:
|
|
1133
|
-
qis_socket = self.sock
|
|
1134
1137
|
if not (device == ''):
|
|
1135
1138
|
self.device_dict_setup(device)
|
|
1136
1139
|
res = self.send_and_receive_text(qis_socket, command, device, not no_cursor_expected)
|
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
import
|
|
1
|
+
from telnetlib import Telnet
|
|
2
2
|
import time
|
|
3
|
+
#from telnetlib3 import Telnet
|
|
4
|
+
|
|
3
5
|
|
|
4
6
|
class TelnetConn:
|
|
5
7
|
def __init__(self, ConnTarget):
|
|
6
8
|
self.ConnTarget = ConnTarget
|
|
7
|
-
self.Connection =
|
|
9
|
+
self.Connection = Telnet(self.ConnTarget)
|
|
8
10
|
time.sleep(1)
|
|
9
11
|
self.Connection.read_very_eager()
|
|
10
12
|
|
|
11
13
|
def close(self):
|
|
12
14
|
self.Connection.close()
|
|
15
|
+
# The closed device reports as in use if a connection is opened to it within 0.05s.
|
|
16
|
+
# This happens during scanning as rest detects the device and shows it as "in use" Putting a sleep here
|
|
17
|
+
# allows time for the connection to be close,
|
|
18
|
+
time.sleep(0.15)
|
|
13
19
|
return True
|
|
14
20
|
|
|
15
21
|
def sendCommand(self, Command, expectedResponse = True):
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
quarchpy/device/quarchArray.py
CHANGED
|
@@ -14,6 +14,7 @@ class quarchArray(quarchDevice):
|
|
|
14
14
|
|
|
15
15
|
self.ConType=baseDevice.ConType
|
|
16
16
|
self.connectionObj=baseDevice.connectionObj
|
|
17
|
+
self.baseDevice = baseDevice
|
|
17
18
|
pass
|
|
18
19
|
|
|
19
20
|
def getSubDevice(self, port):
|
|
@@ -51,23 +52,23 @@ class quarchArray(quarchDevice):
|
|
|
51
52
|
|
|
52
53
|
return moduleList
|
|
53
54
|
|
|
54
|
-
|
|
55
|
+
def close_connection(self) -> str:
|
|
56
|
+
self.baseDevice.close_connection()
|
|
55
57
|
|
|
56
58
|
|
|
57
59
|
class subDevice(quarchDevice):
|
|
58
60
|
|
|
59
61
|
def __init__(self, baseDevice, port):
|
|
60
|
-
self.port = port
|
|
62
|
+
self.port = str(port)
|
|
61
63
|
self.connectionObj = baseDevice.connectionObj
|
|
62
64
|
self.ConType = baseDevice.ConType
|
|
63
65
|
self.baseDevice = baseDevice
|
|
64
66
|
|
|
65
|
-
def
|
|
66
|
-
portNumb = str(self.port)
|
|
67
|
+
def send_command(self, CommandString, expectedResponse = True):
|
|
67
68
|
returnStr = ''
|
|
68
69
|
|
|
69
70
|
# Run the base device command
|
|
70
|
-
respStr = quarchDevice.send_command(self, CommandString + " <" +
|
|
71
|
+
respStr = quarchDevice.send_command(self, CommandString + " <" + str(self.port) + ">")
|
|
71
72
|
# Split into lines, remove the line number sections then reform the string (removing the wanted 'x.y:' section at the start of each line
|
|
72
73
|
respLines = respStr.split('\n')
|
|
73
74
|
for x in respLines:
|
|
@@ -77,3 +78,6 @@ class subDevice(quarchDevice):
|
|
|
77
78
|
returnStr = returnStr.strip()
|
|
78
79
|
return returnStr
|
|
79
80
|
|
|
81
|
+
def close_connection(self) -> str:
|
|
82
|
+
self.baseDevice.close_connection()
|
|
83
|
+
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
quarchpy/docs/CHANGES.rst
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|