Difference between revisions of "Microcontroller Commands"

From DFN Wiki
Jump to: navigation, search
m (1 revision imported)
 
m (1 revision imported)
 
(No difference)

Latest revision as of 17:54, 23 August 2018

//serial command constants
#define USB_SERIAL_CODE_JUMP_TO_BOOTLOADER 'b'
#define USB_SERIAL_CODE_DISABLE_CAMERA_TRIGGERING 'd'
#define USB_SERIAL_CODE_ENABLE_CAMERA_TRIGGERING 'e'
#define USB_SERIAL_CODE_DISABLE_CAMERA_POWER 'D'
#define USB_SERIAL_CODE_ENABLE_CAMERA_POWER 'E'
#define USB_SERIAL_CODE_REBOOT_MICROCONTROLLER_INTO_APPLICATION 'r'
#define USB_SERIAL_CODE_REQUEST_INTERNAL_TEMPERATURE 't'
#define USB_SERIAL_CODE_SWAP_TO_PC_TIMEKEEPING_TOP_OF_THE_MINUTE 'T'
#define USB_SERIAL_CODE_REQUEST_INTERNAL_TEMPERATURE_RESPONSE_STRING "t%d\n"
#define USB_SERIAL_CODE_REQUEST_GPS_RMC_STRING 'g'
#define USB_SERIAL_CODE_REQUEST_GPS_RMC_RESPONSE_STRING "g%s\n"
#define USB_SERIAL_CODE_REQUEST_GPS_GGA_STRING 'G'
#define USB_SERIAL_CODE_REQUEST_GPS_GGA_RESPONSE_STRING "G%s\n"
#define USB_SERIAL_CODE_REQUEST_STATUS 's'
#define USB_SERIAL_CODE_REQUEST_STATUS_RESPONSE_ACTIVE_GPS_LOCK 'A'
#define USB_SERIAL_CODE_REQUEST_STATUS_RESPONSE_VOID_GPS_LOCK 'V'
#define USB_SERIAL_CODE_TAKE_NEXT_EXPOSURE_WITH_LC_OPEN 'u'
#define USB_SERIAL_CODE_TAKE_SINGLE_EXPOSURE 'o'
#define USB_SERIAL_CODE_TURN_ON_HDD_POWER 'H' //HDD power
#define USB_SERIAL_CODE_TURN_OFF_HDD_POWER 'h'
#define USB_SERIAL_CODE_TURN_ON_VIDEO 'V' //video camera power
#define USB_SERIAL_CODE_TURN_OFF_VIDEO 'v'

#define USB_SERIAL_CODE_TURN_ON_HEATER 'W' //heater on DFNext, additional relay on older systems
#define USB_SERIAL_CODE_TURN_OFF_HEATER 'w'
#define USB_SERIAL_CODE_AUTO_HEATER 'X'
#define USB_SERIAL_CODE_AUTO_COOLING_FAN 'x'
#define USB_SERIAL_CODE_TURN_ON_COOLING_FAN 'Y' //cooling fan on DFNext
#define USB_SERIAL_CODE_TURN_OFF_COOLING_FAN 'y'

#define USB_SERIAL_CODE_TURN_ON_CONDENSATION_FAN 'F'
#define USB_SERIAL_CODE_TURN_OFF_CONDENSATION_FAN 'f'
#define USB_SERIAL_CODE_HARD_RESET_PC 'p'
#define USB_SERIAL_CODE_HARD_RESET_PC_SECOND_CHARACTER_PCB_V4_1 'c'
#define USB_SERIAL_CODE_HARD_RESET_PC_SECOND_CHARACTER_PCB_V4_2_PLUS 'd'
#define USB_SERIAL_CODE_GET_VERSION_INFO 'k'
#define USB_SERIAL_CODE_NON_BULB_OPERATION 'm'
#define USB_SERIAL_CODE_BULB_OPERATION 'M'
#define USB_SERIAL_CODE_GET_DEBUG_STRING_1 'q'
#define USB_SERIAL_CODE_GET_DEBUG_STRING_2 'Q'
#define USB_SERIAL_CODE_LC_DIM_MODE 'Z'
#define USB_SERIAL_CODE_LC_BRIGHT_MODE 'z'
#define USB_SERIAL_CODE_GET_SEQUENCE 'K'
#define USB_SERIAL_CODE_GET_UPTIME 'U'
#define USB_SERIAL_CODE_GET_PCB_TEMPERATURE 'a'
#define USB_SERIAL_CODE_REQUEST_PCB_TEMPERATURE_RESPONSE_STRING "a%d\n"
#define USB_SERIAL_CODE_GET_PCB_HUMIDITY 'A'
#define USB_SERIAL_CODE_REQUEST_PCB_HUMIDITY_RESPONSE_STRING "A%d\n"
#define USB_SERIAL_CODE_GET_BATTERY_VOLTAGE 'i'
#define USB_SERIAL_CODE_REQUEST_BATTERY_VOLTAGE_RESPONSE_STRING "i%d\n"

#define USB_SERIAL_CODE_PULSE_WIDTH_ENCODING 'j'
#define USB_SERIAL_CODE_PULSE_FREQUENCY_ENCODING 'J'