jmason86 / MinXSS_Beacon_Decoder

Beacon decoder for the MinXSS CubeSat in space; MinXSS-2 launch on 2018-11-19
http://lasp.colorado.edu/home/minxss
GNU General Public License v3.0
11 stars 6 forks source link

commit 62a2c59: Closes TCP link after single packet decode #1

Closed K4KDR closed 7 years ago

K4KDR commented 7 years ago

Using the following version: "Latest commit 62a2c59 15 hours ago More telemetry points decoded and displayed but not yet tested":

Environment: Ubuntu 16.04 (64-bit) Command run: python minxss_beacon_decoder.py

When replaying a previously recorded IQ file to test latest version of decoder app, the TCP link disconnects after a single packet decode. Previously, the app continued to decode all received packets until closed by user command. Log file follows:


2017-03-12 13:25:21,283 INFO Attempting to connect to port 2017-03-12 13:25:21,283 INFO Attempting to connect to port 2017-03-12 13:25:21,285 INFO Opening IP address: 192.168.2.114 on port: 8100 2017-03-12 13:25:21,285 INFO Opening IP address: 192.168.2.114 on port: 8100 2017-03-12 13:25:32,778 INFO From MinXSS parser: 2017-03-12 13:25:32,778 INFO From MinXSS parser: 2017-03-12 13:25:32,778 INFO {'BatteryVoltage': 7.282930631332814, 'EpsBoardTemperature': 13.375, 'SolarArray+YCurrent': 0.0, 'SolarArray+YVoltage': 0.119970703125, 'BatteryTemperature': 13.086979999999983, 'SolarArray-YCurrent': 0.0, 'SolarArray+XCurrent': 0.0, 'MotherboardTemperature': 3.6875, 'BatteryChargeCurrent': 5.979199999999999, 'BatteryDischargeCurrent': 720.896, 'SolarArray+XVoltage': 0.135966796875, 'CommBoardTemperature': 6.4375, 'SolarArray-YVoltage': 0.135966796875} 2017-03-12 13:25:32,778 INFO {'BatteryVoltage': 7.282930631332814, 'EpsBoardTemperature': 13.375, 'SolarArray+YCurrent': 0.0, 'SolarArray+YVoltage': 0.119970703125, 'BatteryTemperature': 13.086979999999983, 'SolarArray-YCurrent': 0.0, 'SolarArray+XCurrent': 0.0, 'MotherboardTemperature': 3.6875, 'BatteryChargeCurrent': 5.979199999999999, 'BatteryDischargeCurrent': 720.896, 'SolarArray+XVoltage': 0.135966796875, 'CommBoardTemperature': 6.4375, 'SolarArray-YVoltage': 0.135966796875} 2017-03-12 13:25:32,793 INFO Closing ground station link 2017-03-12 13:25:32,793 INFO Closing ground station link


jmason86 commented 7 years ago

Thanks for the feedback and details! I'll test tomorrow and see if I can reproduce the issue.

jmason86 commented 7 years ago

Resolved. It was due to a typo: 'BatteryTemperature' was written as 'BatteryTempertre' in the color coding of telemetry, which caused the code to crash, which also automatically closes sockets.