PiKoder/SPE User Manual
18
The following ACI commands are available:
-'?': query the PiKoder type information; PiKoder/SPE will respond
in a format 'UART2PPM' framed by 'CR' 'LF'
-'0': query the firmware version; PiKoders will respond in a format
'n.nn' framed by 'CR' 'LF'
-'i?': query the current pulse width for channel i (i = 1..8); PiKoders
will respond 'CR' 'LF' 'xxxx' 'CR' 'LF' with xxxx representing the pulse
width in µs
-'i=xxxx': set the pulse width for channel i to xxxx µs (xxxx in decimal
format, i = 1..8); PiKoders will acknowledge execution of the pro-
gram by sending an 'CR' 'LF' '!' 'CR' 'LF'
-'B?': query the current UART baud rate. PiKoder/SPE will respond
a number from 0..4 meaning 0=9600, 1=19200, 2=38400, 3=57600,
and 4=115200 - the command is not case sensitive
-'B=k': set the UART baud rate with k = 0..4 (see encoding above) -
the command is not case sensitive and the PiKoder will acknowledge
execution with a '!' framed by 'CR' 'LF'.
-'C?': query the current number of PPM channels in the frame.
PiKoder/SPE will respond a number from 1..8 - the command is not
case sensitive
-'C=k': set the number of channels in the PPM frame with k = 1..8 -
the command is not case sensitive and the PiKoder will acknowledge
execution with a '!' framed by 'CR' 'LF'.
-'Nk?': query the startup value for channel k. PiKoders will respond
'xxxx' with xxxx representing the pulse width in µs (xxxx in decimal
format, k = 1..8) - the command is not case sensitive
-'Nk=xxxx': set the startup value for channel k to xxxx µs (xxxx in
decimal format, k = 1..8); - the command is not case sensitive and the
PiKoders will acknowledge execution with a '!' framed by 'CR' 'LF'.
-'P?': query the current PPM polarity. PiKoder/SPE will respond 'N'
with 'P' for positive and 'N' for negative - the command is not case
sensitive
-'P=x': set the PPM parameters with x representing the polarity of the
PPM signal (‘P’ or ‘N’). The command is not case sensitive and the
USB2PPM will acknowledge execution with a '!' framed by 'CR' 'LF'
-SU]U], sU]U]: will save the current parameters to the controller’s
non-volatile memory making the current servo positions the start up
positions after powering up; returns a '!' upon successful completion
framed by 'CR' 'LF'
-'T?': query the current watchdog value. PiKoders will respond 'xxx'
with xxx representing the time in increments of 20 ms (frames
missed) - the command is not case sensitive.