2014-05-19 16:20:55 +00:00
|
|
|
All commands have to end with either of [\r, \n, 0x00]
|
|
|
|
|
|
|
|
|
|
'I' Print system infos.
|
|
|
|
|
[Options]
|
|
|
|
|
'I' Current state of all 4 ports (1x 32bit hex).
|
2016-12-13 16:07:09 +00:00
|
|
|
'P' Power. Voltage, current and temperature readings of the ADC (each as 16bit hex).
|
2014-05-19 16:20:55 +00:00
|
|
|
'T' Current onboard time. (1x 32bit hex).
|
|
|
|
|
'V' Version string. Info about the firmware version.
|
|
|
|
|
|
|
|
|
|
'M' Mode select. Change mode of different modules.
|
|
|
|
|
[Options]
|
|
|
|
|
'P' Power. Enable/disable logging of voltage/current.
|
|
|
|
|
[Options]
|
|
|
|
|
'0' Disable logging.
|
|
|
|
|
'1' Enable logging.
|
|
|
|
|
'U' USART BAUD. Change the speed at which the USART communicates.
|
|
|
|
|
[Options]
|
|
|
|
|
'0' Set speed to 38400bps.
|
|
|
|
|
'1' Set speed to 115400bps.
|
2014-06-05 13:16:11 +00:00
|
|
|
'T' Sync onboard clock. WARNING: This also resets the 1HZ clock.
|
2015-05-31 09:07:46 +00:00
|
|
|
'S' Change data order of the SPI.
|
2014-06-05 13:16:11 +00:00
|
|
|
[options]
|
|
|
|
|
'L' Lsb first.
|
|
|
|
|
'M' Msb first.
|
2014-05-19 16:20:55 +00:00
|
|
|
|
|
|
|
|
'F' Set/Get status of FPGA.
|
|
|
|
|
[Options]
|
|
|
|
|
'N' Set NCONFIG pin.
|
|
|
|
|
[Options]
|
|
|
|
|
'0' Set NCONFIG low.
|
|
|
|
|
'1' Set NCONFIG high.
|
|
|
|
|
'C' Set CONFDONE pin.
|
|
|
|
|
[Options]
|
|
|
|
|
'0' Set CONFDONE low.
|
|
|
|
|
'1' Set CONFDONE high.
|
|
|
|
|
'S' Print NSTATUS ('0' or '1').
|
|
|
|
|
|
|
|
|
|
':' Send intel hex data through SPI/FPGA.
|
|
|
|
|
[Options]
|
|
|
|
|
'0-9a-fA-F' Intel hex compliant command string (only data and eof record types are supported).
|
|
|
|
|
|
2014-09-10 12:25:10 +00:00
|
|
|
';' Send raw bytes (format similar to intel hex) via SPI/FPGA.
|
|
|
|
|
|
|
|
|
|
'#' Send raw bytes (no format) via SPI/FPGA.
|
|
|
|
|
|
2014-06-05 13:16:11 +00:00
|
|
|
'C' Set pulse width of clock output.
|
2014-05-19 16:20:55 +00:00
|
|
|
[Options]
|
|
|
|
|
'0-9a-fA-F' Number of tick left out between pulses. (1x byte (2 chars)).
|
|
|
|
|
|
|
|
|
|
'T' Set onboard time.
|
|
|
|
|
[Options]
|
|
|
|
|
'0-9a-fA-F' New time (4x byte (8 chars)).
|
|
|
|
|
|