Go to the source code of this file.
|
uint8_t | TCMDEXEC_comms_set_rf_switch_control_mode (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len) |
| Sets the state of the dipole switch on the OBC to either Antenna 1 or Antenna 2.
|
|
uint8_t | TCMDEXEC_comms_get_rf_switch_info (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len) |
| Gets the current RF switch control mode and the current antenna state.
|
|
uint8_t | TCMDEXEC_comms_bulk_file_downlink_start (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len) |
| Initiate a bulk file downlink over the UHF radio.
|
|
uint8_t | TCMDEXEC_comms_bulk_file_downlink_pause (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len) |
| Telecommand: Pause bulk file downlink.
|
|
uint8_t | TCMDEXEC_comms_bulk_file_downlink_resume (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len) |
|
◆ TCMDEXEC_comms_bulk_file_downlink_pause()
uint8_t TCMDEXEC_comms_bulk_file_downlink_pause |
( |
const char * | args_str, |
|
|
char * | response_output_buf, |
|
|
uint16_t | response_output_buf_len ) |
Telecommand: Pause bulk file downlink.
- Parameters
-
◆ TCMDEXEC_comms_bulk_file_downlink_resume()
uint8_t TCMDEXEC_comms_bulk_file_downlink_resume |
( |
const char * | args_str, |
|
|
char * | response_output_buf, |
|
|
uint16_t | response_output_buf_len ) |
◆ TCMDEXEC_comms_bulk_file_downlink_start()
uint8_t TCMDEXEC_comms_bulk_file_downlink_start |
( |
const char * | args_str, |
|
|
char * | response_output_buf, |
|
|
uint16_t | response_output_buf_len ) |
Initiate a bulk file downlink over the UHF radio.
- Parameters
-
args_str |
- Arg 0: File path to downlink as string
- Arg 1: Start offset in file (uint32)
- Arg 2: The maximum number of bytes to downlink. Maximum value is 1000000 (1 MB, COMMS_bulk_file_downlink_total_bytes), for safety (to avoid a very very long-running downlink chain). Values >1 MB will be limited to 1 MB, and value 0 will be set to 1 MB.
|
- Returns
- 0 on success. Non-zero on failure. -2 = File does not exist.
- Note
- 1 MB takes about 15 minutes to downlink at 9600 baud.
-
This function is safe to call at any point (including mid-downlink, or mid-pause). It will close the previous file and start a new downlink.
◆ TCMDEXEC_comms_get_rf_switch_info()
uint8_t TCMDEXEC_comms_get_rf_switch_info |
( |
const char * | args_str, |
|
|
char * | response_output_buf, |
|
|
uint16_t | response_output_buf_len ) |
Gets the current RF switch control mode and the current antenna state.
- Parameters
-
- Returns
◆ TCMDEXEC_comms_set_rf_switch_control_mode()
uint8_t TCMDEXEC_comms_set_rf_switch_control_mode |
( |
const char * | args_str, |
|
|
char * | response_output_buf, |
|
|
uint16_t | response_output_buf_len ) |
Sets the state of the dipole switch on the OBC to either Antenna 1 or Antenna 2.
- Parameters
-
args_str |
- Arg 0: Enum: "toggle_before_beacon" (default), "ant1", "ant2", "adcs", "adcs_flipped". Case-insensitive.
|
- Returns
- 0 on success, 1 on error.