diff --git a/pykirdy/asyncio_exmaple.py b/pykirdy/asyncio_exmaple.py index 8a2e91d..80667fc 100644 --- a/pykirdy/asyncio_exmaple.py +++ b/pykirdy/asyncio_exmaple.py @@ -32,7 +32,7 @@ async def device_cfg(kirdy: Kirdy): # Network Settings will be updated on next reboot. await kirdy.device.set_ip_settings( addr="192.168.1.128", - port=1337, + port=1550, prefix_len=24, gateway="192.168.1.1" ) diff --git a/pykirdy/driver/kirdy.py b/pykirdy/driver/kirdy.py index a577abc..a8b571d 100644 --- a/pykirdy/driver/kirdy.py +++ b/pykirdy/driver/kirdy.py @@ -181,7 +181,7 @@ class Device: self._send_cmd = send_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. """ @@ -693,7 +693,7 @@ class Kirdy: """ 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. In case of disconnection, all the queued tasks are cleared and the handler task retries TCP connection indefinitely. diff --git a/pykirdy/kirdy_qt.py b/pykirdy/kirdy_qt.py index 886d5e1..a43df72 100644 --- a/pykirdy/kirdy_qt.py +++ b/pykirdy/kirdy_qt.py @@ -400,7 +400,7 @@ class MainWindow(QtWidgets.QMainWindow): """The maximum number of sample points to store.""" DEFAULT_MAX_SAMPLES = 1000 DEFAULT_IP_ADDR = '192.168.1.128' - DEFAULT_PORT = 1337 + DEFAULT_PORT = 1550 LASER_DIODE_PARAMETERS = [ {'name': 'Readings', 'expanded': True, 'type': 'group', 'children': [ diff --git a/pykirdy/ui/conn_settings_form.ui b/pykirdy/ui/conn_settings_form.ui index bf86713..d6c09ac 100644 --- a/pykirdy/ui/conn_settings_form.ui +++ b/pykirdy/ui/conn_settings_form.ui @@ -258,7 +258,7 @@ - 1337 + 1550 5 diff --git a/pykirdy/ui/ui_conn_settings_form.py b/pykirdy/ui/ui_conn_settings_form.py index 80f1726..6fd2fa9 100644 --- a/pykirdy/ui/ui_conn_settings_form.py +++ b/pykirdy/ui/ui_conn_settings_form.py @@ -156,6 +156,6 @@ class Ui_Conn_Settings_Form(object): self.dot_2_label.setText(_translate("Conn_Settings_Form", ".")) self.addr_in_3.setText(_translate("Conn_Settings_Form", "128")) 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.cancel_btn.setText(_translate("Conn_Settings_Form", "Cancel")) diff --git a/pykirdy/ui/ui_update_network_settings_form.py b/pykirdy/ui/ui_update_network_settings_form.py index 25ed3d7..5290afc 100644 --- a/pykirdy/ui/ui_update_network_settings_form.py +++ b/pykirdy/ui/ui_update_network_settings_form.py @@ -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_in.setText(_translate("Update_Network_Settings_Form", "24")) 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_in_0.setText(_translate("Update_Network_Settings_Form", "192")) self.dot_0_lbl_2.setText(_translate("Update_Network_Settings_Form", ".")) diff --git a/pykirdy/ui/update_network_settings_form.ui b/pykirdy/ui/update_network_settings_form.ui index 9166bba..1e86145 100644 --- a/pykirdy/ui/update_network_settings_form.ui +++ b/pykirdy/ui/update_network_settings_form.ui @@ -349,7 +349,7 @@ - 1337 + 1550 5 diff --git a/src/net/net.rs b/src/net/net.rs index e71f27f..1f5da64 100644 --- a/src/net/net.rs +++ b/src/net/net.rs @@ -30,7 +30,7 @@ impl Default for IpSettings { fn default() -> Self { IpSettings { addr: [192, 168, 1, 128], - port: 1337, + port: 1550, prefix_len: 24, gateway: [192, 168, 1, 1], }