UAF-SuperDARN-OPS / SuperDARN_UHD_Server

Server to control USRPs across multiple computers for phased array with CUDA-accelerated down-conversion.
GNU General Public License v3.0
3 stars 0 forks source link

ensure complete shutdown of usrp_server for RHM.exit() #64

Open mguski opened 7 years ago

mguski commented 7 years ago

it looks like this is not working:

Manager #10: DEBUG ch 4:_waitForState ['CS_SAMPLES_READY']. state is CS_PROCESSING (swing 0) socket_data : ERROR Error receiving client_return for command 115 from client 137.229.117.235:46428 usrpManager : ERROR Connection lost to usrp 137.229.117.236:54469. Removing it from sock list. usrpManager : ERROR Removing usrp 192.168.49.2 (137.229.117.236:54469). usrpManager : DEBUG Filling SHM with zeros: shm_rx_ant_9_side_0_swing_0 usrpManager : DEBUG Failed filling SHM with zeros: shm_rx_ant_9_side_0_swing_0 usrpManager : DEBUG Filling SHM with zeros: shm_tx_ant_9_side_0_swing_0 usrpManager : DEBUG Failed filling SHM with zeros: shm_tx_ant_9_side_0_swing_0 usrpManager : DEBUG Filling SHM with zeros: shm_rx_ant_9_side_0_swing_1 usrpManager : DEBUG Failed filling SHM with zeros: shm_rx_ant_9_side_0_swing_1 usrpManager : DEBUG Filling SHM with zeros: shm_tx_ant_9_side_0_swing_1 usrpManager : DEBUG Failed filling SHM with zeros: shm_tx_ant_9_side_0_swing_1 usrpManager : ERROR No working USRPs left. Shutting down usrs_server... HwManager : WARNING Entering RadarHardwareManager.exit() for clean exit HwManager : WARNING Entering RadarHardwareManager.disconnect_driver_and_clean_up() HwManager : DEBUG Settinge exit flag... HwManager : DEBUG end USRP_SETUP HwManager : INFO ending control program sock loop HwManager : DEBUG start USRP_GET_TIME Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner self.run() File "/usr/lib/python3.5/threading.py", line 862, in run self._target(*self._args, **self._kwargs) File "./usrp_server.py", line 849, in radar_main_control_loop self.trigger_next_swing() File "./usrp_server.py", line 1330, in trigger_next_swing cmd = usrp_get_time_command(self.usrpManager.socks[0]) # grab current usrp time from one usrp_driver IndexError: list index out of range

ChManager #10: DEBUG ch 4:_waitForState ['CS_SAMPLES_READY']. state is CS_PROCESSING (swing 0) ChManager #10: DEBUG ch 4:_waitForState ['CS_SAMPLES_READY']. state is CS_PROCESSING (swing 0) ChManager #10: DEBUG ch 4:_waitForState ['CS_SAMPLES_READY']. state is CS_PROCESSING (swing 0)