Hello Mike,
Many thanks for this. I need some time to digest the info and probably for Jim to do stuff too. For your information and for the group too, here is a small Python3 script that I use to test the spot button in my Quisk Ctl-Head.
import sys
import telnetlib
import time
HOST = "localhost"
PORT = 4532
tn = telnetlib.Telnet(HOST,PORT)
tn.set_debuglevel(1)
time.sleep(1)
msg = "U TUNER 1\n".encode()
tn.write(msg)
print(tn.read_until('\n'.encode(), 1))
time.sleep(10)
msg = "U TUNER 0\n".encode()
tn.write(msg)
print(tn.read_until('\n'.encode(), 1))
tn.close()
and this is the output ...
gvj@DLap:~/PythonProjects/Remote_Hamlib$ python3 spotTest.py
Telnet(localhost,4532): send b'U TUNER 1\n'
Telnet(localhost,4532): recv b'RPRT 0\n'
b'RPRT 0\n'
Telnet(localhost,4532): send b'U TUNER 0\n'
Telnet(localhost,4532): recv b'RPRT 0\n'
b'RPRT 0\n'
73, Graeme ZL2APV or ZL2TE on CW