Skip to content

Instantly share code, notes, and snippets.

@KonradIT
Last active October 16, 2018 08:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KonradIT/68e9988f7ea74bd49766344665a7f012 to your computer and use it in GitHub Desktop.
Save KonradIT/68e9988f7ea74bd49766344665a7f012 to your computer and use it in GitHub Desktop.

Parrot Anafi findings:

AMBA H22 camera processor

AMBA commands

chklowspd
chmod
cleandir
clear
crc32sum
dmesg
echo
false
fwupdate
help
loadbin
memtest
mkdir
randvrfy
readb
readl
readw
reboot
rmdir
savebin
saveimage
sleep
thruput
true
writeb
writel
writew
shell
 gop [stream] [m] [n] [idr] : set gop structure
 blend [on|off] : Enable video encode blending
 frate [sec]: Show frame rate in sec
 brate_chg [stream] [bitrate]: Chage bitrate
 brate [sec] : Show bitrate in sec
 vbr [on|off] : Enable VBR control
 int_cap [on|off|rec]: Enable interval capture
 rotate [0: none
         1: h-flip
         2: rotate_90
         3: rotate_90 + v-flip
         4: h-flip + v-flip
         5: v-flip
         6: rotate_90 + v-flip + h-flip
         7: rotate_90 + h-flip]
 video_coding [stream] [none(0)/h264(1)/mjpeg(2)/hevc(3)]: video coding
 audio_coding [none(0)/aac(1)/pcm(2)]: audio coding
 vidthm [on|all|off] : get video thumbnail when starting encode
 mjpg [on|off] : Enable/Disable 1080p30 2nd stream as MJPEG or H264
 streaming [on|off] : Enable/Disable video streaming
 rtsp [on|off] : Enable/Disable rtsp streaming
 
Usage: t parrot [option]
       hwtest: hardware tests
       vendor: vendor data functions
       pshm:   pshm tests
       test:   parrot specific tests
       ulog:   ulog configuration
       eeprom: eeprom utils
       gimbal: gimbal configuration
       imu:    imu configuration
       eis:    eis configuration
       spit:   spit utils
       shell:  lock/unlock UART shell

t parrot imu

Usage: imu [start|stop|state|calibrate]

  • imu start : start imu acquisition
  • imu stop : stop imu acquisition
  • imu state : dump imu acquisition & calibration state
  • imu calibrate : start imu calibration

Usage: t parrot eis status|enable|disable|phi |theta |psi |vsync_delay |ref_delay |convergence

  • status: print current status
  • enable: perform eis
  • disable: bypass eis using default angles
  • phi : add an extra roll angle to current view
  • theta : add an extra pitch angle to current view
  • psi : add an extra yaw angle to current view
  • vsync_delay : set vsync delay in us
  • ref_delay : set ref delay
  • convergence : set convergence coeff
  • hdr_coeff : set hdr coeff for eis exposure fusion (between 0 and 1)
  • protection <enable/disable>: enable/disable margin protection
  • warp_debug <video/photo>: dump warp log for next frame
  • ae_conf <enable/disable> <oversampling_x> <oversampling_y> <metering_mode_id>: set ae roi computation config
  • freq_range <min_freq_hz> <max_freq_hz>
Usage: t imgproc
         -ver
         -3a         [on|off]
         -3a ver
         -ae         [on|off]
         -ae info    [chNo]
         -awb        [on|off]
         -awb info   [chNo]
         -adj        [on|off]
         -exif_dbg   [0|1]
         -me         [Video|Still : 0|1] [ChNo] [ShtTime : us] [Gain : 1x 1000] [Dgain : Unit 4096] [IsoValue]
         -mwb        [Video|Still : 0|1] [ChNo] [GainR] [GainG] [GainB], Unit 4096
         -slowshutter[Video|Photo : 0|1] [SlowShutterStep : 0, 1, 2...
         -sharp      [Level : 0~6]
         -adjapptest savebin  [Video|Photo : 0|1] [TableNo] [path]
         -adjapptest loadbin  [Video|Photo : 0|1] [EnableTest : 0|1] [path]

Notes:

t ipc rpc clnt exec1 "touch /tmp/SD0/hello.world"

../../bin/busybox

telnetd

c:\amba_mtp.txt

c:\autoexec.ash

c:\cal.txt

c:\ituner.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment