forked from M-Labs/kirdy
Change default tcp port 1337 -> 1550
This commit is contained in:
parent
5b00bd60c7
commit
85f81ee8e4
@ -32,7 +32,7 @@ async def device_cfg(kirdy: Kirdy):
|
|||||||
# Network Settings will be updated on next reboot.
|
# Network Settings will be updated on next reboot.
|
||||||
await kirdy.device.set_ip_settings(
|
await kirdy.device.set_ip_settings(
|
||||||
addr="192.168.1.128",
|
addr="192.168.1.128",
|
||||||
port=1337,
|
port=1550,
|
||||||
prefix_len=24,
|
prefix_len=24,
|
||||||
gateway="192.168.1.1"
|
gateway="192.168.1.1"
|
||||||
)
|
)
|
||||||
|
@ -181,7 +181,7 @@ class Device:
|
|||||||
self._send_cmd = send_cmd_handler
|
self._send_cmd = send_cmd_handler
|
||||||
self._send_raw_cmd = send_raw_cmd_handler
|
self._send_raw_cmd = send_raw_cmd_handler
|
||||||
|
|
||||||
async def set_ip_settings(self, addr="192.168.1.128", port=1337, prefix_len=24, gateway="192.168.1.1"):
|
async def set_ip_settings(self, addr="192.168.1.128", port=1550, prefix_len=24, gateway="192.168.1.1"):
|
||||||
"""
|
"""
|
||||||
Upon command execution, the ip settings are saved into flash and are effective upon next reboot.
|
Upon command execution, the ip settings are saved into flash and are effective upon next reboot.
|
||||||
"""
|
"""
|
||||||
@ -693,7 +693,7 @@ class Kirdy:
|
|||||||
"""
|
"""
|
||||||
self._err_msg_sig = sig
|
self._err_msg_sig = sig
|
||||||
|
|
||||||
def start_session(self, host='192.168.1.128', port=1337):
|
def start_session(self, host='192.168.1.128', port=1550):
|
||||||
"""
|
"""
|
||||||
Start Kirdy Connection Session.
|
Start Kirdy Connection Session.
|
||||||
In case of disconnection, all the queued tasks are cleared and the handler task retries TCP connection indefinitely.
|
In case of disconnection, all the queued tasks are cleared and the handler task retries TCP connection indefinitely.
|
||||||
|
@ -400,7 +400,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||||||
"""The maximum number of sample points to store."""
|
"""The maximum number of sample points to store."""
|
||||||
DEFAULT_MAX_SAMPLES = 1000
|
DEFAULT_MAX_SAMPLES = 1000
|
||||||
DEFAULT_IP_ADDR = '192.168.1.128'
|
DEFAULT_IP_ADDR = '192.168.1.128'
|
||||||
DEFAULT_PORT = 1337
|
DEFAULT_PORT = 1550
|
||||||
|
|
||||||
LASER_DIODE_PARAMETERS = [
|
LASER_DIODE_PARAMETERS = [
|
||||||
{'name': 'Readings', 'expanded': True, 'type': 'group', 'children': [
|
{'name': 'Readings', 'expanded': True, 'type': 'group', 'children': [
|
||||||
|
@ -258,7 +258,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>1337</string>
|
<string>1550</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="maxLength">
|
<property name="maxLength">
|
||||||
<number>5</number>
|
<number>5</number>
|
||||||
|
@ -156,6 +156,6 @@ class Ui_Conn_Settings_Form(object):
|
|||||||
self.dot_2_label.setText(_translate("Conn_Settings_Form", "."))
|
self.dot_2_label.setText(_translate("Conn_Settings_Form", "."))
|
||||||
self.addr_in_3.setText(_translate("Conn_Settings_Form", "128"))
|
self.addr_in_3.setText(_translate("Conn_Settings_Form", "128"))
|
||||||
self.port_no_label.setText(_translate("Conn_Settings_Form", "Port:"))
|
self.port_no_label.setText(_translate("Conn_Settings_Form", "Port:"))
|
||||||
self.port_in.setText(_translate("Conn_Settings_Form", "1337"))
|
self.port_in.setText(_translate("Conn_Settings_Form", "1550"))
|
||||||
self.connect_btn.setText(_translate("Conn_Settings_Form", "Connect"))
|
self.connect_btn.setText(_translate("Conn_Settings_Form", "Connect"))
|
||||||
self.cancel_btn.setText(_translate("Conn_Settings_Form", "Cancel"))
|
self.cancel_btn.setText(_translate("Conn_Settings_Form", "Cancel"))
|
||||||
|
@ -253,7 +253,7 @@ class Ui_Update_Network_Settings_Form(object):
|
|||||||
self.prefix_len_lbl.setText(_translate("Update_Network_Settings_Form", "Prefix Length:"))
|
self.prefix_len_lbl.setText(_translate("Update_Network_Settings_Form", "Prefix Length:"))
|
||||||
self.prefix_len_in.setText(_translate("Update_Network_Settings_Form", "24"))
|
self.prefix_len_in.setText(_translate("Update_Network_Settings_Form", "24"))
|
||||||
self.port_no_lbl.setText(_translate("Update_Network_Settings_Form", "Port:"))
|
self.port_no_lbl.setText(_translate("Update_Network_Settings_Form", "Port:"))
|
||||||
self.port_in.setText(_translate("Update_Network_Settings_Form", "1337"))
|
self.port_in.setText(_translate("Update_Network_Settings_Form", "1550"))
|
||||||
self.gateway_lbl.setText(_translate("Update_Network_Settings_Form", "Gateway:"))
|
self.gateway_lbl.setText(_translate("Update_Network_Settings_Form", "Gateway:"))
|
||||||
self.gateway_in_0.setText(_translate("Update_Network_Settings_Form", "192"))
|
self.gateway_in_0.setText(_translate("Update_Network_Settings_Form", "192"))
|
||||||
self.dot_0_lbl_2.setText(_translate("Update_Network_Settings_Form", "."))
|
self.dot_0_lbl_2.setText(_translate("Update_Network_Settings_Form", "."))
|
||||||
|
@ -349,7 +349,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>1337</string>
|
<string>1550</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="maxLength">
|
<property name="maxLength">
|
||||||
<number>5</number>
|
<number>5</number>
|
||||||
|
@ -30,7 +30,7 @@ impl Default for IpSettings {
|
|||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
IpSettings {
|
IpSettings {
|
||||||
addr: [192, 168, 1, 128],
|
addr: [192, 168, 1, 128],
|
||||||
port: 1337,
|
port: 1550,
|
||||||
prefix_len: 24,
|
prefix_len: 24,
|
||||||
gateway: [192, 168, 1, 1],
|
gateway: [192, 168, 1, 1],
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user