Commit Graph

58 Commits

Author SHA1 Message Date
Arthur Golubtsov
7c6af7f2fa Server: Add broadcast ip as parameter to configuration 2020-04-11 03:57:17 +03:00
Artem30801
8d595134da Added new keepalive to server and client 2020-04-07 15:52:10 +03:00
Arthur Golubtsov
e208b7959f Server: Fix renaming 2020-02-21 13:48:03 +03:00
Artem30801
97194d1271 Fixed server message broadcasting 2020-02-17 20:25:29 +03:00
Artem30801
206cbec04e Fixed broadcast sending + debug traceback 2020-01-23 21:48:09 +03:00
Artem30801
0e02e2ee9d Updated messaging. File requests + args 2020-01-23 17:05:59 +03:00
Arthur Golubtsov
28d1213456 Server: Fix logger and send launch files 2020-01-21 06:18:40 +03:00
Artem30801
0f2574554d Slight improvemnts 2020-01-05 12:37:33 +03:00
Artem30801
98e4e0190c Merge fixes and improvements 2020-01-03 15:36:54 +03:00
Artem30801
a8c31a0258 Merge branch 'master' into qt-gui-update 2020-01-02 19:30:17 +03:00
Artem30801
0ed088a99d Improved notifier closing and error handling + fixes 2020-01-02 19:26:27 +03:00
Arthur Golubtsov
dfbf466706 Server: Catch network exceptions 2019-12-31 10:39:30 +03:00
Artem30801
63f6bdbe52 Merge branch 'master' into qt-gui-update 2019-12-30 21:57:21 +03:00
artem30801
239f32a616 Filesending debugging 2019-12-29 20:07:03 +03:00
artem30801
853cc0d3fa File sending fix (#61)
* Changed sending buffering

* Connected config to buffer size in clients

* Update data logging for file transmit

* Fix logging when receive data

Co-authored-by: Arthur Golubtsov <goldartt@gmail.com>
2019-12-26 18:23:10 +03:00
artem30801
01a2990e0a Removed timing lib import 2019-12-26 17:53:10 +03:00
artem30801
f1ea376a79 QT server refactor and improvements 2019-12-26 15:37:55 +03:00
artem30801
8b4bb7a064 Merged master+server improvements 2019-12-26 15:30:24 +03:00
artem30801
ad0fc9e4bc Shift server to new ConfigManager 2019-12-07 22:39:29 +03:00
artem30801
ce36c6f1e3 Feature branch: IMPORTANT connection+telemetry+table fixes and improvements (#55)
* .client_connected > .new_client_connected

* Fixed 'confirmation_required' wrapper

* Logging impr

* Changed and optimized a lot checks behaviour

* Added indication of connected/disconnected copters

* update_data_signal changed signature

* Added client removing functionality

* Option for automatically remove disconnected copters from table

* Renaming copters from QT server table on the go + some improvements

* Server: Check if self.clients list is not empty when trying to pop element from it

* Probably fixes behaviour of non-immidiate data sending from server

* Added changing hostname of copter

* Updated config

* Preview of selfchecheck results on double click

* Delete doc_2019-10-16_17-57-17.bashrc

* Update table data models for selfcheck

* Server: modify set id request to message

* Update client_config default file

* Client: modify set new id function

* Client: add avahi-daemon to restart when restarting network

* Client: add new hostname to ssh motd message, do not change hostname if no network restart in config

* Client: add newline to motd message

* Optimized request behaviour

* Client: fix service file and restart order

* Client: Add SO_KEEPALIVE and TCP_NODELAY options to client socket

* Modify to last tests with ping

* Client: remove ping

* Client: select reboot option when change id and add execute command

* Server: Add SO_KEEPALIVE option to server socket

* Server: Change removing copter

* Request resending after disconnection

* Resending improval (for furthrer functionality & fixes

* Fix of client removing behaviour

* Debugging

* Revert dubug code; 'Remove' fix confirmed

* do not clear requests queue

* Update requirements.txt

* Added namespace class to fix resend

* Improvements and simplification of notifier + port to client

* Refactor of telemetry thread

* Simplify lambdas

* Compress hostname check to single regex

* Changes in telemetry

* Refactored formatting of telemetry in table. NOT DONE

* Fix

* Git checkout. REVERT later!

* Conection fix

* Compability fixes

* Update start position

* Fix for reconnection with notifier socket

* Added traceback for pyqt5

* Fixes in new telemetry display

* Added lock to Telemetry

* Fixes for table display

* Fix of doubling line of client in table

* Fix of mass-removing clients from table

* Fix for clinet double-connection+removal

* Fix lock in Telemetry

* Changed signature of response callbacks for better syntax & fixes (all tested)

* Revert "Git checkout. REVERT later!"

This reverts commit 6122352380.

* Server: fix formatters

* Client: Remove telemetry_loop, small refactor of Telemetry class

* Server: Add formatters

* Server: Very small refactor

* Server: Fix checks and formatters

* Client: Fix check_failsafe function, small code refactor

* Client: update default config file
2019-12-05 15:10:21 +03:00
Arthur Golubtsov
68dbf57a79 Server: Write server logs to server_logs folder with unique filenames 2019-11-09 23:58:39 +03:00
Arthur Golubtsov
dd761e7dfb Server: Fix copter removing 2019-10-23 15:51:00 +03:00
artem30801
eb61fd0dd8 Test and merge feature branch (#52)
* Added indication of connected/disconnected copters

* Added client removing functionality

* Option for automatically remove disconnected copters from table

* Renaming copters from QT server table on the go + some improvements
2019-10-18 22:52:25 +03:00
Arthur Golubtsov
19b4d73da3 Server: correct send start_time logic 2019-10-08 19:55:14 +03:00
Arthur Golubtsov
ca4b4aa1bf Connection rewrite: update client and server connection logic (#49) 2019-10-07 20:05:39 +03:00
Artem30801
eceb5a7f71 Minor config changes (added ability to turn off broadcast) 2019-07-26 12:36:33 +03:00
Artem30801
cd9baa6a09 Fixed sel unregister issue 2019-06-25 18:46:04 +03:00
Artem30801
d7e8e29f80 Display fix 2019-06-25 18:35:39 +03:00
Artem30801
f98efab15c Improved broadcast listener to prevent two servers running in the same network
Closes #12
2019-06-10 10:57:59 +03:00
Arthur
b80a19cb96 Server: change start_animation command name to start 2019-06-04 18:15:00 +03:00
Artem30801
2971dc81eb Merge branch 'alpha' of https://github.com/artem30801/CleverSwarm 2019-05-21 21:58:56 +03:00
Artem30801
cfffaa8c55 Command "starttime" -> "start_animation" 2019-05-21 21:58:46 +03:00
Arthur
5317902a4c Server: add lib import from parent directory 2019-05-21 20:03:09 +03:00
Artem30801
efa081efc3 Minimal operateable server+copter client. Many improvements, including architecture improvements 2019-04-16 23:03:24 +03:00
Artem30801
733b4e84c1 Fix request 2019-04-09 23:11:45 +03:00
Artem30801
b9008204ee Fix copter id getter 2019-04-09 10:49:18 +03:00
Artem30801
1dd0335308 Client ad server sharing same connection handler now 2019-04-09 08:59:44 +03:00
Artem
95d9405849 rw in server 2019-04-09 00:12:01 +07:00
Artem30801
ba071a239d New server-client release 2019-04-08 18:20:02 +03:00
artem30801@gmail.com
7fc61bbe19 Msg receiving debug prints 2019-03-29 20:02:55 +03:00
artem30801@gmail.com
1f2c9386f9 Merge remote-tracking branch 'origin/master' 2019-03-29 17:12:59 +03:00
artem30801@gmail.com
b4791461c8 Request locks, small improvements 2019-03-29 16:55:32 +03:00
Arthur
8cb3558a27 server: add ability to restart clever service after file uploading 2019-03-29 14:53:01 +03:00
artem30801@gmail.com
8d72874841 All UI functions are now properly working with selected (checked) copters 2019-03-29 11:08:56 +03:00
artem30801@gmail.com
72cbd488ff Msg format changed to pure json 2019-03-28 19:35:56 +03:00
artem30801@gmail.com
68dd0c5ab5 Added ui ability to send aruco map files 2019-03-28 17:37:46 +03:00
Artem30801
ca3c40e2c3 Little fixes 2019-03-25 15:16:34 +03:00
Artem30801
84f81af8b9 Added initial server logging 2019-03-24 11:57:53 +03:00
Artem30801
8dc90f7e17 Added threading lock for send queue 2019-03-23 22:51:27 +03:00
Artem30801
fa86ba4dbb Added proper client callbacks 2019-03-23 22:42:55 +03:00