Skip to content

Instantly share code, notes, and snippets.

@KonradIT
Created October 30, 2014 18:52
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/9a8603fd0276082d2457 to your computer and use it in GitHub Desktop.
Save KonradIT/9a8603fd0276082d2457 to your computer and use it in GitHub Desktop.
HERO4 Black Ambarella Shell Commands

#HERO4 Black Autoexec.ash commands:

t imgproc
slock n + : lock n
�    slock n - : unlock n

LCD settings (touch I suggest)
Usage: t drv lcd [command]

    command
         enable
         disable
         get_brightness
         set_brightness [val]
         write_cmd [reg_addr]
         write_data [reg_addr] [data]
         set_pattern [x_start] [y_start] [width] [height] [val]
�enable��disable�config��get_brightness��lcd brightness = %d

Read the system temperature
Usage: t drv cable <show|enable|disable>

Show, eable, or disable the current 10 pin USB cable status
Usage: t drv buzzer beep  <on msec> <off msec> <num>
                    start <on msec> <off msec>
                    stop
                    enable
                    disable
                    volume [percent]
                    config <on ticks> <off ticks> <clock div> <pulse div>

Beep/Start/Stop beep at certain speed
Usage: t drv rtc time [yyyy-mm-dd-hh-mm-ss]
                 wake [sec]

Blink/Start/Stop LED at certain speed
Usage: t drv led blink  <top|bottom|front|back> <blue|red> <on msec> <off msec> <num>
                 start  <top|bottom|front|back> <blue|red> <on msec> <off msec>
                 stop   <top|bottom|front|back> <blue|red>
                 enable <top|bottom|front|back> <blue|red>
                 disable <top|bottom|front|back> <blue|red>
Read the battery level in mV
Usage: t drv battery

Turn on/off SD card temperature logging
Usage: t drv templog [on|off]


Usage: t drv tasks <stack>

Usage: t drv sdstr <sd id> <3|6|12|18>

Usage: t drv voutstr <3|6|12|18>

Humidity:
Usage: t drv hdmiphy <current> <preemphasis>

t appc wireless pin

       Show BLE pin code

Usage: t appc capture [command]

    command
         start     starts capture
         stop      stops capture
         still     starts still capture

Usage: t appc stream [command]

    command
         start     starts stream
         stop      stops stream

t appc fwupdate [command]
     start [waiting]
     ready [prompt]
     reset
     download
     cancel
     boot_fw
     isrequired
     iswaiting
     isinprogress
     state
     notify [start|fini|failed|download|downfail|downcan|downrdy|battlow]
     ptb
     cal [save|restore] file.bin
     rmdir path

Usage: t appc status [command]
     show
     lowbatt
     overtemp
     version
     battery
     rtf
     beep on off num
     file_counts
     power_save
     blue_led on off num
     av_mgr
     power_save_disable

Bluetooth: t appc wireless bt dut  [on|off]

Usage: as3715 battv
       as3715 bt <on|off>
       as3715 dumpregs
       as3715 charger_disabled <set|clear|get>
       as3715 charger_status
       as3715 ibattemp
       as3715 poweroff
       as3715 read_gpio_in <gpio number>
       as3715 readb <regaddr>
       as3715 reset
       as3715 suspend <ddr powered?> <ath powered?> <wifi enabled?> <bt enabled?>
       as3715 wifi_3v3 <on|off>
       as3715 wlan <on|off>
       as3715 writeb <regaddr> <value>
       as3715 warmboot <ddrvolt> <corevolt>
       as3715 usealtfreq <usealt>
       as3715 redled <on/off>
       as3715 blueledmux <a9/ath>
       as3715 blueled_back_a9_ctrl <disable|enable>
       as3715 blueled_top_bottom_a9_ctrl <disable|enable>

Usage: t frw imgcap [command]

    command:
         start                                     starts image capture
         stop                                      stops image capture
         lowlight [on/off]                         sets low light state
�         mctf [none/on/off]                        mctf override "none" = no override
                                                   "on" = mctf on "off" = mctf off
                                                   Note the override is only applicable in 4K modes
���         clocks [IDSP Clk] [Core Clk] [Cortex Clk] overrides the capture clock frequencies
                                                   setting clock value to 0 is no override
         get_counts                                get sof and last-pixel-ready event counters
         rst_counts                                reset sof and last-pixel-ready event counters
         ticks_dump                                dump burst capture ticks
��         load video num fullpathname               load IQ parameter file from SD card

Buttons stuff:

press <button id> [duration in ms]
     release <button id>

     id:      mode/power - 0
              shutter    - 1
              settings   - 2
              lcd        - 3

Nice stuff:

Usage: t camdata <nv|mfg> <param> [<set-value>]
    nv params:
        wifi_mac
        bt_mac
        cam_sn
        cam_pn
        crc
        len
        ver
    mfg params:
        site_result
        lens_vendor
        crc
        len
        ver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment