Skip to content

Instantly share code, notes, and snippets.

@daniestevez
Created June 3, 2018 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daniestevez/7b9e5fac03b585957cf1c35eb56a5446 to your computer and use it in GitHub Desktop.
Save daniestevez/7b9e5fac03b585957cf1c35eb56a5446 to your computer and use it in GitHub Desktop.
Decodes from DSWLP-B first 70cm telemetry from lunar orbit as received in Beijing
------------------------------------------------
435MHz
------------------------------------------------
**** Turbo decoder initiated:
rate = 0,500000
info_length = 1784
encoded_length = 3576
**** Set gain: 1,000000 -> 25124,302734
**** ASM found at: 14:35:37
Set sample_in_symbol: 14 -> 0
Set freq: 0,000000 -> -0,032154
Set phase: 0,000000 -> 1,167953
Estimated Eb/N0 = 2,181316
**** Set sigma: 0,707000 -> 0,478769
**** TM Frame Header
version_number = 0x0
spacecraft_id = 0x193
virtual_channel_id = 0x0
spare = 0x0
master_frame_count = 7
virtual_channel_frame_count = 7
first_header_pointer = 0
**** TM Packet Header
version_number = 0x00
flag_type = 0x01
slave_header_flag = 0x01
application_type = 0x00
nid = 0x0f
group_flag = 0x03
source_sequence_count = 906
packet_data_len = 72
**** DSLWP V/U Transceiver 1 Telemetry
config = 0x00
flag_rx = 0xc3
tx_gain = 0x08
tx_modulation = 0x82
flag_tx = 0x32
flag_7021 = 0xc0
n_cmd_buf = 0x00
n_cmd_dropped = 0x00
i_bus_rx = 73,599998
u_bus_rx = 28,160000
i_bus_tx = 342,399994
u_bus_tx = 28,160000
t_pa = 31
t_tx7021 = 0x00
n_jt4_tx = 0
n_ham_rx = 0
n_422_tx = 248
n_422_rx = 248
n_422_rx_pkg_err = 0
n_422_rx_exe_err = 0
cmd_422_last_rx = 0x00
n_rf_tx = 8
n_rf_tx_dropped = 0
n_rf_rx = 3
n_rf_rx_pkg_err = 0
n_rf_rx_exe_err = 3
n_rf_rx_fec_err = 2
cmd_rf_last_rx = 0xb0
byte_corr = -1
n_cmd = 0
fc_asm = 0,341695
snr_asm = 0,101562
rssi_asm = -134,899994
rssi_channel = -124,800003
rssi_7021 = -126,000000 (4)
flag_agc = 0x06 (12)
seconds_since_epoch = 13214099
cam_mode = 0x00
cam_task_flag = 0x00
cam_err_flag = 0x00
cam_pic_len = 11520
cam_memory_id = 11
jt4_task_flag = 0x00
n_reset = 66
flag_reset = 0x00
flag_sys = 0x00
n_dma_overflow = 0
runtime = 2099,776123
message = "BJ1SN-B1"
------------------------------------------------
436MHz
------------------------------------------------
**** Turbo decoder initiated:
rate = 0,500000
info_length = 1784
encoded_length = 3576
**** Set gain: 1,000000 -> 44819,781250
**** ASM found at: 14:38:29
Set sample_in_symbol: 8 -> 0
Set freq: 0,000000 -> 0,055874
Set phase: 0,000000 -> -2,002150
Estimated Eb/N0 = 1,033872
**** Set sigma: 0,707000 -> 0,695427
**** TM Frame Header
version_number = 0x0
spacecraft_id = 0x93
virtual_channel_id = 0x0
spare = 0x0
master_frame_count = 6
virtual_channel_frame_count = 6
first_header_pointer = 0
**** TM Packet Header
version_number = 0x00
flag_type = 0x01
slave_header_flag = 0x01
application_type = 0x00
nid = 0xac
group_flag = 0x00
source_sequence_count = 3
packet_data_len = 193
**** DSLWP WOD
seconds_since_epoch = 13214097
n_cmd_exe = 56
n_cmd_delay = 11
this_wdt_timeout_count = 0
that_wdt_timeout_count = 0
sta_reset_count = 0
stb_reset_count = 0
ss_reset_count = 0
is_reset_count = 0
pl_task_err_flag = 0
hsd_task_err_flag = 0
tc_wdt_timeout_period = 240
v_bus = 1802
v_battery = 1821
i_solar_panel = 4
i_load = 1255
i_bus = 214
sw_flag_1 = a9
sw_flag_2 = fb
sw_flag_3 = 3f
sw_flag_4 = 3c
sta_q0 = 1820628352
sta_q1 = -79409648
sta_q2 = 21303944
sta_q3 = 1135886720
sta_flag = 1
stb_q0 = -497638272
stb_q1 = 1567478016
stb_q2 = -1021347328
stb_q3 = 929464960
stb_flag = 1
stc_q0 = 0
stc_q1 = 0
stc_q2 = 0
stc_q3 = 0
stc_flag = 1
ss_x = -1056484275
ss_y = 1076490480
ss_flag = 0
fwx_rate = 1183
fwx_cmd = 1188
fwy_rate = 7930
fwy_cmd = 7926
fwz_rate = 60582
fwz_cmd = 60566
gyro_x = -27046
gyro_y = 82625
gyro_z = -28104
tank_pressure = 513
aocs_period = 0
error_q1 = 746
error_q2 = 64521
error_q3 = 65230
error_w1 = 64898
error_w2 = 657
error_w3 = 920
usb_agc = 113
usb_rf_power = 52
usb_temp2 = 121
usb_flag1 = 223
usb_flag2 = 251
usb_n_cmd = 211
usb_n_direct_cmd = 33
usb_n_inject_cmd = 178
usb_n_inject_cmd_err = 1
usb_n_sync = 212
t_pl = 615
t_hsd = 479
t_obc = 604
t_stb = 763
t_ss = 446
t_battery = 547
t_thrustor1a = 336
t_thrustor5a = 582
t_value1 = 547
t_value5 = 618
t_tube1 = 625
t_tank = 628
heater_flag1 = 0
heater_flag2 = 0
heater_flag3 = 0
heater_flag4 = 0
heater_flag5 = 0
uva_flag_rx = 195
uva_tx_gain = 8
uva_tx_modulation = 130
uva_fc_asm = 3499
uva_snr_asm = 12
uva_rssi_asm = 271
uva_rssi_7021 = 8
uvb_flag_rx = 195
uvb_tx_gain = 8
uvb_tx_modulation = 130
uvb_fc_asm = 3564
uvb_snr_asm = 26
uvb_rssi_asm = 271
uvb_rssi_7021 = 11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment