From ee048685166e8e44ce5861a86a111eb53f28d99c Mon Sep 17 00:00:00 2001 From: avan989 Date: Mon, 9 Sep 2019 08:36:22 -0400 Subject: [PATCH 1/3] Fix #27, Add tutorial on Loading Table --- Guide-Loading-Tables.txt | 63 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Guide-Loading-Tables.txt diff --git a/Guide-Loading-Tables.txt b/Guide-Loading-Tables.txt new file mode 100644 index 0000000..4e17da5 --- /dev/null +++ b/Guide-Loading-Tables.txt @@ -0,0 +1,63 @@ +Loading Table(s) - Guide +------------------------ + +reference(s): cfe_tbl.dox + cFE Application Developers Guide + + 1. Make sure the table image you want to load is in the onboard computer. + + 2. Open Your GroundSystem. + + a. Select "Start Command System" + + b. Select "Display Page" next to Table Services. This will take you to "Table Services" + menu. + + c. Select "Send" next to "Load Table". + + d. Enter the location and name of the table file you want to load in the input section: + Example: /cf/MyTblDefault2.tbl + + e. Select "send". If successful, you should see an event: + "Successful load of '/cf/' into '.' work buffer" + + f. At this point, your table is loaded but still "inactive". Before you can "activate" the + table, you will have to "validate" it. Go back to "Table Services" menu. + + g. Select "Send" next to "Validate Table". + + h. There are two rows, "ActiveTblFlag" and "TableName". Fill it out accordingly. + Example: "CFE_TBL_INACTIVE_BUFFER" for ActiveTblFlag + "TO_LAB_APP.MyTblDefault" for TableName + + *Note - TableName is the actual table name, not the table file name. + + i. Select "Send". If successful, you should see an event: + " validation successful for Inactive '.'" + + j. Last step is to activate it. Go back to "Table Services" menu. + + k. Select "Send" next to "Activate Table". + + l. Enter the table name you want to activate. + Example: TO_LAB_APP.MyTblDefault + + *Note - This is the full table name, not your table file name. + + If successful, you should see an event: + " Successfully updated '.'" + +Note(s) +------- + + 1. If you have an event that says the message is invalid when you send "validate" or "activate" + command, check your ground station packet definitions vs. your cFS definitions. There + could be a mismatch between the lengths. + + 2. If you "validate" or "activate" and no events or errors occurred, your application is not + passing through the "Table Manage API". "Validate" and "activate" are application level + implementations. Check if you have: + + a. CFE_TBL_Manage implemented. + + b. CFE_TBL_Manage is being called. \ No newline at end of file From 66a82ee36a28f5f32b6bc21a3bc4b0eb394381d9 Mon Sep 17 00:00:00 2001 From: avan989 Date: Tue, 10 Sep 2019 16:46:08 -0400 Subject: [PATCH 2/3] Fix #29, fix invalid length in ground system --- Subsystems/cmdGui/CommandFiles/cfe__sb__msg_8h | 2 +- Subsystems/cmdGui/CommandFiles/cfe__time__msg_8h | 2 +- .../ParameterFiles/struct_c_f_e___e_s___delete_c_d_s_cmd__t | 4 ++-- .../struct_c_f_e___e_v_s___app_name_event_i_d_mask_cmd__t | 4 ++-- .../cmdGui/ParameterFiles/struct_c_f_e___s_b___en_rout_cmd__t | 4 ++-- .../ParameterFiles/struct_c_f_e___t_b_l___abort_ld_cmd__t | 4 ++-- .../ParameterFiles/struct_c_f_e___t_b_l___activate_cmd__t | 4 ++-- .../ParameterFiles/struct_c_f_e___t_b_l___del_c_d_s_cmd__t | 4 ++-- .../cmdGui/ParameterFiles/struct_c_f_e___t_b_l___dump_cmd__t | 4 ++-- .../ParameterFiles/struct_c_f_e___t_b_l___tlm_reg_cmd__t | 4 ++-- .../ParameterFiles/struct_c_f_e___t_b_l___validate_cmd__t | 4 ++-- .../ParameterFiles/struct_c_f_e___t_i_m_e___signal_cmd__t | 2 +- 12 files changed, 21 insertions(+), 21 deletions(-) diff --git a/Subsystems/cmdGui/CommandFiles/cfe__sb__msg_8h b/Subsystems/cmdGui/CommandFiles/cfe__sb__msg_8h index cb2ec2f..c922466 100644 --- a/Subsystems/cmdGui/CommandFiles/cfe__sb__msg_8h +++ b/Subsystems/cmdGui/CommandFiles/cfe__sb__msg_8h @@ -68,4 +68,4 @@ aS'struct_c_f_e___s_b___write_file_info_cmd__t' p35 aS'struct_c_f_e___s_b___cmd_hdr__t' p36 -aa. \ No newline at end of file +aa. diff --git a/Subsystems/cmdGui/CommandFiles/cfe__time__msg_8h b/Subsystems/cmdGui/CommandFiles/cfe__time__msg_8h index f83b640..dace3a0 100644 --- a/Subsystems/cmdGui/CommandFiles/cfe__time__msg_8h +++ b/Subsystems/cmdGui/CommandFiles/cfe__time__msg_8h @@ -98,4 +98,4 @@ aS'struct_c_f_e___t_i_m_e___time_cmd__t' p50 aS'struct_c_f_e___t_i_m_e___time_cmd__t' p51 -aa. \ No newline at end of file +aa. diff --git a/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___e_s___delete_c_d_s_cmd__t b/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___e_s___delete_c_d_s_cmd__t index fe0f8a1..7bd424b 100644 --- a/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___e_s___delete_c_d_s_cmd__t +++ b/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___e_s___delete_c_d_s_cmd__t @@ -15,6 +15,6 @@ aa(lp9 S'--string' p10 aa(lp11 -S'16' +S'38' p12 -aa. \ No newline at end of file +aa. diff --git a/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___e_v_s___app_name_event_i_d_mask_cmd__t b/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___e_v_s___app_name_event_i_d_mask_cmd__t index ac6d5ab..c545b71 100644 --- a/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___e_v_s___app_name_event_i_d_mask_cmd__t +++ b/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___e_v_s___app_name_event_i_d_mask_cmd__t @@ -33,8 +33,8 @@ aS'--half' p18 ag18 aa(lp19 -S'20' +S'18' p20 ag11 ag11 -aa. \ No newline at end of file +aa. diff --git a/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___s_b___en_rout_cmd__t b/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___s_b___en_rout_cmd__t index ddcc78f..ae00a8f 100644 --- a/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___s_b___en_rout_cmd__t +++ b/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___s_b___en_rout_cmd__t @@ -12,8 +12,8 @@ aa(lp7 S'Spare byte to make command even number of bytes.' p8 aa(lp9 -S'--byte' +S'--long' p10 aa(lp11 g6 -aa. \ No newline at end of file +aa. diff --git a/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___t_b_l___abort_ld_cmd__t b/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___t_b_l___abort_ld_cmd__t index 01929cd..91f50c1 100644 --- a/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___t_b_l___abort_ld_cmd__t +++ b/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___t_b_l___abort_ld_cmd__t @@ -15,6 +15,6 @@ aa(lp9 S'--string' p10 aa(lp11 -S'16' +S'38' p12 -aa. \ No newline at end of file +aa. diff --git a/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___t_b_l___activate_cmd__t b/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___t_b_l___activate_cmd__t index 17b0514..8e83f09 100644 --- a/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___t_b_l___activate_cmd__t +++ b/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___t_b_l___activate_cmd__t @@ -15,6 +15,6 @@ aa(lp9 S'--string' p10 aa(lp11 -S'16' +S'38' p12 -aa. \ No newline at end of file +aa. diff --git a/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___t_b_l___del_c_d_s_cmd__t b/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___t_b_l___del_c_d_s_cmd__t index a02da00..187d3ea 100644 --- a/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___t_b_l___del_c_d_s_cmd__t +++ b/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___t_b_l___del_c_d_s_cmd__t @@ -15,6 +15,6 @@ aa(lp9 S'--string' p10 aa(lp11 -S'16' +S'38' p12 -aa. \ No newline at end of file +aa. diff --git a/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___t_b_l___dump_cmd__t b/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___t_b_l___dump_cmd__t index da3ad22..09d1356 100644 --- a/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___t_b_l___dump_cmd__t +++ b/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___t_b_l___dump_cmd__t @@ -37,6 +37,6 @@ aa(lp20 g10 aS'16' p21 -aS'64' +aS'86' p22 -aa. \ No newline at end of file +aa. diff --git a/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___t_b_l___tlm_reg_cmd__t b/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___t_b_l___tlm_reg_cmd__t index 285dc61..7ffaade 100644 --- a/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___t_b_l___tlm_reg_cmd__t +++ b/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___t_b_l___tlm_reg_cmd__t @@ -15,6 +15,6 @@ aa(lp9 S'--string' p10 aa(lp11 -S'16' +S'38' p12 -aa. \ No newline at end of file +aa. diff --git a/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___t_b_l___validate_cmd__t b/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___t_b_l___validate_cmd__t index d35318e..ae6a446 100644 --- a/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___t_b_l___validate_cmd__t +++ b/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___t_b_l___validate_cmd__t @@ -26,6 +26,6 @@ aS'--string' p15 aa(lp16 g8 -aS'16' +aS'38' p17 -aa. \ No newline at end of file +aa. diff --git a/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___t_i_m_e___signal_cmd__t b/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___t_i_m_e___signal_cmd__t index 6aa3ad1..8fe9cbd 100644 --- a/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___t_i_m_e___signal_cmd__t +++ b/Subsystems/cmdGui/ParameterFiles/struct_c_f_e___t_i_m_e___signal_cmd__t @@ -5,4 +5,4 @@ a(lp3 a(lp4 a(lp5 a(lp6 -a. \ No newline at end of file +a. From 4482a5d95dd47cc0672f7952f9cf0aab43b46bcd Mon Sep 17 00:00:00 2001 From: avan989 Date: Mon, 16 Sep 2019 12:11:52 -0400 Subject: [PATCH 3/3] Fix #32, Add ground commands for sample app --- Subsystems/cmdGui/CommandFiles/sample_app_cmd | 17 +++++++++++++++++ Subsystems/cmdGui/command-pages.txt | 1 + 2 files changed, 18 insertions(+) create mode 100644 Subsystems/cmdGui/CommandFiles/sample_app_cmd diff --git a/Subsystems/cmdGui/CommandFiles/sample_app_cmd b/Subsystems/cmdGui/CommandFiles/sample_app_cmd new file mode 100644 index 0000000..19dc972 --- /dev/null +++ b/Subsystems/cmdGui/CommandFiles/sample_app_cmd @@ -0,0 +1,17 @@ +(lp0 +(lp1 +S'SAMPLE_APP_NOOP_CC' +p2 +aS'SAMPLE_APP_RESET_COUNTERS_CC' +p3 +aS'SAMPLE_APP_PROCESS_CC' +p4 +aa(lp5 +S'0' +p6 +aS'1' +p7 +aS'2' +p8 +aag1 +a. \ No newline at end of file diff --git a/Subsystems/cmdGui/command-pages.txt b/Subsystems/cmdGui/command-pages.txt index a3a8222..2e81320 100644 --- a/Subsystems/cmdGui/command-pages.txt +++ b/Subsystems/cmdGui/command-pages.txt @@ -28,3 +28,4 @@ Time Services (CPU1), cfe__time__msg_8h, 0x1805, LE, UdpCommands.py, 127 Event Services (CPU1), cfe__evs__msg_8h, 0x1801, LE, UdpCommands.py, 127.0.0.1, 1234 Command Ingest LAB, ci_lab_msg, 0x1884, LE, UdpCommands.py, 127.0.0.1, 1234 Telemetry Output LAB, to_lab_msg, 0x1880, LE, UdpCommands.py, 127.0.0.1, 1234 +Sample App (CPU1), sample_app_cmd, 0x1882, LE, UdpCommands.py, 127.0.0.1, 1234